Re: [PATCH] iommu/amd: define 'amd_ivhd_dev_flags_list' in header
From: Jörg Rödel
Date: Sat Jan 10 2026 - 04:49:13 EST
On Thu, Jan 08, 2026 at 10:25:41AM +0000, Ben Dooks wrote:
> The 'amd_ivhd_dev_flags_list' is used in the amd_iommu_types.h
> header but not defined, so add the definition to remove the
> following sparse warning:
I think it is better to just move the for_each_ivhd_dte_flags macro over to
init.c. There is no need for this list to be visible across the entire driver.
-Joerg