]> bbs.cooldavid.org Git - net-next-2.6.git/commit
genksyms: allow to ignore symbol checksum changes
authorAndreas Gruenbacher <agruen@suse.de>
Mon, 1 Dec 2008 22:21:03 +0000 (14:21 -0800)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 3 Dec 2008 21:33:12 +0000 (22:33 +0100)
commit5dae9a550a7478c8d6a7da2336d3ceeebf90ab84
tree15936b08138ed2f8abfee946c3f2c31b76a4e491
parent64e6c1e12372840e7caf8e25325a9e9c5fd370e6
genksyms: allow to ignore symbol checksum changes

This adds an "override" keyword for use in *.symvers / *.symref files.
When a symbol is overridden, the symbol's old definition will be used for
computing checksums instead of the new one, preserving the previous
checksum.  (Genksyms will still warn about the change.)

This is meant to allow distributions to hide minor actual as well as fake
ABI changes.  (For example, when extra type information becomes available
because additional headers are included, this may change checksums even
though none of the types used have actully changed.)

This approach also allows to get rid of "#ifdef __GENKSYMS__" hacks in the
code, which are currently used in some vendor kernels to work around
checksum changes.

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/genksyms/genksyms.c
scripts/genksyms/genksyms.h