Re: [PATCH] rename net_random to random32

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

 



> EXPORT_SYMBOL's in lib-y are latent bugs (IMHO kbuild should error
> on them):

In practice module will not load becasue it cannot resolve symbol - right?

That aside we should not export symbols from lib-y. But I have not any good
idea how to catch this during build time unles doing some ugly grep magic.

One thing that could be done would be to check for a specific section
(__ksymtab_strings) in the .o file only for lib-y .o files.

The check could be something like:
objdump -h <file.o> | grep __ksymtab_strings

If grep give error code '0' then we exported a symbol.
I may try to cook up later this weekend.

        Sam

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux