Skip to content

Commit 21d98d6

Browse files
guohanjunpalmer-dabbelt
authored andcommitted
ACPI: RISCV: Make acpi_numa_get_nid() to be static
acpi_numa_get_nid() is only called in acpi_numa.c for riscv, no need to add it in head file, so make it static and remove related functions in the asm/acpi.h. Spotted by doing some cleanup for arm64 ACPI. Signed-off-by: Hanjun Guo <[email protected]> Reviewed-by: Haibo Xu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 048e290 commit 21d98d6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/riscv/include/asm/acpi.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ static inline void acpi_get_cbo_block_size(struct acpi_table_header *table,
9191
#endif /* CONFIG_ACPI */
9292

9393
#ifdef CONFIG_ACPI_NUMA
94-
int acpi_numa_get_nid(unsigned int cpu);
9594
void acpi_map_cpus_to_nodes(void);
9695
#else
97-
static inline int acpi_numa_get_nid(unsigned int cpu) { return NUMA_NO_NODE; }
9896
static inline void acpi_map_cpus_to_nodes(void) { }
9997
#endif /* CONFIG_ACPI_NUMA */
10098

arch/riscv/kernel/acpi_numa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
static int acpi_early_node_map[NR_CPUS] __initdata = { NUMA_NO_NODE };
3232

33-
int __init acpi_numa_get_nid(unsigned int cpu)
33+
static int __init acpi_numa_get_nid(unsigned int cpu)
3434
{
3535
return acpi_early_node_map[cpu];
3636
}

0 commit comments

Comments
 (0)