]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.suse/modpost-filter-out-built-in-depends
Move xen patchset to new version's subdir.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / modpost-filter-out-built-in-depends
CommitLineData
00e5a55c
BS
1From: Michal Marek <mmarek@suse.cz>
2Subject: modpost: filter out "built-in" depends
3References: bnc#450085
4
5In the binary spec files, we "annotate" the Module.symvers file with
6information where particular vmlinux exports come from. This annotation
7confuses modpost when building external modules. This patch makes modpost
8treat "built-in" exports as vmlinux exports, so that these don't show up
9in modules' depends: fields.
10
11Signed-off-by: Michal Marek <mmarek@suse.cz>
12---
13 scripts/mod/modpost.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16--- a/scripts/mod/modpost.c
17+++ b/scripts/mod/modpost.c
18@@ -86,7 +86,8 @@ static int is_vmlinux(const char *modnam
19 myname = modname;
20
21 return (strcmp(myname, "vmlinux") == 0) ||
22- (strcmp(myname, "vmlinux.o") == 0);
23+ (strcmp(myname, "vmlinux.o") == 0) ||
24+ (strcmp(myname, "built-in") == 0);
25 }
26
27 void *do_nofail(void *ptr, const char *expr)