ENOENT could not be found by the compiler when compiling again kernel
4.9.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
--- a/driver/nvram_stub.c
+++ b/driver/nvram_stub.c
--- a/driver/nvram_stub.c
+++ b/driver/nvram_stub.c
#include <siutils.h>
#include <bcmendian.h>
#include <bcmnvram.h>
+#include <proto/ethernet.h>
#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
#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[];
static vars_t *vars = NULL;
static int nvram_init_done = 0;
extern char *nvram_buf[];
int
BCMATTACHFN(nvram_init)(void *si)
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);
vars = new;
bcopy((char *)(&nvh[1]), new->vars, nvs);
-@@ -164,3 +167,65 @@ nvram_getall(char *buf, int count)
+@@ -164,3 +168,65 @@ nvram_getall(char *buf, int count)