Skip to contentSkip to conversation

powerpc/iommu: Use str_disabled_enabled() helper

PATCH Applied Thorsten Blum 2 participants 2 messages Feb 10, 2025 – May 18, 2025 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/iommu: Use str_disabled_enabled() helper

Remove hard-coded strings by using the str_disabled_enabled() helper.

---
 arch/powerpc/kernel/iommu.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
arch/powerpc/kernel/iommu.c +3 -2
index 0ebae6e4c19d..244eb4857e7f 100644
@@ -16,6 +16,7 @@
 #include <linux/mm.h>
 #include <linux/spinlock.h>
 #include <linux/string.h>
+#include <linux/string_choices.h>
 #include <linux/dma-mapping.h>
 #include <linux/bitmap.h>
 #include <linux/iommu-helper.h>
@@ -769,8 +770,8 @@ struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid,
 	iommu_table_clear(tbl);
 
 	if (!welcomed) {
-		printk(KERN_INFO "IOMMU table initialized, virtual merging %s\n",
-		       novmerge ? "disabled" : "enabled");
+		pr_info("IOMMU table initialized, virtual merging %s\n",
+			str_disabled_enabled(novmerge));
 		welcomed = 1;
 	}
 
Signature · 1 line
2.48.0