summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRussell King2009-06-06 23:47:11 +0200
committerSam Ravnborg2009-06-09 22:37:57 +0200
commiteedc9d83eaab2d35fb9dd1ec25b765dec964e26c (patch)
tree0ac52787334de2da7852f70a4d6822e6cb291a68 /include
parentkbuild/headers_check: refine extern check (diff)
downloadkernel-qcow2-linux-eedc9d83eaab2d35fb9dd1ec25b765dec964e26c.tar.gz
kernel-qcow2-linux-eedc9d83eaab2d35fb9dd1ec25b765dec964e26c.tar.xz
kernel-qcow2-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 'include')
0 files changed, 0 insertions, 0 deletions