Skip to content

Commit 0e19f73

Browse files
hcahcagregkh
authored andcommitted
tty: hvc-iucv: Remove KMSG_COMPONENT macro
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> Link: https://patch.msgid.link/20251126142909.2140015-1-hca@linux.ibm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c7d8b85 commit 0e19f73

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/tty/hvc/hvc_iucv.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
* Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
1111
*/
12-
#define KMSG_COMPONENT "hvc_iucv"
13-
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
12+
#define pr_fmt(fmt) "hvc_iucv: " fmt
1413

1514
#include <linux/types.h>
1615
#include <linux/slab.h>
@@ -1344,7 +1343,7 @@ static int __init hvc_iucv_init(void)
13441343
}
13451344
}
13461345

1347-
hvc_iucv_buffer_cache = kmem_cache_create(KMSG_COMPONENT,
1346+
hvc_iucv_buffer_cache = kmem_cache_create("hvc_iucv",
13481347
sizeof(struct iucv_tty_buffer),
13491348
0, 0, NULL);
13501349
if (!hvc_iucv_buffer_cache) {

0 commit comments

Comments
 (0)