Commit c3d17464 authored by Heiko Carstens's avatar Heiko Carstens
Browse files

s390: Remove KMSG_COMPONENT macro



The KMSG_COMPONENT macro is a leftover of the s390 specific "kernel
message catalog" which never made it upstream.

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

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

Except for some special cases this is just mechanical/scripted work.

Acked-by: default avatarThomas Richter <tmricht@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent e950d1f8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -9,8 +9,7 @@
 * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com>
 */

#define KMSG_COMPONENT	"appldata"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#define pr_fmt(fmt) "appldata: " fmt

#include <linux/export.h>
#include <linux/module.h>
+1 −2
Original line number Diff line number Diff line
@@ -8,8 +8,7 @@
 * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com>
 */

#define KMSG_COMPONENT	"appldata"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#define pr_fmt(fmt) "appldata: " fmt

#include <linux/module.h>
#include <linux/init.h>
+1 −2
Original line number Diff line number Diff line
@@ -14,8 +14,7 @@
 * Derived from "crypto/aes_generic.c"
 */

#define KMSG_COMPONENT "aes_s390"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#define pr_fmt(fmt) "aes_s390: " fmt

#include <crypto/aes.h>
#include <crypto/algapi.h>
+1 −2
Original line number Diff line number Diff line
@@ -5,8 +5,7 @@
 * s390 specific HMAC support.
 */

#define KMSG_COMPONENT	"hmac_s390"
#define pr_fmt(fmt)	KMSG_COMPONENT ": " fmt
#define pr_fmt(fmt) "hmac_s390: " fmt

#include <asm/cpacf.h>
#include <crypto/internal/hash.h>
+1 −2
Original line number Diff line number Diff line
@@ -10,8 +10,7 @@
 *		Harald Freudenberger <freude@de.ibm.com>
 */

#define KMSG_COMPONENT "paes_s390"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#define pr_fmt(fmt) "paes_s390: " fmt

#include <linux/atomic.h>
#include <linux/cpufeature.h>
Loading