diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-03-02 13:19:05 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-03-02 13:19:05 +0000 |
commit | 112d6c7b74f2b22dd0fd1f4c4367019e2bed31f4 (patch) | |
tree | 65082b8cad739d92bd836cbff4f2f761c2cd2ffe /target/linux/generic | |
parent | c2038600169bfbc9f43ac90d94ff80f972c3dbb2 (diff) | |
download | mtk-20170518-112d6c7b74f2b22dd0fd1f4c4367019e2bed31f4.zip mtk-20170518-112d6c7b74f2b22dd0fd1f4c4367019e2bed31f4.tar.gz mtk-20170518-112d6c7b74f2b22dd0fd1f4c4367019e2bed31f4.tar.bz2 |
MIPS: mark unused variables
SVN-Revision: 30782
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-2.6.37/031-mips_mark_unused.patch | 11 | ||||
-rw-r--r-- | target/linux/generic/patches-2.6.37/032-fs_binfmt_elft_mark_unused.patch | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.37/031-mips_mark_unused.patch b/target/linux/generic/patches-2.6.37/031-mips_mark_unused.patch new file mode 100644 index 0000000..9f5a0a1 --- /dev/null +++ b/target/linux/generic/patches-2.6.37/031-mips_mark_unused.patch @@ -0,0 +1,11 @@ +--- a/arch/mips/kernel/signal32.c ++++ b/arch/mips/kernel/signal32.c +@@ -115,7 +115,7 @@ static int protected_save_fp_context32(s + + static int protected_restore_fp_context32(struct sigcontext32 __user *sc) + { +- int err, tmp; ++ int err, tmp __maybe_unused; + while (1) { + lock_fpu_owner(); + own_fpu_inatomic(0); diff --git a/target/linux/generic/patches-2.6.37/032-fs_binfmt_elft_mark_unused.patch b/target/linux/generic/patches-2.6.37/032-fs_binfmt_elft_mark_unused.patch new file mode 100644 index 0000000..7c9f377 --- /dev/null +++ b/target/linux/generic/patches-2.6.37/032-fs_binfmt_elft_mark_unused.patch @@ -0,0 +1,11 @@ +--- a/fs/binfmt_elf.c ++++ b/fs/binfmt_elf.c +@@ -575,7 +575,7 @@ static int load_elf_binary(struct linux_ + unsigned long elf_entry; + unsigned long interp_load_addr = 0; + unsigned long start_code, end_code, start_data, end_data; +- unsigned long reloc_func_desc = 0; ++ unsigned long reloc_func_desc __maybe_unused = 0; + int executable_stack = EXSTACK_DEFAULT; + unsigned long def_flags = 0; + struct { |