[PATCH v2] x86/asm/64: remove unused include from <asm/string_64.h>

Mauricio Faria de Oliveira posted 1 patch 1 month ago
arch/x86/include/asm/string_64.h | 1 -
1 file changed, 1 deletion(-)
[PATCH v2] x86/asm/64: remove unused include from <asm/string_64.h>
Posted by Mauricio Faria de Oliveira 1 month ago
Remove the <linux/jump_label.h> include from <asm/string_64.h> since it is
no longer required.

This include was introduced for the static key declaration first added by
commit 3637efb00864 ("x86/mce: Add PCI quirks to identify Xeons with
machine check recovery").

However, it was left when the static key declaration was later removed by
commit ec6347bb4339 ("x86, powerpc: Rename memcpy_mcsafe() to
copy_mc_to_{user, kernel}()").

Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
---
Changes in v2:
- Reword commit message.
- Rebase on next-20260821.
- Link to v1 (RESEND): https://lore.kernel.org/r/20260630-x86-inc-asm-str64-jmplbl-v1-1-dc27720e2015@igalia.com
- Link to v1: https://lore.kernel.org/all/20260521-x86-inc-asm-str64-jmplbl-v1-1-a506cbd61d6b@igalia.com/
---
 arch/x86/include/asm/string_64.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/string_64.h b/arch/x86/include/asm/string_64.h
index 4635616863f53d0e1be1cd596b7141ee63bfdf44..0ea680bf403a91be9dbb32019e2d6a82cc1d848a 100644
--- a/arch/x86/include/asm/string_64.h
+++ b/arch/x86/include/asm/string_64.h
@@ -3,7 +3,6 @@
 #define _ASM_X86_STRING_64_H
 
 #ifdef __KERNEL__
-#include <linux/jump_label.h>
 
 /* Written 2002 by Andi Kleen */
 

---
base-commit: 903c1cf6dff9964e71eda98a39e2e5d442050472
change-id: 20260630-x86-inc-asm-str64-jmplbl-c0f0af447dd6

Best regards,
-- 
Mauricio Faria de Oliveira <mfo@igalia.com>
[tip: x86/cleanups] x86/asm/string_64: Remove unused linux/jump_label.h include
Posted by tip-bot2 for Mauricio Faria de Oliveira 1 week, 2 days ago
The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     975809caf4b0e07330110b56ca2d8a3fa7e16ff5
Gitweb:        https://git.kernel.org/tip/975809caf4b0e07330110b56ca2d8a3fa7e16ff5
Author:        Mauricio Faria de Oliveira <mfo@igalia.com>
AuthorDate:    Mon, 24 Aug 2026 16:27:23 -03:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Fri, 18 Sep 2026 15:54:44 -07:00

x86/asm/string_64: Remove unused linux/jump_label.h include

Remove the <linux/jump_label.h> include from <asm/string_64.h> since it is
no longer required.

This include was introduced for the static key declaration first added by

  3637efb00864 ("x86/mce: Add PCI quirks to identify Xeons with machine check recovery").

However, it was left when the static key declaration was later removed by

  ec6347bb4339 ("x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()").

Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260824-x86-inc-asm-str64-jmplbl-v2-1-df4d7bec9616@igalia.com
---
 arch/x86/include/asm/string_64.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/string_64.h b/arch/x86/include/asm/string_64.h
index 4635616..0ea680b 100644
--- a/arch/x86/include/asm/string_64.h
+++ b/arch/x86/include/asm/string_64.h
@@ -3,7 +3,6 @@
 #define _ASM_X86_STRING_64_H
 
 #ifdef __KERNEL__
-#include <linux/jump_label.h>
 
 /* Written 2002 by Andi Kleen */