1 From: Michal Marek <mmarek@suse.cz>
2 Subject: modpost: filter out "built-in" depends
5 In the binary spec files, we "annotate" the Module.symvers file with
6 information where particular vmlinux exports come from. This annotation
7 confuses modpost when building external modules. This patch makes modpost
8 treat "built-in" exports as vmlinux exports, so that these don't show up
9 in modules' depends: fields.
11 Signed-off-by: Michal Marek <mmarek@suse.cz>
13 scripts/mod/modpost.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
16 --- a/scripts/mod/modpost.c
17 +++ b/scripts/mod/modpost.c
18 @@ -86,7 +86,8 @@ static int is_vmlinux(const char *modnam
21 return (strcmp(myname, "vmlinux") == 0) ||
22 - (strcmp(myname, "vmlinux.o") == 0);
23 + (strcmp(myname, "vmlinux.o") == 0) ||
24 + (strcmp(myname, "built-in") == 0);
27 void *do_nofail(void *ptr, const char *expr)