diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/Kbuild | 3 | ||||
-rw-r--r-- | include/linux/stddef.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 67383605f2e5..1df2ac30a4d2 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -141,7 +141,6 @@ header-y += snmp.h | |||
141 | header-y += sockios.h | 141 | header-y += sockios.h |
142 | header-y += som.h | 142 | header-y += som.h |
143 | header-y += sound.h | 143 | header-y += sound.h |
144 | header-y += stddef.h | ||
145 | header-y += synclink.h | 144 | header-y += synclink.h |
146 | header-y += telephony.h | 145 | header-y += telephony.h |
147 | header-y += termios.h | 146 | header-y += termios.h |
@@ -267,7 +266,6 @@ unifdef-y += netfilter_decnet.h | |||
267 | unifdef-y += netfilter.h | 266 | unifdef-y += netfilter.h |
268 | unifdef-y += netfilter_ipv4.h | 267 | unifdef-y += netfilter_ipv4.h |
269 | unifdef-y += netfilter_ipv6.h | 268 | unifdef-y += netfilter_ipv6.h |
270 | unifdef-y += netfilter_logging.h | ||
271 | unifdef-y += net.h | 269 | unifdef-y += net.h |
272 | unifdef-y += netlink.h | 270 | unifdef-y += netlink.h |
273 | unifdef-y += nfs3.h | 271 | unifdef-y += nfs3.h |
@@ -316,6 +314,7 @@ unifdef-y += sonet.h | |||
316 | unifdef-y += sonypi.h | 314 | unifdef-y += sonypi.h |
317 | unifdef-y += soundcard.h | 315 | unifdef-y += soundcard.h |
318 | unifdef-y += stat.h | 316 | unifdef-y += stat.h |
317 | unifdef-y += stddef.h | ||
319 | unifdef-y += sysctl.h | 318 | unifdef-y += sysctl.h |
320 | unifdef-y += tcp.h | 319 | unifdef-y += tcp.h |
321 | unifdef-y += time.h | 320 | unifdef-y += time.h |
diff --git a/include/linux/stddef.h b/include/linux/stddef.h index b3a2cadf90f2..ea65dfb60cd8 100644 --- a/include/linux/stddef.h +++ b/include/linux/stddef.h | |||
@@ -10,11 +10,13 @@ | |||
10 | #define NULL ((void *)0) | 10 | #define NULL ((void *)0) |
11 | #endif | 11 | #endif |
12 | 12 | ||
13 | #ifdef __KERNEL__ | ||
13 | #undef offsetof | 14 | #undef offsetof |
14 | #ifdef __compiler_offsetof | 15 | #ifdef __compiler_offsetof |
15 | #define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER) | 16 | #define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER) |
16 | #else | 17 | #else |
17 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | 18 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
18 | #endif | 19 | #endif |
20 | #endif /* __KERNEL__ */ | ||
19 | 21 | ||
20 | #endif | 22 | #endif |