is there still value to references to EXPORT_SYMTAB_STROPS?
From: "Robert P. J. Day" <[email protected]>
Date: Mon, 6 Jul 2009 05:40:11 -0400 (EDT)
Quoted 10 lines
during one of my tree cleaning scans, i ran across the following:
$ grep -rw EXPORT_SYMTAB_STROPS * arch/sparc/include/asm/string_64.h:#ifndef EXPORT_SYMTAB_STROPS arch/sparc/include/asm/string_64.h:#endif /* !EXPORT_SYMTAB_STROPS */ arch/sparc/include/asm/string_32.h:#ifndef EXPORT_SYMTAB_STROPS arch/sparc/include/asm/string_32.h:#endif /* !EXPORT_SYMTAB_STROPS */ arch/sparc/lib/ksyms.c:#define EXPORT_SYMTAB_STROPS $
Quoted 3 lines
given that
EXPORT_SYMTABwas removed from the kernel tree quite some
time back, is this related macro still doing anything useful? just asking.
It's only used by sparc so that it can export symbols like memcpy(), memset() et al. properly
Without this ifdef protection while building ksyms.c, string*.h will define these functions as macros, and that makes things like:
EXPORT_SYMBOL(memcpy)
and similar not work because memcpy will macro expand and thus break the build with syntax errors.