]> www.infradead.org Git - users/hch/misc.git/commit
LoongArch: Eliminate superfluous get_numa_distances_cnt()
authorYuli Wang <wangyuli@uniontech.com>
Sat, 8 Mar 2025 05:51:32 +0000 (13:51 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 8 Mar 2025 05:51:32 +0000 (13:51 +0800)
commita0d3c8bcb9206ac207c7ad3182027c6b0a1319bb
tree562deb27f47cf29d587fab72b0d7962021139808
parentda64a2359092ceec4f9dea5b329d0aef20104217
LoongArch: Eliminate superfluous get_numa_distances_cnt()

In LoongArch, get_numa_distances_cnt() isn't in use, resulting in a
compiler warning.

Fix follow errors with clang-18 when W=1e:

arch/loongarch/kernel/acpi.c:259:28: error: unused function 'get_numa_distances_cnt' [-Werror,-Wunused-function]
  259 | static inline unsigned int get_numa_distances_cnt(struct acpi_table_slit *slit)
      |                            ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Link: https://lore.kernel.org/all/Z7bHPVUH4lAezk0E@kernel.org/
Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/acpi.c