All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: is there still value to references to EXPORT_SYMTAB_STROPS?
@ 2009-08-03  4:46 David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-08-03  4:46 UTC (permalink / raw)
  To: sparclinux

From: "Robert P. J. Day" <rpjday@crashcourse.ca>
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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* is there still value to references to EXPORT_SYMTAB_STROPS?
@ 2009-07-06  9:40 Robert P. J. Day
  0 siblings, 0 replies; 2+ messages in thread
From: Robert P. J. Day @ 2009-07-06  9:40 UTC (permalink / raw)
  To: sparclinux


  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.

rday
--

====================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Linux Consulting, Training and Annoying Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Linked In:                             http://www.linkedin.com/in/rpjday
Twitter:                                       http://twitter.com/rpjday
====================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-03  4:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-03  4:46 is there still value to references to EXPORT_SYMTAB_STROPS? David Miller
  -- strict thread matches above, loose matches on Subject: below --
2009-07-06  9:40 Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.