20 May 2013 11:44
[PATCH] m68k: Remove inline strcpy() and strcat() implementations
Geert Uytterhoeven <geert <at> linux-m68k.org>
2013-05-20 09:44:37 GMT
2013-05-20 09:44:37 GMT
Gcc may replace calls to standard string functions by open code and/or
calls to other standard string functions. If the replacement function is
not available out-of-line, link errors will happen.
To avoid this, the out-of-line versions were provided by
arch/m68k/lib/string.c, but they were usually not linked in anymore as
typically none of its symbols are referenced by built-in code.
However, if any module would need them, they would not be available.
Hence remove the inline strcpy() and strcat() implementations, remove
arch/m68k/lib/string.c, and let the generic string library code handle it.
Impact on a typical kernel build seems minimal or nonexistent:
- .text : 0x00001000 - 0x002aac74 (2728 KiB)
- .data : 0x002ada48 - 0x00392148 ( 914 KiB)
+ .text : 0x00001000 - 0x002aacf4 (2728 KiB)
+ .data : 0x002adac8 - 0x00392148 ( 914 KiB)
See also commit e00c73ee05dc38ecaccced55d4f5fc58b0b769f7 ("m68k: Remove
inline strlen() implementation").
Signed-off-by: Geert Uytterhoeven <geert <at> linux-m68k.org>
---
arch/m68k/include/asm/string.h | 32 --------------------------------
arch/m68k/lib/Makefile | 2 +-
arch/m68k/lib/string.c | 22 ----------------------
3 files changed, 1 insertions(+), 55 deletions(-)
delete mode 100644 arch/m68k/lib/string.c
(Continue reading)
- m68k/atari: use polled interrupt handler for timer D interrupts
Depends on above
- m68k/atari: EtherNAT - ethernet support (smc91x)
m68k/atari: EtherNEC - ethernet support (ne)
Michael will submit
- m68k/atari: USB - add ISP1160 USB host controller support
Michael WIP?
- m68k/atari: Update defconfigs for new features
m68k/mac: Update defconfig
I'm working on the defconfigs
- fs/fat: Revert "msdos fs: remove unsettable atari option"
fs/fat: Atari FAT updates
fs/fat: Use correct logical sector size for Atari GEMDOS FAT
Who dares to stand in front of the fat maintainer and will submit these?
Michael, too?
- mac: ADB raw packets
I guess this can be dropped?
Thanks!
RSS Feed