]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Michal Marek <mmarek@suse.cz> |
2 | Subject: modpost: filter out "built-in" depends | |
3 | References: bnc#450085 | |
4 | ||
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. | |
10 | ||
11 | Signed-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) |