[PATCH] arm64: export this_cpu_has_cap

Suzuki K Poulose suzuki.poulose at arm.com
Thu Nov 11 08:59:29 PST 2021


On 11/11/2021 15:32, Catalin Marinas wrote:
> 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

This is queued in Greg's char-misc tree (char-misc-linus branch) and
should be sent out at rc1.

https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/log/?h=char-misc-linus


Suzuki



More information about the linux-arm-kernel mailing list