* [PATCH] tty: hvc-iucv: Remove KMSG_COMPONENT macro
@ 2025-11-26 14:29 Heiko Carstens
0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2025-11-26 14:29 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby, Hendrik Brueckner; +Cc: linux-kernel
The KMSG_COMPONENT macro is a leftover of the s390 specific "kernel message
catalog" from 2008 [1] which never made it upstream.
The macro was added to s390 code to allow for an out-of-tree patch which
used this to generate unique message ids. Also this out-of-tree doesn't
exist anymore.
Remove the macro in order to get rid of a pointless indirection.
[1] https://lwn.net/Articles/292650/
Acked-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
---
drivers/tty/hvc/hvc_iucv.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/tty/hvc/hvc_iucv.c b/drivers/tty/hvc/hvc_iucv.c
index 4ca7472c38e0..a7939c49c9cf 100644
--- a/drivers/tty/hvc/hvc_iucv.c
+++ b/drivers/tty/hvc/hvc_iucv.c
@@ -9,8 +9,7 @@
*
* Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
*/
-#define KMSG_COMPONENT "hvc_iucv"
-#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+#define pr_fmt(fmt) "hvc_iucv: " fmt
#include <linux/types.h>
#include <linux/slab.h>
@@ -1344,7 +1343,7 @@ static int __init hvc_iucv_init(void)
}
}
- hvc_iucv_buffer_cache = kmem_cache_create(KMSG_COMPONENT,
+ hvc_iucv_buffer_cache = kmem_cache_create("hvc_iucv",
sizeof(struct iucv_tty_buffer),
0, 0, NULL);
if (!hvc_iucv_buffer_cache) {
--
2.51.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-26 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-26 14:29 [PATCH] tty: hvc-iucv: Remove KMSG_COMPONENT macro Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox