Skip to content

Commit a53a11f

Browse files
James Hoganrustyrussell
authored andcommitted
modpost: fix unwanted VMLINUX_SYMBOL_STR expansion
Commit a4b6a77 ("module: fix symbol versioning with symbol prefixes") broke the MODVERSIONS loading of any module using memcmp (e.g. ipv6) on x86_32, as it's defined to __builtin_memcmp which is expanded by VMLINUX_SYMBOL_STR. Use __VMLINUX_SYMBOL_STR instead which doesn't expand the argument. Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: H. Peter Anvin <hpa@zytor.com> Tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: <stable@vger.kernel.org> # 3.9
1 parent 04b00bd commit a53a11f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/mod/modpost.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ static int add_versions(struct buffer *b, struct module *mod)
19571957
s->name, mod->name);
19581958
continue;
19591959
}
1960-
buf_printf(b, "\t{ %#8x, VMLINUX_SYMBOL_STR(%s) },\n",
1960+
buf_printf(b, "\t{ %#8x, __VMLINUX_SYMBOL_STR(%s) },\n",
19611961
s->crc, s->name);
19621962
}
19631963

0 commit comments

Comments
 (0)