aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2013-06-03 14:43:36 -0700
committerJoern Engel <joern@logfs.org>2013-06-03 14:43:36 -0700
commit2fbde535d79ec43413e3e616fd9d5f470a821d15 (patch)
tree5e98bb6897a448aa9bc93f65638653a94336fed5
parent76c1bd71a503ba72414622ffcf11d719d5bcf6f8 (diff)
downloadbcon2-2fbde535d79ec43413e3e616fd9d5f470a821d15.tar.gz
bcon: move pr_fmt before includes
By following the common pattern the #undef hack is no longer needed. Signed-off-by: Joern Engel <joern@logfs.org>
-rw-r--r--drivers/block/blockconsole.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/block/blockconsole.c b/drivers/block/blockconsole.c
index c478e000e3ae21..68c571a7d27265 100644
--- a/drivers/block/blockconsole.c
+++ b/drivers/block/blockconsole.c
@@ -3,6 +3,8 @@
*
* Copyright (C) 2012 Joern Engel <joern@logfs.org>
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/bio.h>
#include <linux/blockconsole.h>
#include <linux/console.h>
@@ -37,9 +39,6 @@
#define SECTOR_MASK (~(SECTOR_SIZE-1))
#define PG_SECTOR_MASK ((PAGE_SIZE >> 9) - 1)
-#undef pr_fmt
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-
struct bcon_bio {
struct bio bio;
struct bio_vec bvec;