mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
ed01d2069e
commit
c940be4c7c
|
|
@ -10,8 +10,7 @@
|
|||
* Ursula Braun <ursula.braun@de.ibm.com>
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "af_iucv"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "af_iucv: " fmt
|
||||
|
||||
#include <linux/filter.h>
|
||||
#include <linux/module.h>
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@
|
|||
* CP Programming Service, IBM document # SC24-5760
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "iucv"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "iucv: " fmt
|
||||
|
||||
#include <linux/kernel_stat.h>
|
||||
#include <linux/export.h>
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
* Author: Juan Jose Ciarlante, <jjciarla@raiz.uncu.edu.ar>
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@
|
|||
* Changes:
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/in.h>
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@
|
|||
* Harald Welte don't use nfcache
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
* Changes:
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/init.h>
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/ip.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@
|
|||
* get_stats()) do the per cpu summing.
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/jiffies.h>
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@
|
|||
* Kenny Mathis : added initial functionality based on weight
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
* Author: Wouter Gadeyne
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@
|
|||
* me to write this module.
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/ip.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/ip.h>
|
||||
#include <linux/module.h>
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@
|
|||
* Wensong Zhang : added any dest with weight=0 is quiesced
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/ip.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@
|
|||
* PASV response can not be NAT-ed) but Active FTP should work
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@
|
|||
* active connections
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@
|
|||
* Changes:
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@
|
|||
* Wensong Zhang <wensong@linuxvirtualserver.org>
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/in.h>
|
||||
#include <linux/ip.h>
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
* protocol ip_vs_proto_data and is handled by netns
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/ip.h>
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@
|
|||
* Network name space (netns) aware.
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/in.h>
|
||||
#include <linux/ip.h>
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
* Wensong Zhang : added any dest with weight=0 is quiesced
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@
|
|||
* Changes:
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/ip.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@
|
|||
* Persistence support, fwmark and time-out.
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
* Authors: Darby Payne <darby.payne@applovin.com>
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
* Wensong Zhang : added any dest with weight=0 is quiesced
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
* with weight 0 when all weights are zero
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@
|
|||
* - the only place where we can see skb->sk != NULL
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "IPVS"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "IPVS: " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
* based on prototype from Frank Blaschka
|
||||
*/
|
||||
|
||||
#define KMSG_COMPONENT "smc"
|
||||
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||
#define pr_fmt(fmt) "smc: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/socket.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue