]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc/iommu: Use str_disabled_enabled() helper
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 10 Feb 2025 22:42:44 +0000 (23:42 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Thu, 15 May 2025 04:35:06 +0000 (10:05 +0530)
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
arch/powerpc/kernel/iommu.c

index 0ebae6e4c19dd75e84ce38177ea5564c94fada69..244eb4857e7f4fb4174c47df2de1282758be720a 100644 (file)
@@ -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;
        }