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

Adrian Bunk
2005-08-30T16:48:53Z

On Tue, Aug 30, 2005 at 06:38:19PM +0200, Olaf Hering wrote:
>
> 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

There will be some compile errors in cases where compilation previously
worked because the undefined function wasn't called due to gcc dead code
elimination.

We need to fix some code, but I'd strongly prefer this over the possible
runtime errors -Werror-implicit-function-declaration prevents in other
cases.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed