From: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxx> 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 <mcgrof@xxxxxxxxxxxxxxxx> --- net/bluetooth/lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c index 5066288..84ff96f 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 <linux/module.h> #include <linux/kernel.h> +#include <linux/printk.h> #include <linux/stddef.h> #include <linux/string.h> #include <asm/errno.h> -- 1.7.10.rc1.22.gf5241 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html