Skip to contentSkip to conversation

platform-x86: Use *-y instead of *-objs in Makefiles

PATCH In review Kurt Borja 4 participants 10 messages Feb 18, 2025 – Feb 24, 2025

Subsystems (7)
lore
Share & tools
lore

Kurt Borja

author
#0 lore raw

cover platform-x86: Use *-y instead of *-objs in Makefiles

Hi all,

According to documentation, the -objs suffix is reserved to user-space and host programs. The -y suffix should be used for composite kernel modules and drivers.

[1] https://elixir.bootlin.com/linux/v6.14-rc3/source/Documentation/kbuild/makefiles.rst#L153

Based on pdx86/fixes branch.

Kurt Borja (4):
platform/x86: dell: dell-wmi-sysman: Use *-y instead of *-objs in
Makefile
platform/x86: amd: Use *-y instead of *-objs in Makefiles platform/x86: hp: Use *-y instead of *-objs in Makefile platform/x86: intel: Use *-y instead of *-objs in Makefile

 drivers/platform/x86/amd/Makefile                  | 2 +-
 drivers/platform/x86/amd/hsmp/Makefile             | 6 +++---
 drivers/platform/x86/amd/pmc/Makefile              | 6 +++---
 drivers/platform/x86/amd/pmf/Makefile              | 8 ++++----
 drivers/platform/x86/dell/dell-wmi-sysman/Makefile | 2 +-
 drivers/platform/x86/hp/hp-bioscfg/Makefile        | 2 +-
 drivers/platform/x86/intel/ifs/Makefile            | 2 +-
 7 files changed, 14 insertions(+), 14 deletions(-)

base-commit: a787ab73e2e43c0a3df10bc8d9b9b7a679129d49

Signature · 1 line
 ~ Kurt
author
#1 lore raw

PATCH 1/4 platform/x86: dell: dell-wmi-sysman: Use *-y instead of *-objs in Makefile

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

---
 drivers/platform/x86/dell/dell-wmi-sysman/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/dell/dell-wmi-sysman/Makefile +1 -1
index 825fb2fbeea8..0a6df449e222 100644
@@ -1,5 +1,5 @@
 obj-$(CONFIG_DELL_WMI_SYSMAN)  += dell-wmi-sysman.o
-dell-wmi-sysman-objs := 	sysman.o		\
+dell-wmi-sysman-y :=		sysman.o		\
 				enum-attributes.o	\
 				int-attributes.o	\
 				string-attributes.o	\
Signature · 1 line
2.48.1
#2 lore raw

Re: [PATCH 1/4] platform/x86: dell: dell-wmi-sysman: Use *-y instead of *-objs in Makefile

Quoted 2 lines · Kurt Borja

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

I haven't received a cover letter. Please, make sure when you send a version of the few patches under the same thread you add a cover letter. You may consider using my "smart" (not really) script [1] to send patch series to LKML.

[1]: https://github.com/andy-shev/home-bin-tools/blob/master/ge2maintainer.sh

Signature · 2 lines
With Best Regards,
Andy Shevchenko
author
#3 lore raw

Re: [PATCH 1/4] platform/x86: dell: dell-wmi-sysman: Use *-y instead of *-objs in Makefile

Quoted 7 lines · Andy Shevchenko
Quoted 2 lines · Kurt Borja

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

I haven't received a cover letter. Please, make sure when you send a version of the few patches under the same thread you add a cover letter. You may consider using my "smart" (not really) script [1] to send patch series to LKML.

Hi Andy,

Yes, I messed up the Cc list.

Quoted 2 lines

[1]: https://github.com/andy-shev/home-bin-tools/blob/master/ge2maintainer.sh

Thank you very much!! I'm using that from now on :)

Signature · 1 line
 ~ Kurt
author
#4 lore raw

PATCH 2/4 platform/x86: amd: Use *-y instead of *-objs in Makefiles

In reply to Kurt Borja

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

While at it, fix alignment in AMD PMC and PMF Makefiles.

---
 drivers/platform/x86/amd/Makefile      | 2 +-
 drivers/platform/x86/amd/hsmp/Makefile | 6 +++---
 drivers/platform/x86/amd/pmc/Makefile  | 6 +++---
 drivers/platform/x86/amd/pmf/Makefile  | 8 ++++----
 4 files changed, 11 insertions(+), 11 deletions(-)
drivers/platform/x86/amd/Makefile +1 -1
index 56f62fc9c97b..c6c40bdcbded 100644
@@ -5,7 +5,7 @@
 #
 
 obj-$(CONFIG_AMD_3D_VCACHE)	+= amd_3d_vcache.o
-amd_3d_vcache-objs		:= x3d_vcache.o
+amd_3d_vcache-y			:= x3d_vcache.o
 obj-$(CONFIG_AMD_PMC)		+= pmc/
 obj-$(CONFIG_AMD_HSMP)		+= hsmp/
 obj-$(CONFIG_AMD_PMF)		+= pmf/
drivers/platform/x86/amd/hsmp/Makefile +3 -3
index 3175d8885e87..0759bbcd13f6 100644
@@ -5,8 +5,8 @@
 #
 
 obj-$(CONFIG_AMD_HSMP)			+= hsmp_common.o
-hsmp_common-objs			:= hsmp.o
+hsmp_common-y				:= hsmp.o
 obj-$(CONFIG_AMD_HSMP_PLAT)		+= amd_hsmp.o
-amd_hsmp-objs				:= plat.o
+amd_hsmp-y				:= plat.o
 obj-$(CONFIG_AMD_HSMP_ACPI)		+= hsmp_acpi.o
-hsmp_acpi-objs				:= acpi.o
+hsmp_acpi-y				:= acpi.o
drivers/platform/x86/amd/pmc/Makefile +3 -3
index 255d94ddf999..bb6905c4cae9 100644
@@ -4,6 +4,6 @@
 # AMD Power Management Controller Driver
 #
 
-amd-pmc-objs := pmc.o pmc-quirks.o mp1_stb.o
-obj-$(CONFIG_AMD_PMC) += amd-pmc.o
-amd-pmc-$(CONFIG_AMD_MP2_STB) += mp2_stb.o
+obj-$(CONFIG_AMD_PMC)			+= amd-pmc.o
+amd-pmc-y				:= pmc.o pmc-quirks.o mp1_stb.o
+amd-pmc-$(CONFIG_AMD_MP2_STB)		+= mp2_stb.o
drivers/platform/x86/amd/pmf/Makefile +4 -4
index 6b26e48ce8ad..5978464e0eb7 100644
@@ -4,7 +4,7 @@
 # AMD Platform Management Framework
 #
 
-obj-$(CONFIG_AMD_PMF) += amd-pmf.o
-amd-pmf-objs := core.o acpi.o sps.o \
-		auto-mode.o cnqf.o \
-		tee-if.o spc.o
+obj-$(CONFIG_AMD_PMF)		+= amd-pmf.o
+amd-pmf-y 			:= core.o acpi.o sps.o \
+				   auto-mode.o cnqf.o \
+				   tee-if.o spc.o
Signature · 1 line
2.48.1
author
#5 lore raw

PATCH 3/4 platform/x86: hp: Use *-y instead of *-objs in Makefile

In reply to Kurt Borja

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

---
 drivers/platform/x86/hp/hp-bioscfg/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/hp/hp-bioscfg/Makefile +1 -1
index 67be0d917753..7d23649b34dc 100644
@@ -1,6 +1,6 @@
 obj-$(CONFIG_HP_BIOSCFG) := hp-bioscfg.o
 
-hp-bioscfg-objs := bioscfg.o	\
+hp-bioscfg-y := bioscfg.o	\
 	biosattr-interface.o	\
 	enum-attributes.o	\
 	int-attributes.o	\
Signature · 1 line
2.48.1
author
#6 lore raw

PATCH 4/4 platform/x86: intel: Use *-y instead of *-objs in Makefile

In reply to Kurt Borja

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

---
 drivers/platform/x86/intel/ifs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/intel/ifs/Makefile +1 -1
index 30f035ef5581..c3e417bce9b6 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_INTEL_IFS)		+= intel_ifs.o
 
-intel_ifs-objs			:= core.o load.o runtest.o sysfs.o
+intel_ifs-y			:= core.o load.o runtest.o sysfs.o
Signature · 1 line
2.48.1
Reviewed-by on v1 4/4
#7 lore raw

Re: [PATCH 4/4] platform/x86: intel: Use *-y instead of *-objs in Makefile

Quoted 8 lines · Kurt Borja

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

---
 drivers/platform/x86/intel/ifs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Looks good to me (and verified that driver is getting built)

drivers/platform/x86/intel/ifs/Makefile line 3

Quoted 10 lines
drivers/platform/x86/intel/ifs/Makefile +1 -1
index 30f035ef5581..c3e417bce9b6 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_INTEL_IFS)		+= intel_ifs.o
 
-intel_ifs-objs			:= core.o load.o runtest.o sysfs.o
+intel_ifs-y			:= core.o load.o runtest.o sysfs.o

Thanks
Jithu

Reviewed-by on v1 4/4
#8 lore raw

Re: [PATCH 4/4] platform/x86: intel: Use *-y instead of *-objs in Makefile

In reply to Kurt Borja
Quoted 2 lines · Kurt Borja

The objs suffix is reserved for user-space tools. Use the y suffix instead, which is usually used for kernel drivers.

for all 4.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#9 lore raw
In reply to Kurt Borja
Quoted 9 lines · Kurt Borja

According to documentation, the -objs suffix is reserved to user-space and host programs. The -y suffix should be used for composite kernel modules and drivers.

[1] https://elixir.bootlin.com/linux/v6.14-rc3/source/Documentation/kbuild/makefiles.rst#L153

Based on pdx86/fixes branch.

[...]

Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.

The list of commits applied:
[1/4] platform/x86: dell: dell-wmi-sysman: Use *-y instead of *-objs in Makefile

      commit: 363171c96a15f558cd622e10ea100c505132f7b8
[2/4] platform/x86: amd: Use *-y instead of *-objs in Makefiles
      commit: cfba129ad2775b6ed1f209367905ddb8c9964bf5
[3/4] platform/x86: hp: Use *-y instead of *-objs in Makefile
      commit: f0ea699b1816ebed6de9aa013387622b0f73f31b
[4/4] platform/x86: intel: Use *-y instead of *-objs in Makefile
      commit: 677fb7b0699dde2609d93eb57863c8d493e673ee

--
i.