Skip to contentSkip to conversation

m68k: Restore symbol versions for symbols exported from assembly

PATCH Applied Geert Uytterhoeven 1 participant 2 messages Jul 25, 2017 – Aug 21, 2017 m68k architecture

lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

PATCH v2 1/1 m68k: Restore symbol versions for symbols exported from assembly

From: Ben Hutchings <[email protected]>

WARNING: EXPORT symbol "__divsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__umodsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__mulsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__modsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__udivsi3" [vmlinux] version generation failed, symbol will not be versioned.

Add <asm/asm-prototypes.h> so that genksyms knows the types of these symbols and can generate CRCs for them.

Fixes d13ffb563044 ("m68k: move exports to definitions"
[geert: Add warning messages, match actual prototypes]

---
Based on gccint.info

Several prototypes in the kernel disagree w.r.t. signedness of the second parameter, and use e.g.

    signed int __divsi3(signed int, unsigned int);

v2:
- Add warning messages, match actual prototypes.

---
 arch/m68k/include/asm/asm-prototypes.h | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 arch/m68k/include/asm/asm-prototypes.h
arch/m68k/include/asm/asm-prototypes.h new file +5 -0
new file mode 100644
index 0000000000000000..22ccb9c975767201
@@ -0,0 +1,5 @@
+extern int __divsi3(int, int);
+extern int __modsi3(int, int);
+extern int __mulsi3(int, int);
+extern unsigned int __udivsi3(unsigned int, unsigned int);
+extern unsigned int __umodsi3(unsigned int, unsigned int);
Signature · 1 line
2.7.4
author maintainer Applied
#1 lore raw
Quoted 8 lines · Geert Uytterhoeven

From: Ben Hutchings <[email protected]>

WARNING: EXPORT symbol "__divsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__umodsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__mulsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__modsi3" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "__udivsi3" [vmlinux] version generation failed, symbol will not be versioned.

Quoted 7 lines

Add <asm/asm-prototypes.h> so that genksyms knows the types of these symbols and can generate CRCs for them.

Fixes d13ffb563044 ("m68k: move exports to definitions"
[geert: Add warning messages, match actual prototypes]

Thank you, applied and queued for v4.14.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds