]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: amlogic: fix spifc build error
authorXianwei Zhao <xianwei.zhao@amlogic.com>
Wed, 15 Oct 2025 07:36:59 +0000 (15:36 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Oct 2025 13:09:57 +0000 (14:09 +0100)
commit6b6e03106163458716c47df2baa9ad08ed4ddb0e
tree1b4dc9010e58a02404ea7bf9a85ff677a16159d2
parent8735696acea24ac1f9d4490992418c71941ca68c
spi: amlogic: fix spifc build error

There is an error building when
Compiler version: gcc (GCC) 14.3.0
Assembler version: GNU assembler (GNU Binutils) 2.44
"
 Error log:
 WARNING: modpost: missing MODULE_DESCRIPTION() in arch/arm/probes/kprobes/test-kprobes.o
 ERROR: modpost: "__ffsdi2" [drivers/spi/spi-amlogic-spifc-a4.ko] undefined!
"

Use __ffs API instead of __bf_shf to be safer.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/all/f594c621-f9e1-49f2-af31-23fbcb176058@roeck-us.net/
Fixes: 4670db6f32e9 ("spi: amlogic: add driver for Amlogic SPI Flash Controller")
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Link: https://patch.msgid.link/20251015-fix-spifc-a4-v1-1-08e0900e5b7e@amlogic.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amlogic-spifc-a4.c