public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390: use obj-y to descend into drivers/s390/
@ 2023-07-21 13:41 Masahiro Yamada
  2023-07-21 14:36 ` Christian Borntraeger
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2023-07-21 13:41 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, linux-s390
  Cc: linux-kernel, linux-kbuild, Jiri Slaby, Masahiro Yamada

I like to use obj-y in as many places as possible.

Change the drivers-y to obj-y. It moves the objects from drivers/s390/
to slightly lower address, but fixes the single build issue. [1]

[1]: https://lore.kernel.org/linux-kbuild/d57ba55f-20a3-b836-783d-b49c8a161b6e@kernel.org/T/#m27f781ab60acadfed8a9e9642f30d5414a5e2df3

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Jiri Slaby <jirislaby@kernel.org>
---

 arch/s390/Makefile | 1 -
 drivers/Makefile   | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index 5ed242897b0d..a53a36ee0731 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -119,7 +119,6 @@ export KBUILD_CFLAGS_DECOMPRESSOR
 OBJCOPYFLAGS	:= -O binary
 
 libs-y		+= arch/s390/lib/
-drivers-y	+= drivers/s390/
 
 boot		:= arch/s390/boot
 syscalls	:= arch/s390/kernel/syscalls
diff --git a/drivers/Makefile b/drivers/Makefile
index 7241d80a7b29..a7459e77df37 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -195,3 +195,5 @@ obj-$(CONFIG_PECI)		+= peci/
 obj-$(CONFIG_HTE)		+= hte/
 obj-$(CONFIG_DRM_ACCEL)		+= accel/
 obj-$(CONFIG_CDX_BUS)		+= cdx/
+
+obj-$(CONFIG_S390)		+= s390/
-- 
2.39.2


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

* Re: [PATCH] s390: use obj-y to descend into drivers/s390/
  2023-07-21 13:41 [PATCH] s390: use obj-y to descend into drivers/s390/ Masahiro Yamada
@ 2023-07-21 14:36 ` Christian Borntraeger
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Borntraeger @ 2023-07-21 14:36 UTC (permalink / raw)
  To: Masahiro Yamada, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Sven Schnelle, linux-s390
  Cc: linux-kernel, linux-kbuild, Jiri Slaby

Am 21.07.23 um 15:41 schrieb Masahiro Yamada:
> I like to use obj-y in as many places as possible.

Please do not use "I like". That is just too polite.

This fixes a bug as outlined below and maybe make it a clear statement that the current use is
non-standard and needs to be fixed - I think.
> 
> Change the drivers-y to obj-y. It moves the objects from drivers/s390/
> to slightly lower address, but fixes the single build issue. [1]
> 
> [1]: https://lore.kernel.org/linux-kbuild/d57ba55f-20a3-b836-783d-b49c8a161b6e@kernel.org/T/#m27f781ab60acadfed8a9e9642f30d5414a5e2df3
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> Tested-by: Jiri Slaby <jirislaby@kernel.org>
> ---
> 
>   arch/s390/Makefile | 1 -
>   drivers/Makefile   | 2 ++
>   2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/s390/Makefile b/arch/s390/Makefile
> index 5ed242897b0d..a53a36ee0731 100644
> --- a/arch/s390/Makefile
> +++ b/arch/s390/Makefile
> @@ -119,7 +119,6 @@ export KBUILD_CFLAGS_DECOMPRESSOR
>   OBJCOPYFLAGS	:= -O binary
>   
>   libs-y		+= arch/s390/lib/
> -drivers-y	+= drivers/s390/
>   
>   boot		:= arch/s390/boot
>   syscalls	:= arch/s390/kernel/syscalls
> diff --git a/drivers/Makefile b/drivers/Makefile
> index 7241d80a7b29..a7459e77df37 100644
> --- a/drivers/Makefile
> +++ b/drivers/Makefile
> @@ -195,3 +195,5 @@ obj-$(CONFIG_PECI)		+= peci/
>   obj-$(CONFIG_HTE)		+= hte/
>   obj-$(CONFIG_DRM_ACCEL)		+= accel/
>   obj-$(CONFIG_CDX_BUS)		+= cdx/
> +
> +obj-$(CONFIG_S390)		+= s390/

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

end of thread, other threads:[~2023-07-21 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21 13:41 [PATCH] s390: use obj-y to descend into drivers/s390/ Masahiro Yamada
2023-07-21 14:36 ` Christian Borntraeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox