[rtems-libbsd commit] linux/compiler.h: Define __cold

Sebastian Huber sebh at rtems.org
Tue Jan 23 13:56:55 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    fe05886a55266eecf8c4e3fb62856c5ce0889967
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=fe05886a55266eecf8c4e3fb62856c5ce0889967

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov  2 14:29:57 2017 +0100

linux/compiler.h: Define __cold

Update #3277.

---

 rtemsbsd/powerpc/include/linux/compiler.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rtemsbsd/powerpc/include/linux/compiler.h b/rtemsbsd/powerpc/include/linux/compiler.h
index 300287d..4553ba5 100644
--- a/rtemsbsd/powerpc/include/linux/compiler.h
+++ b/rtemsbsd/powerpc/include/linux/compiler.h
@@ -42,6 +42,7 @@
 #define __iomem
 #define __chk_user_ptr(x)		0
 #define __chk_io_ptr(x)			0
+#define __cold		        	__attribute__((__cold__))
 #define __builtin_warning(x, y...)	(1)
 #define __acquires(x)
 #define __releases(x)



More information about the vc mailing list