Re: [2.6 patch] add -Werror-implicit-function-declaration to CFLAGS

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

 



 On Tue, Aug 30, Adrian Bunk wrote:

> On Tue, Aug 30, 2005 at 06:18:14PM +0200, Olaf Hering wrote:
> >  On Tue, Aug 30, Adrian Bunk wrote:
> > 
> > > Currently, using an undeclared function gives a compile warning, but it 
> > > can lead to a link or even a runtime error.
> > > 
> > > With -Werror-implicit-function-declaration, we are getting an immediate 
> > > compile error instead.
> > 
> > You have to fix CONFIG_SWAP=n as well.
> > 
> > http://lkml.org/lkml/2005/8/6/72
> 
> I don't see any such warning in the 2.6.13 sparc build at Jan's 
> crosscompile page [1], and all my patch does is to turn a warning into 
> an error.

page_cache_release and release_pages will be undefined when compiling
arch/ppc/configs/common_defconfig, but not arch/i386/defconfig, with
CONFIG_SWAP=n
-
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]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux