[lkml]   [2007]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 05/34] PCI: Use a weak symbol for the empty version of pcibios_add_platform_entries()
    On Wed, Jul 11, 2007 at 05:49:22PM -0600, Matthew Wilcox wrote:
    > On Wed, Jul 11, 2007 at 04:31:19PM -0700, Greg Kroah-Hartman wrote:
    > > I'm not sure if this is going to fly, weak symbols work on the compilers I'm
    > > using, but whether they work for all of the affected architectures I can't say.
    > > I've cc'ed as many arch maintainers/lists as I could find.
    > >
    > > But assuming they do, we can use a weak empty definition of
    > > pcibios_add_platform_entries() to avoid having an empty definition on every
    > > arch.
    > This seems like a regression. We go from having an empty inline
    > function that gets optimised away to 0 to having a function call to a
    > trivial function. And on any architecture that *does* define this,
    > (unless I misunderstand the GCC manual), we still include the weak
    > definition, thus wasting space.

    Yeah, but it can be a big pain to add it to every architecture when only
    1 or two need it, which is why I see people using the week symbol stuff
    more and more, right? This is just following that trend.


    greg k-h
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-07-12 02:43    [W:0.020 / U:11.828 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site