From: Adrian Bunk <bunk@kernel.org>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [2.6 patch] linux/kernel.h userspace header cleanup
Date: Mon, 23 Jun 2008 20:49:40 +0300 [thread overview]
Message-ID: <20080623174940.GL4756@cs181140183.pp.htv.fi> (raw)
Nothing from the bottom of this header is part of the
kernel<->userspace ABI.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
include/linux/kernel.h | 4 ++++
1 file changed, 4 insertions(+)
c023fd63795380bceef9abc92c1d6fca91791de7 diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 792bf0a..2993b80 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -487,6 +487,8 @@ struct sysinfo {
char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
};
+#ifdef __KERNEL__
+
/* Force a compilation error if condition is true */
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
@@ -506,4 +508,6 @@ struct sysinfo {
#define NUMA_BUILD 0
#endif
+#endif /* __KERNEL__ */
+
#endif
next reply other threads:[~2008-06-23 17:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 17:49 Adrian Bunk [this message]
2008-06-23 23:51 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080623174940.GL4756@cs181140183.pp.htv.fi \
--to=bunk@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®