projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 toolchain: update to gcc 6.2.0 and binutils 2.27
[carl9170fw.git]
/
include
/
linux
/
compiler.h
diff --git
a/include/linux/compiler.h
b/include/linux/compiler.h
index fe04cc6f9bfb7181ffc365d99bd634845da62c6a..9ef76ec7311f25c79d9ed54d436501fe6f12b5b4 100644
(file)
--- a/
include/linux/compiler.h
+++ b/
include/linux/compiler.h
@@
-17,14
+17,13
@@
#ifndef __SHARED_COMPILER_H
#define __SHARED_COMPILER_H
#ifndef __SHARED_COMPILER_H
#define __SHARED_COMPILER_H
-#define __no
inline __attribute__((noinline
))
+#define __no
return __attribute__((noreturn
))
#define __inline __attribute__((always_inline))
#define __hot __attribute__((hot))
#define __cold __attribute__((cold))
#define __inline __attribute__((always_inline))
#define __hot __attribute__((hot))
#define __cold __attribute__((cold))
-#define __unused __attribute__((unused))
#define __force __attribute__((force))
#define __force __attribute__((force))
-#define __
section(s)
__attribute__((section("." # s)))
-#define __
packed __attribute__((packed
))
+#define __
in_section(s)
__attribute__((section("." # s)))
+#define __
visible __attribute__((externally_visible
))
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
@@
-76,7
+75,7
@@
#define container_of(ptr, type, member) ({ \
const typeof(((type *)0)->member) * __mptr = (ptr); \
#define container_of(ptr, type, member) ({ \
const typeof(((type *)0)->member) * __mptr = (ptr); \
- (type *)((
char *)__mptr - offsetof(type, member
)); })
+ (type *)((
(unsigned long)__mptr - offsetof(type, member)
)); })
#define MAX_ERRNO 4095
#define MAX_ERRNO 4095