Skip to content

Commit 3d5697f

Browse files
masahir0yMarc Zyngier
authored andcommitted
KVM: arm64: nvhe: Rename confusing obj-y
This Makefile appends several objects to obj-y from line 15, but none of them is linked to vmlinux in an ordinary way. obj-y is overwritten at line 30: obj-y := kvm_nvhe.o So, kvm_nvhe.o is the only object directly linked to vmlinux. Replace the abused obj-y with hyp-obj-y. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a111daf commit 3d5697f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/arm64/kvm/hyp/nvhe/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ HOST_EXTRACFLAGS += -I$(objtree)/include
1212
lib-objs := clear_page.o copy_page.o memcpy.o memset.o
1313
lib-objs := $(addprefix ../../../lib/, $(lib-objs))
1414

15-
obj-y := timer-sr.o sysreg-sr.o debug-sr.o switch.o tlb.o hyp-init.o host.o \
15+
hyp-obj-y := timer-sr.o sysreg-sr.o debug-sr.o switch.o tlb.o hyp-init.o host.o \
1616
hyp-main.o hyp-smp.o psci-relay.o early_alloc.o page_alloc.o \
1717
cache.o setup.o mm.o mem_protect.o sys_regs.o pkvm.o
18-
obj-y += ../vgic-v3-sr.o ../aarch32.o ../vgic-v2-cpuif-proxy.o ../entry.o \
18+
hyp-obj-y += ../vgic-v3-sr.o ../aarch32.o ../vgic-v2-cpuif-proxy.o ../entry.o \
1919
../fpsimd.o ../hyp-entry.o ../exception.o ../pgtable.o
20-
obj-$(CONFIG_DEBUG_LIST) += list_debug.o
21-
obj-y += $(lib-objs)
20+
hyp-obj-$(CONFIG_DEBUG_LIST) += list_debug.o
21+
hyp-obj-y += $(lib-objs)
2222

2323
##
2424
## Build rules for compiling nVHE hyp code
2525
## Output of this folder is `kvm_nvhe.o`, a partially linked object
2626
## file containing all nVHE hyp code and data.
2727
##
2828

29-
hyp-obj := $(patsubst %.o,%.nvhe.o,$(obj-y))
29+
hyp-obj := $(patsubst %.o,%.nvhe.o,$(hyp-obj-y))
3030
obj-y := kvm_nvhe.o
3131
extra-y := $(hyp-obj) kvm_nvhe.tmp.o kvm_nvhe.rel.o hyp.lds hyp-reloc.S hyp-reloc.o
3232

0 commit comments

Comments
 (0)