All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH rc] iommupt/kunit: Use if_changed_rule for the kunit
@ 2026-10-13 13:13 Jason Gunthorpe
  2026-10-14 13:43 ` Joerg Roedel (AMD)
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Gunthorpe @ 2026-10-13 13:13 UTC (permalink / raw)
  To: iommu, Joerg Roedel (AMD), Robin Murphy, Will Deacon
  Cc: Alejandro Jimenez, Joerg Roedel, Kevin Tian, kernel test robot,
	Pasha Tatashin, patches

Use if_changed_rule so rule_cc_o_c runs cmd_save_c_flags for the kunit
objects. Without the saved flags CONFIG_LTO_CLANG_THIN_DIST runs the
ThinLTO backend with no --target and generates x86_64 code from arm64
bitcode.

Fixes: 1dd4187f53c3 ("iommupt: Add a kunit test for Generic Page Table")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202610110841.120JzAJG-lkp@intel.com/
Assisted-by: LLM
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
---
 drivers/iommu/generic_pt/fmt/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/generic_pt/fmt/Makefile b/drivers/iommu/generic_pt/fmt/Makefile
index ea024d582594ee..e308760d02b7db 100644
--- a/drivers/iommu/generic_pt/fmt/Makefile
+++ b/drivers/iommu/generic_pt/fmt/Makefile
@@ -25,6 +25,6 @@ $(eval $(foreach fmt,$(iommu_pt_fmt-m),$(call create_format,$(fmt),m)))
 # with -DGENERIC_PT_KUNIT
 $(obj)/kunit_iommu_%.o: $(src)/iommu_%.c FORCE
 	$(call rule_mkdir)
-	$(call if_changed_dep,cc_o_c)
+	$(call if_changed_rule,cc_o_c)
 
 obj-$(CONFIG_IOMMU_PT_KUNIT_TEST) += $(IOMMU_PT_KUNIT_TEST)

base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
-- 
2.43.0


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

* Re: [PATCH rc] iommupt/kunit: Use if_changed_rule for the kunit
  2026-10-13 13:13 [PATCH rc] iommupt/kunit: Use if_changed_rule for the kunit Jason Gunthorpe
@ 2026-10-14 13:43 ` Joerg Roedel (AMD)
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel (AMD) @ 2026-10-14 13:43 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: iommu, Robin Murphy, Will Deacon, Alejandro Jimenez, Joerg Roedel,
	Kevin Tian, kernel test robot, Pasha Tatashin, patches

On Tue, Oct 13, 2026 at 10:13:30AM -0300, Jason Gunthorpe wrote:
> Use if_changed_rule so rule_cc_o_c runs cmd_save_c_flags for the kunit
> objects. Without the saved flags CONFIG_LTO_CLANG_THIN_DIST runs the
> ThinLTO backend with no --target and generates x86_64 code from arm64
> bitcode.
> 
> Fixes: 1dd4187f53c3 ("iommupt: Add a kunit test for Generic Page Table")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202610110841.120JzAJG-lkp@intel.com/
> Assisted-by: LLM
> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

Applied, thanks.

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

end of thread, other threads:[~2026-10-14 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 13:13 [PATCH rc] iommupt/kunit: Use if_changed_rule for the kunit Jason Gunthorpe
2026-10-14 13:43 ` Joerg Roedel (AMD)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.