Skip to content

Commit 97313d6

Browse files
committed
Merge tag 'iommu-fixes-v6.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux
Pull iomu fixes from Joerg Roedel: - several Kconfig-related build fixes - fix for when gcc 8.5 on PPC refuses to inline a function from a header file * tag 'iommu-fixes-v6.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux: iommupt: Make pt_feature() always_inline iommufd/selftest: Prevent module/builtin conflicts in kconfig iommufd/selftest: Add missing kconfig for DMA_SHARED_BUFFER iommupt: Fix the kunit building
2 parents 7893cc1 + 6a3d5fd commit 97313d6

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

drivers/iommu/generic_pt/.kunitconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_KUNIT=y
2+
CONFIG_COMPILE_TEST=y
23
CONFIG_GENERIC_PT=y
34
CONFIG_DEBUG_GENERIC_PT=y
45
CONFIG_IOMMU_PT=y
@@ -11,4 +12,3 @@ CONFIG_IOMMUFD=y
1112
CONFIG_DEBUG_KERNEL=y
1213
CONFIG_FAULT_INJECTION=y
1314
CONFIG_RUNTIME_TESTING_MENU=y
14-
CONFIG_IOMMUFD_TEST=y

drivers/iommu/generic_pt/pt_defs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static inline bool pt_table_install32(struct pt_state *pts, u32 table_entry)
202202

203203
#define PT_SUPPORTED_FEATURE(feature_nr) (PT_SUPPORTED_FEATURES & BIT(feature_nr))
204204

205-
static inline bool pt_feature(const struct pt_common *common,
205+
static __always_inline bool pt_feature(const struct pt_common *common,
206206
unsigned int feature_nr)
207207
{
208208
if (PT_FORCE_ENABLED_FEATURES & BIT(feature_nr))
@@ -212,7 +212,7 @@ static inline bool pt_feature(const struct pt_common *common,
212212
return common->features & BIT(feature_nr);
213213
}
214214

215-
static inline bool pts_feature(const struct pt_state *pts,
215+
static __always_inline bool pts_feature(const struct pt_state *pts,
216216
unsigned int feature_nr)
217217
{
218218
return pt_feature(pts->range->common, feature_nr);

drivers/iommu/iommufd/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ config IOMMUFD_TEST
4141
depends on DEBUG_KERNEL
4242
depends on FAULT_INJECTION
4343
depends on RUNTIME_TESTING_MENU
44-
depends on IOMMU_PT_AMDV1
44+
depends on IOMMU_PT_AMDV1=y || IOMMUFD=IOMMU_PT_AMDV1
45+
select DMA_SHARED_BUFFER
4546
select IOMMUFD_DRIVER
4647
default n
4748
help

0 commit comments

Comments
 (0)