* [PATCH v1 1/1] iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile
@ 2024-05-08 15:15 Andy Shevchenko
2024-05-09 14:27 ` Jason Gunthorpe
2024-06-05 15:45 ` Will Deacon
0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2024-05-08 15:15 UTC (permalink / raw)
To: Andy Shevchenko, linux-arm-kernel, iommu, linux-kernel
Cc: Will Deacon, Robin Murphy, Joerg Roedel
*-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.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
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(-)
diff --git a/drivers/iommu/arm/arm-smmu-v3/Makefile b/drivers/iommu/arm/arm-smmu-v3/Makefile
index 0b97054b3929..a5601b97f296 100644
--- a/drivers/iommu/arm/arm-smmu-v3/Makefile
+++ b/drivers/iommu/arm/arm-smmu-v3/Makefile
@@ -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
--
2.43.0.rc1.1336.g36b5255a03ac
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile
2024-05-08 15:15 [PATCH v1 1/1] iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile Andy Shevchenko
@ 2024-05-09 14:27 ` Jason Gunthorpe
2024-06-05 15:45 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2024-05-09 14:27 UTC (permalink / raw)
To: Andy Shevchenko
Cc: linux-arm-kernel, iommu, linux-kernel, Will Deacon, Robin Murphy,
Joerg Roedel
On Wed, May 08, 2024 at 06:15:55PM +0300, Andy Shevchenko wrote:
> *-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.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>
> 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(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Jason
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile
2024-05-08 15:15 [PATCH v1 1/1] iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile Andy Shevchenko
2024-05-09 14:27 ` Jason Gunthorpe
@ 2024-06-05 15:45 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2024-06-05 15:45 UTC (permalink / raw)
To: linux-arm-kernel, iommu, linux-kernel, Andy Shevchenko
Cc: catalin.marinas, kernel-team, Will Deacon, Robin Murphy,
Joerg Roedel
On Wed, 08 May 2024 18:15:55 +0300, Andy Shevchenko wrote:
> *-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,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-05 15:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 15:15 [PATCH v1 1/1] iommu/arm-smmu-v3: Use *-y instead of *-objs in Makefile Andy Shevchenko
2024-05-09 14:27 ` Jason Gunthorpe
2024-06-05 15:45 ` Will Deacon
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).