kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y
@ 2021-03-31 15:06 Masahiro Yamada
  2021-03-31 15:06 ` [PATCH 2/2] mips: clean up kvm Makefile Masahiro Yamada
  2021-07-22 10:09 ` [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y Thomas Bogendoerfer
  0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2021-03-31 15:06 UTC (permalink / raw)
  To: linux-mips
  Cc: Masahiro Yamada, Aleksandar Markovic, Huacai Chen,
	Thomas Bogendoerfer, kvm, linux-kernel, linux-mips

As Documentation/kbuild/makefiles.rst says, EXTRA_CFLAGS is deprecated.
Replace it with ccflags-y.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/mips/kvm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kvm/Makefile b/arch/mips/kvm/Makefile
index 506c4ac0ba1c..7d42d624a7b9 100644
--- a/arch/mips/kvm/Makefile
+++ b/arch/mips/kvm/Makefile
@@ -4,7 +4,7 @@
 
 common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o eventfd.o)
 
-EXTRA_CFLAGS += -Ivirt/kvm -Iarch/mips/kvm
+ccflags-y += -Ivirt/kvm -Iarch/mips/kvm
 
 common-objs-$(CONFIG_CPU_HAS_MSA) += msa.o
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] mips: clean up kvm Makefile
  2021-03-31 15:06 [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y Masahiro Yamada
@ 2021-03-31 15:06 ` Masahiro Yamada
  2021-07-22 10:09   ` Thomas Bogendoerfer
  2021-07-22 10:09 ` [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y Thomas Bogendoerfer
  1 sibling, 1 reply; 4+ messages in thread
From: Masahiro Yamada @ 2021-03-31 15:06 UTC (permalink / raw)
  To: linux-mips
  Cc: Masahiro Yamada, Aleksandar Markovic, Huacai Chen,
	Thomas Bogendoerfer, kvm, linux-kernel, linux-mips

You can use kvm-y instead of kvm-objs to create the composite module.
kvm-$(CONFIG_...) looks cleaner.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/mips/kvm/Makefile | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/arch/mips/kvm/Makefile b/arch/mips/kvm/Makefile
index 7d42d624a7b9..6bc5da6faf0e 100644
--- a/arch/mips/kvm/Makefile
+++ b/arch/mips/kvm/Makefile
@@ -2,26 +2,23 @@
 # Makefile for KVM support for MIPS
 #
 
-common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o eventfd.o)
-
 ccflags-y += -Ivirt/kvm -Iarch/mips/kvm
 
-common-objs-$(CONFIG_CPU_HAS_MSA) += msa.o
+kvm-y := $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o eventfd.o)
+kvm-$(CONFIG_CPU_HAS_MSA) += msa.o
 
-kvm-objs := $(common-objs-y) mips.o emulate.o entry.o \
+kvm-y +=    mips.o emulate.o entry.o \
 	    interrupt.o stats.o commpage.o \
 	    fpu.o
-kvm-objs += hypcall.o
-kvm-objs += mmu.o
-ifdef CONFIG_CPU_LOONGSON64
-kvm-objs += loongson_ipi.o
-endif
+kvm-y += hypcall.o
+kvm-y += mmu.o
+kvm-$(CONFIG_CPU_LOONGSON64) += loongson_ipi.o
 
 ifdef CONFIG_KVM_MIPS_VZ
-kvm-objs		+= vz.o
+kvm-y		+= vz.o
 else
-kvm-objs		+= dyntrans.o
-kvm-objs		+= trap_emul.o
+kvm-y		+= dyntrans.o
+kvm-y		+= trap_emul.o
 endif
 obj-$(CONFIG_KVM)	+= kvm.o
 obj-y			+= callback.o tlb.o
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y
  2021-03-31 15:06 [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y Masahiro Yamada
  2021-03-31 15:06 ` [PATCH 2/2] mips: clean up kvm Makefile Masahiro Yamada
@ 2021-07-22 10:09 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2021-07-22 10:09 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: linux-mips, Aleksandar Markovic, Huacai Chen, kvm, linux-kernel,
	linux-mips

On Thu, Apr 01, 2021 at 12:06:56AM +0900, Masahiro Yamada wrote:
> As Documentation/kbuild/makefiles.rst says, EXTRA_CFLAGS is deprecated.
> Replace it with ccflags-y.
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
> 
>  arch/mips/kvm/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] mips: clean up kvm Makefile
  2021-03-31 15:06 ` [PATCH 2/2] mips: clean up kvm Makefile Masahiro Yamada
@ 2021-07-22 10:09   ` Thomas Bogendoerfer
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2021-07-22 10:09 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: linux-mips, Aleksandar Markovic, Huacai Chen, kvm, linux-kernel,
	linux-mips

On Thu, Apr 01, 2021 at 12:06:57AM +0900, Masahiro Yamada wrote:
> You can use kvm-y instead of kvm-objs to create the composite module.
> kvm-$(CONFIG_...) looks cleaner.
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
> 
>  arch/mips/kvm/Makefile | 21 +++++++++------------
>  1 file changed, 9 insertions(+), 12 deletions(-)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-22 10:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 15:06 [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y Masahiro Yamada
2021-03-31 15:06 ` [PATCH 2/2] mips: clean up kvm Makefile Masahiro Yamada
2021-07-22 10:09   ` Thomas Bogendoerfer
2021-07-22 10:09 ` [PATCH 1/2] mips: replace deprecated EXTRA_CFLAGS with ccflags-y Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).