]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 3032/1: sparse: complains about generic_fls() prototype in asm-arm/bitops.h
authorIan Campbell <icampbell@arcom.com>
Wed, 26 Oct 2005 14:04:21 +0000 (15:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 26 Oct 2005 14:04:21 +0000 (15:04 +0100)
commite54efbe292ed109f05dd56d4d958d27191c72128
tree76732ee7624b57936f16163253d7451c1c9a108d
parentd536d143e9f77fb0c2ac145654b18f96102b69ee
[ARM] 3032/1: sparse: complains about generic_fls() prototype in asm-arm/bitops.h

Patch from Ian Campbell

Sparse complains about the definition of generic_fls in asm-arm/bitops.h:
  CHECK   /home/icampbell/devel/kernel/2.6/arch/arm/mach-pxa/viper.c
include2/asm/bitops.h:350:34: error: marked inline, but without a definition

The definition is unnecessary since linux/bitops.h defines generic_fls before including asm/bitops.h and asm/bitops.h should not be included directly. There are still some places where asm/bitops.h is directly included, but I think that code should be fixed. I was a little wary of the patch for this reason but lubbock, mainstone and assabet all build OK and so do my in house boards...

ARM is the only arch with the generic_fls prototype in this way.

Signed-off-by: Ian Campbell <icampbell@arcom.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/bitops.h