KVM: s390: fix kmsg component kvm-s390
authorMichael Mueller <mimu@linux.ibm.com>
Mon, 3 Dec 2018 09:20:22 +0000 (10:20 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 18 Dec 2018 09:18:27 +0000 (10:18 +0100)
Relocate #define statement for kvm related kernel messages
before the include of printk to become effective.

Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c

index d8d8e078815776759ac56fc90835abd88f511ac7..530b4175f56db0ea7042dc720d56adf286d42e7b 100644 (file)
@@ -11,6 +11,9 @@
  *               Jason J. Herne <jjherne@us.ibm.com>
  */
 
+#define KMSG_COMPONENT "kvm-s390"
+#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+
 #include <linux/compiler.h>
 #include <linux/err.h>
 #include <linux/fs.h>
 #include "kvm-s390.h"
 #include "gaccess.h"
 
-#define KMSG_COMPONENT "kvm-s390"
-#undef pr_fmt
-#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
-
 #define CREATE_TRACE_POINTS
 #include "trace.h"
 #include "trace-s390.h"