diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2008-12-02 01:21:03 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-12-04 00:33:12 +0300 |
commit | 5dae9a550a7478c8d6a7da2336d3ceeebf90ab84 (patch) | |
tree | 15936b08138ed2f8abfee946c3f2c31b76a4e491 /scripts/genksyms/genksyms.h | |
parent | 64e6c1e12372840e7caf8e25325a9e9c5fd370e6 (diff) | |
download | linux-5dae9a550a7478c8d6a7da2336d3ceeebf90ab84.tar.xz |
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>
Diffstat (limited to 'scripts/genksyms/genksyms.h')
-rw-r--r-- | scripts/genksyms/genksyms.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/genksyms/genksyms.h b/scripts/genksyms/genksyms.h index 2831158426cd..25c4d40cefc1 100644 --- a/scripts/genksyms/genksyms.h +++ b/scripts/genksyms/genksyms.h @@ -49,6 +49,7 @@ struct symbol { int is_extern; int is_declared; enum symbol_status status; + int is_override; }; typedef struct string_list **yystype; |