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

From: Adrian Bunk
Date: Tue Aug 30 2005 - 11:49:11 EST


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

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