Search Linux Wireless

[PATCH 4/8] compat-wireless: add linux/compat.h header

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

 



For some older kernel versions we have to include linux/compat.h in
some bluetooth code, otherwise it will not find functions like
compat_ptr().

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 patches/06-header-changes.patch |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/patches/06-header-changes.patch b/patches/06-header-changes.patch
index 92ed02d..db84468 100644
--- a/patches/06-header-changes.patch
+++ b/patches/06-header-changes.patch
@@ -75,3 +75,33 @@ cases.
  
  /**
   * DOC: Key handling basics
+--- a/net/bluetooth/bnep/sock.c
++++ b/net/bluetooth/bnep/sock.c
+@@ -26,6 +26,7 @@
+ 
+ #include <linux/export.h>
+ #include <linux/file.h>
++#include <linux/compat.h>
+ 
+ #include "bnep.h"
+ 
+--- a/net/bluetooth/hci_sock.c
++++ b/net/bluetooth/hci_sock.c
+@@ -25,6 +25,7 @@
+ /* Bluetooth HCI sockets. */
+ 
+ #include <linux/export.h>
++#include <linux/compat.h>
+ #include <asm/unaligned.h>
+ 
+ #include <net/bluetooth/bluetooth.h>
+--- a/net/bluetooth/hidp/sock.c
++++ b/net/bluetooth/hidp/sock.c
+@@ -22,6 +22,7 @@
+ 
+ #include <linux/export.h>
+ #include <linux/file.h>
++#include <linux/compat.h>
+ 
+ #include "hidp.h"
+ 
-- 
1.7.9.5

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux