aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 17:55:52 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 17:55:52 -0400
commit398477d4bd57cc33792fd93035c2763ad78629c4 (patch)
tree8a9cc1cd2f371843f6242b877cbdce9e109a06ed /include/linux
parent6e936d3e9a45a4307e7f4a29ee9829e7a0464af1 (diff)
parent6d71627581e96efb3717960b79fc2167a4617977 (diff)
Merge git://git.infradead.org/~dwmw2/khdrs-2.6
* git://git.infradead.org/~dwmw2/khdrs-2.6: New 'make headers_install_all' target. Use dependencies for 'make headers_install'. [S390] Unexport <asm/z90crypt.h>, export <asm/zcrypt.h> in its place. Remove dead netfilter_logging.h from include/linux/Kbuild Remove offsetof() from user-visible <linux/stddef.h> Clean up exported headers on CRIS Fix v850 exported headers Don't advertise (or allow) headers_{install,check} where inappropriate. Remove UML header export Remove ARM26 header export. Fix H8300 exported headers. Fix m68knommu exported headers Fix exported headers for SPARC, SPARC64 Fix 'make headers_check' on m32r Fix 'make headers_check' on sh64 Fix 'make headers_check' on sh [HEADERS] Fix ARM 'make headers_check' Initial pass of manual conflict resolution in top-level Makefile over conflicting build rule and headers_install changes.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/Kbuild3
-rw-r--r--include/linux/stddef.h2
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
141header-y += sockios.h 141header-y += sockios.h
142header-y += som.h 142header-y += som.h
143header-y += sound.h 143header-y += sound.h
144header-y += stddef.h
145header-y += synclink.h 144header-y += synclink.h
146header-y += telephony.h 145header-y += telephony.h
147header-y += termios.h 146header-y += termios.h
@@ -267,7 +266,6 @@ unifdef-y += netfilter_decnet.h
267unifdef-y += netfilter.h 266unifdef-y += netfilter.h
268unifdef-y += netfilter_ipv4.h 267unifdef-y += netfilter_ipv4.h
269unifdef-y += netfilter_ipv6.h 268unifdef-y += netfilter_ipv6.h
270unifdef-y += netfilter_logging.h
271unifdef-y += net.h 269unifdef-y += net.h
272unifdef-y += netlink.h 270unifdef-y += netlink.h
273unifdef-y += nfs3.h 271unifdef-y += nfs3.h
@@ -316,6 +314,7 @@ unifdef-y += sonet.h
316unifdef-y += sonypi.h 314unifdef-y += sonypi.h
317unifdef-y += soundcard.h 315unifdef-y += soundcard.h
318unifdef-y += stat.h 316unifdef-y += stat.h
317unifdef-y += stddef.h
319unifdef-y += sysctl.h 318unifdef-y += sysctl.h
320unifdef-y += tcp.h 319unifdef-y += tcp.h
321unifdef-y += time.h 320unifdef-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