summaryrefslogtreecommitdiff
path: root/tools/testing/shared
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2026-05-21 20:58:40 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-05-21 20:58:40 +0800
commit0ccc9d47cf020994097ff51827cebd04aa2b0bf4 (patch)
treeeddea481136c8e1a1c7f52420de53082fef8feee /tools/testing/shared
parent5b710aa89343c5217889b7788e279565b36e0e5e (diff)
LoongArch: Remove unused code to avoid build warning
After commit feee6b2989165631b1 ("mm/memory_hotplug: shrink zones when offlining memory"), __remove_pages() doesn't need the "zone" parameter so the "page" variable is also unused. Remove the unused code to avoid such build warning: arch/loongarch/mm/init.c: In function 'arch_remove_memory': arch/loongarch/mm/init.c:134:22: warning: variable 'page' set but not used [-Wunused-but-set-variable=] 134 | struct page *page = pfn_to_page(start_pfn); Cc: <stable@vger.kernel.org> Reviewed-by: Guo Ren <guoren@kernel.org> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/testing/shared')
0 files changed, 0 insertions, 0 deletions