10 Jun, 2009
1 commit
-
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;
#endifThis 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
Signed-off-by: Sam Ravnborg
07 Mar, 2009
1 commit
-
This fixes an error when compiling the kernel.
CHK include/linux/version.h
HOSTCC scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make[1]: *** [scripts/unifdef] Error 1
make: *** [__headers] Error 2Signed-off-by: Justin P. Mattock
Cc: Frederic Weisbecker
Signed-off-by: Andrew Morton
Signed-off-by: Sam Ravnborg
25 Sep, 2006
2 commits
-
Signed-off-by: Sam Ravnborg
-
This patch contains a raw copy of unifdef.c
Next patch will modify it and add infrastructure to use it
Adding unifdef to the kernel is acked by the author.The reason to add unifdef as part of the kernel source is that it is not
yet a common utility on most distributions.Signed-off-by: Sam Ravnborg