Search Linux Wireless

Re: COMMON symbol warnings

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

 



On Mon, 2007-09-10 at 13:14 +0100, Christoph Hellwig wrote:

> No.  Say you have the following case:
> 
> ----------- foo.h ------------
> int foo;
> ----------- foo1.c -----------
> #include "foo.h"
> ----------- foo2.c -----------
> #include "foo.h"
> --------- Makefile -----------
> obj-m += foo.o
> foo-y += foo1.o foo2.o
> 
> 
> This gives you a foo COMMON symbol.

Ah, ok. I'm not familiar with these drivers though so I have no idea why
this happened, and then only with -D__CHECK_ENDIAN__.

> But at least on i386 the kernel
> is compiled with -fno-common so you get a warning like:

I'm building on powerpc. It has -fno-common as well.

> I wonder how the driver build managed to override our global -fno-common
> setting.

No idea. I guess the driver authors should look into it :)

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux