From 190eddc2f362e30233576f693a00785b33e8f563 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Mon, 23 Apr 2012 19:45:06 -0700 Subject: [PATCH] Bluetooth: properly use pr_fmt() on lib.c pr_fmt() is either defined or we redefine it. Typically drivers define it prior to including printk.h but this is done under the assumption that no other subsystem it uses has already defined pr_fmt(). In such cases pr_fmt() should be undefined and redefined. Doing this properly shaves down compilation time quite considerably. Signed-off-by: Luis R. Rodriguez Signed-off-by: Gustavo Padovan --- net/bluetooth/lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c index 506628876f36..84ff96f0198f 100644 --- a/net/bluetooth/lib.c +++ b/net/bluetooth/lib.c @@ -24,11 +24,13 @@ /* Bluetooth kernel library. */ +#undef pr_fmt #define pr_fmt(fmt) "Bluetooth: " fmt #include #include +#include #include #include #include -- 2.39.5