From: David Daney Date: Tue, 22 Mar 2011 23:34:48 +0000 (-0700) Subject: binfmt_elf: quiet GCC-4.6 'set but not used' warning in load_elf_binary() X-Git-Tag: v2.6.39-rc1~225 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a530a6f23f7dca336311ef60c9ca26f3dc63688;p=pandora-kernel.git binfmt_elf: quiet GCC-4.6 'set but not used' warning in load_elf_binary() With GCC-4.6 we get warnings about things being 'set but not used'. In load_elf_binary() this can happen with reloc_func_desc if ELF_PLAT_INIT is defined, but doesn't use the reloc_func_desc argument. Quiet the warning/error by marking reloc_func_desc as __maybe_unused. Signed-off-by: David Daney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed