summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorRussell King <rmk+lkml@arm.linux.org.uk>2009-06-06 22:47:11 +0100
committerSam Ravnborg <sam@ravnborg.org>2009-06-09 22:37:57 +0200
commiteedc9d83eaab2d35fb9dd1ec25b765dec964e26c (patch)
tree0ac52787334de2da7852f70a4d6822e6cb291a68 /fs/9p
parent67b7ebe091cd92fd69f732da3170720d79c4e632 (diff)
downloadlinux-eedc9d83eaab2d35fb9dd1ec25b765dec964e26c.tar.gz
linux-eedc9d83eaab2d35fb9dd1ec25b765dec964e26c.tar.bz2
linux-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 'fs/9p')
0 files changed, 0 insertions, 0 deletions