* [PATCH] powerpc/iommu: Use str_disabled_enabled() helper
@ 2025-02-10 22:42 Thorsten Blum
2025-05-18 3:44 ` Madhavan Srinivasan
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-02-10 22:42 UTC (permalink / raw)
To: Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
Christophe Leroy, Naveen N Rao, Shivaprasad G Bhat,
Jason Gunthorpe, Gaurav Batra, Brian King, Kent Overstreet
Cc: Thorsten Blum, linuxppc-dev, linux-kernel
Remove hard-coded strings by using the str_disabled_enabled() helper.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/powerpc/kernel/iommu.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index 0ebae6e4c19d..244eb4857e7f 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;
}
--
2.48.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/iommu: Use str_disabled_enabled() helper
2025-02-10 22:42 [PATCH] powerpc/iommu: Use str_disabled_enabled() helper Thorsten Blum
@ 2025-05-18 3:44 ` Madhavan Srinivasan
0 siblings, 0 replies; 2+ messages in thread
From: Madhavan Srinivasan @ 2025-05-18 3:44 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy, Naveen N Rao,
Shivaprasad G Bhat, Jason Gunthorpe, Gaurav Batra, Brian King,
Kent Overstreet, Thorsten Blum
Cc: linuxppc-dev, linux-kernel
On Mon, 10 Feb 2025 23:42:44 +0100, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_disabled_enabled() helper.
>
>
Applied to powerpc/next.
[1/1] powerpc/iommu: Use str_disabled_enabled() helper
https://git.kernel.org/powerpc/c/f15e87340afd4f5a35575e112aa4bdb0a138aa26
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-18 3:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 22:42 [PATCH] powerpc/iommu: Use str_disabled_enabled() helper Thorsten Blum
2025-05-18 3:44 ` Madhavan Srinivasan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).