aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2017-10-18 22:55:59 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2017-10-18 23:26:15 +0200
commitdb4550c4c812c5bf146e654845008e78c62c16d1 (patch)
tree994a8650c6c913961bebacd8625ad7bdd75b4564 /package
parent7c42f15c2406481784d654d99244539d71522582 (diff)
downloadupstream-db4550c4c812c5bf146e654845008e78c62c16d1.tar.gz
upstream-db4550c4c812c5bf146e654845008e78c62c16d1.tar.bz2
upstream-db4550c4c812c5bf146e654845008e78c62c16d1.zip
broadcom-wl: fix compile with kernel 4.9
ENOENT could not be found by the compiler when compiling again kernel 4.9. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/broadcom-wl/patches/120-fixup-mac-addresses.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/package/kernel/broadcom-wl/patches/120-fixup-mac-addresses.patch b/package/kernel/broadcom-wl/patches/120-fixup-mac-addresses.patch
index a07176d02d..422f7f784f 100644
--- a/package/kernel/broadcom-wl/patches/120-fixup-mac-addresses.patch
+++ b/package/kernel/broadcom-wl/patches/120-fixup-mac-addresses.patch
@@ -1,14 +1,15 @@
--- a/driver/nvram_stub.c
+++ b/driver/nvram_stub.c
-@@ -5,6 +5,7 @@
+@@ -5,6 +5,8 @@
#include <siutils.h>
#include <bcmendian.h>
#include <bcmnvram.h>
+#include <proto/ethernet.h>
++#include <linux/errno.h>
#ifdef BCMDBG_ERR
#define NVR_MSG(x) printf x
-@@ -24,6 +25,7 @@ typedef struct _vars {
+@@ -24,6 +26,7 @@ typedef struct _vars {
static vars_t *vars = NULL;
static int nvram_init_done = 0;
extern char *nvram_buf[];
@@ -16,7 +17,7 @@
int
BCMATTACHFN(nvram_init)(void *si)
-@@ -55,6 +57,7 @@ BCMATTACHFN(nvram_init)(void *si)
+@@ -55,6 +58,7 @@ BCMATTACHFN(nvram_init)(void *si)
vars = new;
bcopy((char *)(&nvh[1]), new->vars, nvs);
@@ -24,7 +25,7 @@
return 0;
}
-@@ -164,3 +167,65 @@ nvram_getall(char *buf, int count)
+@@ -164,3 +168,65 @@ nvram_getall(char *buf, int count)
*buf = '\0';
return 0;
}