[patch 1/3] Add BSS to resource tree

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

 



On Thu, Oct 18, 2007 at 11:48:37PM +0200, Andi Kleen wrote:
> > > +extern char _text[], _end[], _etext[], _edata[], _bss[];
> > 
> > These should be in a header file.
> 
> Normally the "no externs in .c" rule doesn't apply to assembler or linker 
> script defined labels. That's because the point of the header file is to 
> type check them, but there is nothing to type check here.

For linker generated symbols we have sections.h for this purpose.
The above symbols are all available if we do an:
#include <asm/sections.h>

This is the right fix in this case.

	Sam



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux