[PATCH] RFC: cpu-topology: declare parse_acpi_topology in <linux/arch_topology.h>

From: Ben Dooks (Codethink)
Date: Mon Oct 21 2019 - 12:26:02 EST


The parse_acpi_topology() is not declared anywhere which
causes the following sparse warning:

drivers/base/arch_topology.c:522:19: warning: symbol 'parse_acpi_topology' was not declared. Should it be static?

RFC: is this the best place to put it?

Signed-off-by: Ben Dooks (Codethink) <ben.dooks@xxxxxxxxxxxxxxx>
---
Cc: Sudeep Holla <sudeep.holla@xxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
---
include/linux/arch_topology.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/arch_topology.h b/include/linux/arch_topology.h
index 42f2b5126094..7ae32900d9a2 100644
--- a/include/linux/arch_topology.h
+++ b/include/linux/arch_topology.h
@@ -59,4 +59,6 @@ void remove_cpu_topology(unsigned int cpuid);
void reset_cpu_topology(void);
#endif

+extern int parse_acpi_topology(void);
+
#endif /* _LINUX_ARCH_TOPOLOGY_H_ */
--
2.23.0