All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [RFC] arm64: export this_cpu_has_cap
@ 2021-10-29 11:30 ` Arnd Bergmann
  0 siblings, 0 replies; 22+ messages in thread
From: Arnd Bergmann @ 2021-10-29 11:30 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Mathieu Poirier, Suzuki K Poulose,
	Anshuman Khandual
  Cc: Arnd Bergmann, Marc Zyngier, Mark Rutland, David Brazdil,
	linux-arm-kernel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

It's now used in a coresight driver that can be a loadable module:

ERROR: modpost: "this_cpu_has_cap" [drivers/hwtracing/coresight/coresight-trbe.ko] undefined!

Fixes: 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
Not sure if we actually want this to be exported, this is my local
workaround for the randconfig build bot.
---
 arch/arm64/kernel/cpufeature.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index ecbdff795f5e..beccbcfa7391 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -2864,6 +2864,7 @@ bool this_cpu_has_cap(unsigned int n)
 
 	return false;
 }
+EXPORT_SYMBOL(this_cpu_has_cap);
 
 /*
  * This helper function is used in a narrow window when,
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-11-02 23:17 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 11:30 [PATCH] [RFC] arm64: export this_cpu_has_cap Arnd Bergmann
2021-10-29 11:30 ` Arnd Bergmann
2021-10-29 13:31 ` Suzuki K Poulose
2021-10-29 13:31   ` Suzuki K Poulose
2021-10-29 15:12   ` Mathieu Poirier
2021-10-29 15:12     ` Mathieu Poirier
2021-10-29 18:06   ` Catalin Marinas
2021-10-29 18:06     ` Catalin Marinas
2021-11-01  9:01     ` Will Deacon
2021-11-01  9:01       ` Will Deacon
2021-11-01  9:34       ` Suzuki K Poulose
2021-11-01  9:34         ` Suzuki K Poulose
2021-11-01  9:40         ` Will Deacon
2021-11-01  9:40           ` Will Deacon
2021-11-01  9:52           ` Suzuki K Poulose
2021-11-01  9:52             ` Suzuki K Poulose
2021-11-01 11:13             ` Greg Kroah-Hartman
2021-11-01 11:13               ` Greg Kroah-Hartman
2021-11-01 15:32               ` Mathieu Poirier
2021-11-01 15:32                 ` Mathieu Poirier
2021-11-02 23:16     ` Suzuki K Poulose
2021-11-02 23:16       ` Suzuki K Poulose

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.