diff options
author | Russell King <rmk+lkml@arm.linux.org.uk> | 2009-06-06 22:47:11 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-09 22:37:57 +0200 |
commit | eedc9d83eaab2d35fb9dd1ec25b765dec964e26c (patch) | |
tree | 0ac52787334de2da7852f70a4d6822e6cb291a68 /include/asm-generic/vmlinux.lds.h | |
parent | 67b7ebe091cd92fd69f732da3170720d79c4e632 (diff) | |
download | kernel-crypto-eedc9d83eaab2d35fb9dd1ec25b765dec964e26c.tar.gz kernel-crypto-eedc9d83eaab2d35fb9dd1ec25b765dec964e26c.tar.xz kernel-crypto-eedc9d83eaab2d35fb9dd1ec25b765dec964e26c.zip |
kbuild: fix headers_exports with boolean expression
When we had code like this in a header unifdef failed to
deduct that the expression was always false - and we had code exported
that was not intended for userspace.
#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
int a;
#endif
This commit implment support in unidef which allows it to work out if
an #if expression always evaluates true or false for symbols which
are being undefined/always defined.
The patch is slightly more complicated than I'd hoped because unifdef
needs to see lines fully evaluated - doing otherwise causes it to
mark the line as "dirty" and copy it over no matter what.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
0 files changed, 0 insertions, 0 deletions