[PATCH 2/2] compat-drivers: Update 53-pr_fmt.patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix ath5k/debug.c redefinition warning for pr_fmt macro

Signed-off-by: Ozan Çağlayan <ozancag@xxxxxxxxx>
---
 patches/network/53-pr_fmt.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/patches/network/53-pr_fmt.patch b/patches/network/53-pr_fmt.patch
index 4c29be6..f1af016 100644
--- a/patches/network/53-pr_fmt.patch
+++ b/patches/network/53-pr_fmt.patch
@@ -819,3 +819,16 @@ compiler warnings. This is going to be sent upstream.
  #include <linux/slab.h>
  
  #include "ath5k.h"
+--- a/drivers/net/wireless/ath/ath5k/debug.c
++++ b/drivers/net/wireless/ath/ath5k/debug.c
+@@ -58,8 +58,10 @@
+  * THE POSSIBILITY OF SUCH DAMAGES.
+  */
+
++#undef pr_fmt
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
++#include <linux/printk.h>
+ #include <linux/export.h>
+ #include <linux/moduleparam.h>
+
-- 
1.7.11.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux