[PATCH] arm64: export this_cpu_has_cap

Catalin Marinas catalin.marinas at arm.com
Thu Nov 11 07:32:41 PST 2021


On Thu, Nov 11, 2021 at 11:21:38AM +0800, Jackie Liu wrote:
> From: Jackie Liu <liuyun01 at kylinos.cn>
> 
> After commit 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling"),
> driver coresight use this_cpu_has_cap for check feature, but if we compile it
> as a module, it will cause a compilation error.
> 
> [...]
> ERROR: modpost: "this_cpu_has_cap" [drivers/hwtracing/coresight/coresight-trbe.ko] undefined!
> make[1]: *** [scripts/Makefile.modpost:134: modules-only.symvers] Error 1
> make[1]: *** Deleting file 'modules-only.symvers'
> make: *** [Makefile:1765: modules] Error 2
> make: *** Waiting for unfinished jobs....
> [...]
> 
> Fixes: 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling")
> Reported-by: kernelbot <kernel-bot at kylinos.cn>
> Signed-off-by: Jackie Liu <liuyun01 at kylinos.cn>

There is a patch already, not sure whether it has made it into mainline:

https://lore.kernel.org/r/20211103221256.725080-1-suzuki.poulose@arm.com

-- 
Catalin



More information about the linux-arm-kernel mailing list