[PATCH] x86/vmlinux.lds: Remove unused .x86_intel_mid_dev.init section

Alexander Kuleshov posted 1 patch 3 days, 15 hours ago
arch/x86/kernel/vmlinux.lds.S | 9 ---------
1 file changed, 9 deletions(-)
[PATCH] x86/vmlinux.lds: Remove unused .x86_intel_mid_dev.init section
Posted by Alexander Kuleshov 3 days, 15 hours ago
The .x86_intel_mid_dev.init section and the symbols associated with it
are unused since the commit 4590d98f5a4f ("sfi: Remove framework for
deprecated firmware").

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 arch/x86/kernel/vmlinux.lds.S | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index 4711a35e706c..1f127e0b8231 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -237,15 +237,6 @@ SECTIONS
 		__x86_cpu_dev_end = .;
 	}
 
-#ifdef CONFIG_X86_INTEL_MID
-	.x86_intel_mid_dev.init : AT(ADDR(.x86_intel_mid_dev.init) - \
-								LOAD_OFFSET) {
-		__x86_intel_mid_dev_start = .;
-		*(.x86_intel_mid_dev.init)
-		__x86_intel_mid_dev_end = .;
-	}
-#endif
-
 #ifdef CONFIG_MITIGATION_RETPOLINE
 	/*
 	 * List of instructions that call/jmp/jcc to retpoline thunks
-- 
2.53.0
Re: [PATCH] x86/vmlinux.lds: Remove unused .x86_intel_mid_dev.init section
Posted by Andy Shevchenko 2 days, 21 hours ago
On Sun, Mar 29, 2026 at 09:16:22PM +0500, Alexander Kuleshov wrote:
> The .x86_intel_mid_dev.init section and the symbols associated with it
> are unused since the commit 4590d98f5a4f ("sfi: Remove framework for
> deprecated firmware").

Good catch!
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

-- 
With Best Regards,
Andy Shevchenko