Skip to contentSkip to conversation

vmlinux.lds.h: remove unused CPU_KEEP and CPU_DISCARD macros

PATCH In review Masahiro Yamada 2 participants 2 messages Sep 30, 2023 – Oct 1, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vmlinux.lds.h: remove unused CPU_KEEP and CPU_DISCARD macros

Remove the left-over of commit e24f6628811e ("modpost: remove all traces of cpuinit/cpuexit sections").

---

 include/asm-generic/vmlinux.lds.h | 7 -------
 1 file changed, 7 deletions(-)
include/asm-generic/vmlinux.lds.h +0 -7
index 9c59409104f6..67d8dd2f1bde 100644
@@ -138,13 +138,6 @@
  * are handled as text/data or they can be discarded (which
  * often happens at runtime)
  */
-#ifdef CONFIG_HOTPLUG_CPU
-#define CPU_KEEP(sec)    *(.cpu##sec)
-#define CPU_DISCARD(sec)
-#else
-#define CPU_KEEP(sec)
-#define CPU_DISCARD(sec) *(.cpu##sec)
-#endif
 
 #if defined(CONFIG_MEMORY_HOTPLUG)
 #define MEM_KEEP(sec)    *(.mem##sec)
Signature · 1 line
2.39.2
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · [[PATCH] vmlinux.lds.h: remove unused CPU_KEEP and CPU_DISCARD macros] On…

Remove the left-over of commit e24f6628811e ("modpost: remove all traces of cpuinit/cpuexit sections").

Hard to believe that cpuinit/cpuexit removal was over 10 years ago now.

Thanks,
Paul.
--

Quoted 28 lines

---

 include/asm-generic/vmlinux.lds.h | 7 -------
 1 file changed, 7 deletions(-)
include/asm-generic/vmlinux.lds.h +0 -7
index 9c59409104f6..67d8dd2f1bde 100644
@@ -138,13 +138,6 @@
  * are handled as text/data or they can be discarded (which
  * often happens at runtime)
  */
-#ifdef CONFIG_HOTPLUG_CPU
-#define CPU_KEEP(sec)    *(.cpu##sec)
-#define CPU_DISCARD(sec)
-#else
-#define CPU_KEEP(sec)
-#define CPU_DISCARD(sec) *(.cpu##sec)
-#endif
 
 #if defined(CONFIG_MEMORY_HOTPLUG)
 #define MEM_KEEP(sec)    *(.mem##sec)
Signature · 1 line
2.39.2