[2.6 patch] powerpc/boot/dtc-src/dtc-lexer.l: add %option noinput

David Gibson david at gibson.dropbear.id.au
Fri Jul 18 13:43:55 EST 2008


On Thu, Jul 17, 2008 at 09:19:49PM +0300, Adrian Bunk wrote:
> gcc 4.3 correctly determines that input() is unused and gives the 
> following warning:
> 
> <--  snip  -->
> 
> ...
>   HOSTCC  arch/powerpc/boot/dtc-src/dtc-lexer.lex.o
> dtc-lexer.lex.c:1436: warning: ‘input’ defined but not used
> ...
> 
> <--  snip  -->
> 
> Fix it by adding %option noinput to 
> arch/powerpc/boot/dtc-src/dtc-lexer.l and 
> regeneration of arch/powerpc/boot/dtc-src/dtc-lexer.lex.c_shipped.
> 
> Signed-off-by: Adrian Bunk <bunk at kernel.org>

Uh.. that should be fixed in dtc upstream.  It's probably time we
updated the in-kernel dtc from upstream anyway.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list