]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:44:01 +0000 (10:44 +0200)
commit2a07aea0acaef8a1cf976c064d64698f8f8a0c32
tree5489fa7ee5cfdd7d48cc3d0f0db3442bb95a6155
parentb137af795399d8b657bad1646c18561530f35ed1
LoongArch: Eliminate superfluous get_numa_distances_cnt()

commit a0d3c8bcb9206ac207c7ad3182027c6b0a1319bb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/kernel/acpi.c