Skip to contentSkip to conversation

powerpc/makefile: Remove flag duplicates when generating vdso linker scripts

PATCH New Alexey Kardashevskiy 1 participant 1 message May 14, 2021 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/makefile: Remove flag duplicates when generating vdso linker scripts

The cmd_cpp_lds_S rule already has -P and -U$(ARCH) so there is no need
in duplicating these, clean that up. Since only -C is left and scripts/Makefile.build have -C removed since
commit 5cb0512c02ec ("Kbuild: don't pass "-C" to preprocessor when processing linker scripts") this follows the lead and removes CPPFLAGS_vdso(32|64).lds altogether.

---

scripts/checkpatch.pl complains as it does not handle quotes in the commit subject line well. oh well.

---
 arch/powerpc/kernel/vdso32/Makefile | 1 -
 arch/powerpc/kernel/vdso64/Makefile | 1 -
 2 files changed, 2 deletions(-)
arch/powerpc/kernel/vdso32/Makefile +0 -1
index 7d9a6fee0e3d..7420e88d5aa3 100644
@@ -44,7 +44,6 @@ asflags-y := -D__VDSO32__ -s
 
 obj-y += vdso32_wrapper.o
 targets += vdso32.lds
-CPPFLAGS_vdso32.lds += -P -C -Upowerpc
 
 # link rule for the .so file, .lds has to be first
 $(obj)/vdso32.so.dbg: $(src)/vdso32.lds $(obj-vdso32) $(obj)/vgettimeofday.o FORCE
arch/powerpc/kernel/vdso64/Makefile +0 -1
index 2813e3f98db6..fb118630c334 100644
@@ -30,7 +30,6 @@ ccflags-y := -shared -fno-common -fno-builtin -nostdlib \
 asflags-y := -D__VDSO64__ -s
 
 targets += vdso64.lds
-CPPFLAGS_vdso64.lds += -P -C -U$(ARCH)
 
 # link rule for the .so file, .lds has to be first
 $(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) $(obj)/vgettimeofday.o FORCE
Signature · 1 line
2.30.2