BB: lantiq:
authorJohn Crispin <john@openwrt.org>
Mon, 3 Nov 2014 08:32:38 +0000 (08:32 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 3 Nov 2014 08:32:38 +0000 (08:32 +0000)
MIPS: Fix rtlx build error.

      CC      arch/mips/kernel/rtlx.o
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c: In function ‘file_write’:
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c:439:23: error: unused variable ‘rt’ [-Werror=unused-variable]
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c: In function ‘rtlx_module_init’:
    /home/ralf/src/linux/upstream-sfr/arch/mips/kernel/rtlx.c:523:3: error: implicit declaration of function ‘set_vi_handler’ [-Werror=implicit-function-declaration]
    cc1: all warnings being treated as errors

    Caused by 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 [new helper:
    file_inode(file)].

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
SVN-Revision: 43159

target/linux/lantiq/patches-3.10/0154-fix-rtlx-build-error.patch [new file with mode: 0644]

diff --git a/target/linux/lantiq/patches-3.10/0154-fix-rtlx-build-error.patch b/target/linux/lantiq/patches-3.10/0154-fix-rtlx-build-error.patch
new file mode 100644 (file)
index 0000000..dc5264c
--- /dev/null
@@ -0,0 +1,24 @@
+From b90b3802624e1f2a509f3e9f39775d94ec4762d7 Mon Sep 17 00:00:00 2001
+From: Ralf Baechle <ralf@linux-mips.org>
+Date: Fri, 21 Jun 2013 18:07:03 +0200
+Subject: [PATCH] MIPS: Fix rtlx build error.
+
+---
+ arch/mips/kernel/rtlx.c |    1 -
+ 1 files changed, 0 insertions(+), 1 deletions(-)
+
+diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c
+index 6fa198d..d763f11 100644
+--- a/arch/mips/kernel/rtlx.c
++++ b/arch/mips/kernel/rtlx.c
+@@ -437,7 +437,6 @@
+                         size_t count, loff_t * ppos)
+ {
+       int minor = iminor(file_inode(file));
+-      struct rtlx_channel *rt = &rtlx->channel[minor];
+       /* any space left... */
+       if (!rtlx_write_poll(minor)) {
+
+--
+Gitblit v1.3.1