Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: 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 patch
doesn't exist anymore.

The pattern of how the KMSG_COMPONENT macro is used can also be found at
some non s390 specific code, for whatever reasons. Besides adding an
indirection it is unused.

Remove the macro in order to get rid of a pointless indirection. Replace
all users with the string it defines. In all cases this leads to a simple
replacement like this:

- #define KMSG_COMPONENT "af_iucv"
- #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+ #define pr_fmt(fmt) "af_iucv: " fmt

[1] https://lwn.net/Articles/292650/

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Alexandra Winter <wintera@linux.ibm.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Sidraya Jayagond <sidraya@linux.ibm.com>
Link: https://patch.msgid.link/20251126140705.1944278-1-hca@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiko Carstens and committed by
Jakub Kicinski
c940be4c ed01d206

+33 -66
+1 -2
net/iucv/af_iucv.c
··· 10 10 * Ursula Braun <ursula.braun@de.ibm.com> 11 11 */ 12 12 13 - #define KMSG_COMPONENT "af_iucv" 14 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 13 + #define pr_fmt(fmt) "af_iucv: " fmt 15 14 16 15 #include <linux/filter.h> 17 16 #include <linux/module.h>
+1 -2
net/iucv/iucv.c
··· 20 20 * CP Programming Service, IBM document # SC24-5760 21 21 */ 22 22 23 - #define KMSG_COMPONENT "iucv" 24 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 23 + #define pr_fmt(fmt) "iucv: " fmt 25 24 26 25 #include <linux/kernel_stat.h> 27 26 #include <linux/export.h>
+1 -2
net/netfilter/ipvs/ip_vs_app.c
··· 13 13 * Author: Juan Jose Ciarlante, <jjciarla@raiz.uncu.edu.ar> 14 14 */ 15 15 16 - #define KMSG_COMPONENT "IPVS" 17 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 16 + #define pr_fmt(fmt) "IPVS: " fmt 18 17 19 18 #include <linux/module.h> 20 19 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_conn.c
··· 17 17 * Changes: 18 18 */ 19 19 20 - #define KMSG_COMPONENT "IPVS" 21 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 20 + #define pr_fmt(fmt) "IPVS: " fmt 22 21 23 22 #include <linux/interrupt.h> 24 23 #include <linux/in.h>
+1 -2
net/netfilter/ipvs/ip_vs_core.c
··· 19 19 * Harald Welte don't use nfcache 20 20 */ 21 21 22 - #define KMSG_COMPONENT "IPVS" 23 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 22 + #define pr_fmt(fmt) "IPVS: " fmt 24 23 25 24 #include <linux/module.h> 26 25 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_ctl.c
··· 13 13 * Changes: 14 14 */ 15 15 16 - #define KMSG_COMPONENT "IPVS" 17 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 16 + #define pr_fmt(fmt) "IPVS: " fmt 18 17 19 18 #include <linux/module.h> 20 19 #include <linux/init.h>
+1 -2
net/netfilter/ipvs/ip_vs_dh.c
··· 30 30 * 31 31 */ 32 32 33 - #define KMSG_COMPONENT "IPVS" 34 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 33 + #define pr_fmt(fmt) "IPVS: " fmt 35 34 36 35 #include <linux/ip.h> 37 36 #include <linux/slab.h>
+1 -2
net/netfilter/ipvs/ip_vs_est.c
··· 12 12 * get_stats()) do the per cpu summing. 13 13 */ 14 14 15 - #define KMSG_COMPONENT "IPVS" 16 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 15 + #define pr_fmt(fmt) "IPVS: " fmt 17 16 18 17 #include <linux/kernel.h> 19 18 #include <linux/jiffies.h>
+1 -2
net/netfilter/ipvs/ip_vs_fo.c
··· 8 8 * Kenny Mathis : added initial functionality based on weight 9 9 */ 10 10 11 - #define KMSG_COMPONENT "IPVS" 12 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 11 + #define pr_fmt(fmt) "IPVS: " fmt 13 12 14 13 #include <linux/module.h> 15 14 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_ftp.c
··· 16 16 * Author: Wouter Gadeyne 17 17 */ 18 18 19 - #define KMSG_COMPONENT "IPVS" 20 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 19 + #define pr_fmt(fmt) "IPVS: " fmt 21 20 22 21 #include <linux/module.h> 23 22 #include <linux/moduleparam.h>
+1 -2
net/netfilter/ipvs/ip_vs_lblc.c
··· 34 34 * me to write this module. 35 35 */ 36 36 37 - #define KMSG_COMPONENT "IPVS" 38 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 37 + #define pr_fmt(fmt) "IPVS: " fmt 39 38 40 39 #include <linux/ip.h> 41 40 #include <linux/slab.h>
+1 -2
net/netfilter/ipvs/ip_vs_lblcr.c
··· 32 32 * 33 33 */ 34 34 35 - #define KMSG_COMPONENT "IPVS" 36 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 35 + #define pr_fmt(fmt) "IPVS: " fmt 37 36 38 37 #include <linux/ip.h> 39 38 #include <linux/module.h>
+1 -2
net/netfilter/ipvs/ip_vs_lc.c
··· 9 9 * Wensong Zhang : added any dest with weight=0 is quiesced 10 10 */ 11 11 12 - #define KMSG_COMPONENT "IPVS" 13 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 12 + #define pr_fmt(fmt) "IPVS: " fmt 14 13 15 14 #include <linux/module.h> 16 15 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_mh.c
··· 17 17 * 18 18 */ 19 19 20 - #define KMSG_COMPONENT "IPVS" 21 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 20 + #define pr_fmt(fmt) "IPVS: " fmt 22 21 23 22 #include <linux/ip.h> 24 23 #include <linux/slab.h>
+1 -2
net/netfilter/ipvs/ip_vs_nfct.c
··· 30 30 * PASV response can not be NAT-ed) but Active FTP should work 31 31 */ 32 32 33 - #define KMSG_COMPONENT "IPVS" 34 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 33 + #define pr_fmt(fmt) "IPVS: " fmt 35 34 36 35 #include <linux/module.h> 37 36 #include <linux/types.h>
+1 -2
net/netfilter/ipvs/ip_vs_nq.c
··· 26 26 * 27 27 */ 28 28 29 - #define KMSG_COMPONENT "IPVS" 30 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 29 + #define pr_fmt(fmt) "IPVS: " fmt 31 30 32 31 #include <linux/module.h> 33 32 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_ovf.c
··· 12 12 * active connections 13 13 */ 14 14 15 - #define KMSG_COMPONENT "IPVS" 16 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 15 + #define pr_fmt(fmt) "IPVS: " fmt 17 16 18 17 #include <linux/module.h> 19 18 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_pe.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 - #define KMSG_COMPONENT "IPVS" 3 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 2 + #define pr_fmt(fmt) "IPVS: " fmt 4 3 5 4 #include <linux/module.h> 6 5 #include <linux/spinlock.h>
+1 -2
net/netfilter/ipvs/ip_vs_pe_sip.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 - #define KMSG_COMPONENT "IPVS" 3 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 2 + #define pr_fmt(fmt) "IPVS: " fmt 4 3 5 4 #include <linux/module.h> 6 5 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_proto.c
··· 8 8 * Changes: 9 9 */ 10 10 11 - #define KMSG_COMPONENT "IPVS" 12 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 11 + #define pr_fmt(fmt) "IPVS: " fmt 13 12 14 13 #include <linux/module.h> 15 14 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_proto_ah_esp.c
··· 6 6 * Wensong Zhang <wensong@linuxvirtualserver.org> 7 7 */ 8 8 9 - #define KMSG_COMPONENT "IPVS" 10 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 9 + #define pr_fmt(fmt) "IPVS: " fmt 11 10 12 11 #include <linux/in.h> 13 12 #include <linux/ip.h>
+1 -2
net/netfilter/ipvs/ip_vs_proto_tcp.c
··· 13 13 * protocol ip_vs_proto_data and is handled by netns 14 14 */ 15 15 16 - #define KMSG_COMPONENT "IPVS" 17 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 16 + #define pr_fmt(fmt) "IPVS: " fmt 18 17 19 18 #include <linux/kernel.h> 20 19 #include <linux/ip.h>
+1 -2
net/netfilter/ipvs/ip_vs_proto_udp.c
··· 9 9 * Network name space (netns) aware. 10 10 */ 11 11 12 - #define KMSG_COMPONENT "IPVS" 13 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 12 + #define pr_fmt(fmt) "IPVS: " fmt 14 13 15 14 #include <linux/in.h> 16 15 #include <linux/ip.h>
+1 -2
net/netfilter/ipvs/ip_vs_rr.c
··· 14 14 * Wensong Zhang : added any dest with weight=0 is quiesced 15 15 */ 16 16 17 - #define KMSG_COMPONENT "IPVS" 18 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 17 + #define pr_fmt(fmt) "IPVS: " fmt 19 18 20 19 #include <linux/module.h> 21 20 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_sched.c
··· 12 12 * Changes: 13 13 */ 14 14 15 - #define KMSG_COMPONENT "IPVS" 16 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 15 + #define pr_fmt(fmt) "IPVS: " fmt 17 16 18 17 #include <linux/module.h> 19 18 #include <linux/spinlock.h>
+1 -2
net/netfilter/ipvs/ip_vs_sed.c
··· 30 30 * 31 31 */ 32 32 33 - #define KMSG_COMPONENT "IPVS" 34 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 33 + #define pr_fmt(fmt) "IPVS: " fmt 35 34 36 35 #include <linux/module.h> 37 36 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_sh.c
··· 32 32 * 33 33 */ 34 34 35 - #define KMSG_COMPONENT "IPVS" 36 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 35 + #define pr_fmt(fmt) "IPVS: " fmt 37 36 38 37 #include <linux/ip.h> 39 38 #include <linux/slab.h>
+1 -2
net/netfilter/ipvs/ip_vs_sync.c
··· 32 32 * Persistence support, fwmark and time-out. 33 33 */ 34 34 35 - #define KMSG_COMPONENT "IPVS" 36 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 35 + #define pr_fmt(fmt) "IPVS: " fmt 37 36 38 37 #include <linux/module.h> 39 38 #include <linux/slab.h>
+1 -2
net/netfilter/ipvs/ip_vs_twos.c
··· 4 4 * Authors: Darby Payne <darby.payne@applovin.com> 5 5 */ 6 6 7 - #define KMSG_COMPONENT "IPVS" 8 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 7 + #define pr_fmt(fmt) "IPVS: " fmt 9 8 10 9 #include <linux/kernel.h> 11 10 #include <linux/module.h>
+1 -2
net/netfilter/ipvs/ip_vs_wlc.c
··· 14 14 * Wensong Zhang : added any dest with weight=0 is quiesced 15 15 */ 16 16 17 - #define KMSG_COMPONENT "IPVS" 18 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 17 + #define pr_fmt(fmt) "IPVS: " fmt 19 18 20 19 #include <linux/module.h> 21 20 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_wrr.c
··· 13 13 * with weight 0 when all weights are zero 14 14 */ 15 15 16 - #define KMSG_COMPONENT "IPVS" 17 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 16 + #define pr_fmt(fmt) "IPVS: " fmt 18 17 19 18 #include <linux/module.h> 20 19 #include <linux/kernel.h>
+1 -2
net/netfilter/ipvs/ip_vs_xmit.c
··· 21 21 * - the only place where we can see skb->sk != NULL 22 22 */ 23 23 24 - #define KMSG_COMPONENT "IPVS" 25 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 24 + #define pr_fmt(fmt) "IPVS: " fmt 26 25 27 26 #include <linux/kernel.h> 28 27 #include <linux/slab.h>
+1 -2
net/smc/af_smc.c
··· 16 16 * based on prototype from Frank Blaschka 17 17 */ 18 18 19 - #define KMSG_COMPONENT "smc" 20 - #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 19 + #define pr_fmt(fmt) "smc: " fmt 21 20 22 21 #include <linux/module.h> 23 22 #include <linux/socket.h>