From 466c63b7794702e0a956707710a7ac360ca9d0c9 Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Tue, 22 Sep 2026 18:59:58 -0700 Subject: [PATCH 01/56] x86/platform/uv: Remove unused exports The SGI UV BIOS message-queue watchlist, memory-protection and reserved-page calls, along with uv_setup_irq()/uv_teardown_irq(), existed purely to serve the sgi-xp and sgi-gru drivers. Those drivers were removed by: dbf69afe320eb ("misc: sgi-xp: Remove SGI XP drivers") 85de4712bccfa ("misc: sgi-gru: Remove SGI GRU driver") which took the last callers with them. Six functions are now exported with no caller anywhere in the tree - not even inside the files that define them. Remove the exports. The functions themselves are left in place for now since they are still declared in the UV BIOS/IRQ headers, but they are dead code and are candidates for removal along with those declarations. uv_irq.c loses its last export, so drop the now-unnecessary include too. No functional change intended. --- arch/x86/platform/uv/bios_uv.c | 4 ---- arch/x86/platform/uv/uv_irq.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c index bf31af3d32d69..ea157fc627551 100644 --- a/arch/x86/platform/uv/bios_uv.c +++ b/arch/x86/platform/uv/bios_uv.c @@ -122,7 +122,6 @@ uv_bios_mq_watchlist_alloc(unsigned long addr, unsigned int mq_size, return watchlist; } -EXPORT_SYMBOL_GPL(uv_bios_mq_watchlist_alloc); int uv_bios_mq_watchlist_free(int blade, int watchlist_num) @@ -130,7 +129,6 @@ uv_bios_mq_watchlist_free(int blade, int watchlist_num) return (int)uv_bios_call_irqsave(UV_BIOS_WATCHLIST_FREE, blade, watchlist_num, 0, 0, 0); } -EXPORT_SYMBOL_GPL(uv_bios_mq_watchlist_free); s64 uv_bios_change_memprotect(u64 paddr, u64 len, enum uv_memprotect perms) @@ -138,7 +136,6 @@ uv_bios_change_memprotect(u64 paddr, u64 len, enum uv_memprotect perms) return uv_bios_call_irqsave(UV_BIOS_MEMPROTECT, paddr, len, perms, 0, 0); } -EXPORT_SYMBOL_GPL(uv_bios_change_memprotect); s64 uv_bios_reserved_page_pa(u64 buf, u64 *cookie, u64 *addr, u64 *len) @@ -146,7 +143,6 @@ uv_bios_reserved_page_pa(u64 buf, u64 *cookie, u64 *addr, u64 *len) return uv_bios_call_irqsave(UV_BIOS_GET_PARTITION_ADDR, (u64)cookie, (u64)addr, buf, (u64)len, 0); } -EXPORT_SYMBOL_GPL(uv_bios_reserved_page_pa); s64 uv_bios_freq_base(u64 clock_type, u64 *ticks_per_second) { diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c index 4f200ac96ce08..9bcfb00fcf550 100644 --- a/arch/x86/platform/uv/uv_irq.c +++ b/arch/x86/platform/uv/uv_irq.c @@ -8,7 +8,6 @@ * Copyright (C) 2008 Silicon Graphics, Inc. All rights reserved. */ -#include #include #include #include @@ -197,7 +196,6 @@ int uv_setup_irq(char *irq_name, int cpu, int mmr_blade, return irq_domain_alloc_irqs(domain, 1, uv_blade_to_memory_nid(mmr_blade), &info); } -EXPORT_SYMBOL_GPL(uv_setup_irq); /* * Tear down a mapping of an irq and vector, and disable the specified MMR that @@ -210,4 +208,3 @@ void uv_teardown_irq(unsigned int irq) { irq_domain_free_irqs(irq, 1); } -EXPORT_SYMBOL_GPL(uv_teardown_irq); -- 2.43.0