Re: is there still value to references to EXPORT_SYMTAB_STROPS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Mon, 6 Jul 2009 05:40:11 -0400 (EDT)

>   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
> $
> 
>   given that EXPORT_SYMTAB was 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.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux