aboutsummaryrefslogtreecommitdiffstats
diff options
authorThorsten Blum <thorsten.blum@linux.dev>2025-02-10 23:42:44 +0100
committerMadhavan Srinivasan <maddy@linux.ibm.com>2025-05-15 10:05:06 +0530
commitf15e87340afd4f5a35575e112aa4bdb0a138aa26 (patch)
treec79debdc5c58685a314c3f0832eafde3521bcf5f
parentf36a28192e3cbef6952c1b82d4ef78f26a0d2cad (diff)
downloadlinux-next-test.tar.gz
powerpc/iommu: Use str_disabled_enabled() helpernext-testnext
Remove hard-coded strings by using the str_disabled_enabled() helper. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20250210224246.363318-1-thorsten.blum@linux.dev
-rw-r--r--arch/powerpc/kernel/iommu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index 0ebae6e4c19dd7..244eb4857e7f4f 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -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;
}