Skip to contentSkip to conversation

iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile

PATCH Applied Andy Shevchenko 3 participants 3 messages May 8, 2024 – Jun 5, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile

*-objs suffix is reserved rather for (user-space) host programs while usually *-y suffix is used for kernel drivers (although *-objs works for that purpose for now).

Let's correct the old usages of *-objs in Makefiles.

---

Note, the original approach is weirdest from the existing. Only a few drivers use this (-objs-y) one most likely by mistake.

 drivers/iommu/arm/arm-smmu-v3/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/iommu/arm/arm-smmu-v3/Makefile +3 -4
index 0b97054b3929..a5601b97f296 100644
@@ -1,6 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-$(CONFIG_ARM_SMMU_V3) += arm_smmu_v3.o
-arm_smmu_v3-objs-y += arm-smmu-v3.o
-arm_smmu_v3-objs-$(CONFIG_ARM_SMMU_V3_SVA) += arm-smmu-v3-sva.o
-arm_smmu_v3-objs-$(CONFIG_ARM_SMMU_V3_KUNIT_TEST) += arm-smmu-v3-test.o
-arm_smmu_v3-objs := $(arm_smmu_v3-objs-y)
+arm_smmu_v3-y := arm-smmu-v3.o
+arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_SVA) += arm-smmu-v3-sva.o
+arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_KUNIT_TEST) += arm-smmu-v3-test.o
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andy Shevchenko

*-objs suffix is reserved rather for (user-space) host programs while usually *-y suffix is used for kernel drivers (although *-objs works for that purpose for now).

Let's correct the old usages of *-objs in Makefiles.

Quoted 8 lines

---

Note, the original approach is weirdest from the existing. Only a few drivers use this (-objs-y) one most likely by mistake.

 drivers/iommu/arm/arm-smmu-v3/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Jason

maintainer Applied
#2 lore raw
In reply to Andy Shevchenko
Quoted 8 lines · Andy Shevchenko

*-objs suffix is reserved rather for (user-space) host programs while usually *-y suffix is used for kernel drivers (although *-objs works for that purpose for now).

Let's correct the old usages of *-objs in Makefiles.

[...]

Applied to will (for-joerg/arm-smmu/updates), thanks!

[1/1] iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile

      https://git.kernel.org/will/c/16c0bad7ae04

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev