diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-04 17:53:26 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-10-03 15:21:06 -0400 |
commit | 720fb1976d38bccf910d477c2df364948abdb359 (patch) | |
tree | d47e7fba85d80961a80ce4f01ae4427baac30bde /include/asm-generic/xor.h | |
parent | a0d271cbfed1dd50278c6b06bead3d00ba0a88f9 (diff) |
asm-generic: xor: mark static functions as __maybe_unused
The asm-generic/xor.h header file is nasty and defines static functions
that are not inline. The header file is include by the ARM version of
asm/xor.h, which uses some but not all of the symbols defined there.
Marking the extraneous functions as __maybe_unused lets gcc drop them
without complaining.
Without this patch, building iop13xx_defconfig results in:
include/asm-generic/xor.h:696:34: warning: 'xor_block_8regs_p' defined but not used [-Wunused-variable]
include/asm-generic/xor.h:704:34: warning: 'xor_block_32regs_p' defined but not used [-Wunused-variable]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Dan Williams <dan.j.williams@gmail.com>
Cc: Neil Brown <neilb@suse.de>
Diffstat (limited to 'include/asm-generic/xor.h')
-rw-r--r-- | include/asm-generic/xor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/xor.h b/include/asm-generic/xor.h index 6028fb862254..b4d843225afd 100644 --- a/include/asm-generic/xor.h +++ b/include/asm-generic/xor.h | |||
@@ -693,7 +693,7 @@ static struct xor_block_template xor_block_32regs = { | |||
693 | .do_5 = xor_32regs_5, | 693 | .do_5 = xor_32regs_5, |
694 | }; | 694 | }; |
695 | 695 | ||
696 | static struct xor_block_template xor_block_8regs_p = { | 696 | static struct xor_block_template xor_block_8regs_p __maybe_unused = { |
697 | .name = "8regs_prefetch", | 697 | .name = "8regs_prefetch", |
698 | .do_2 = xor_8regs_p_2, | 698 | .do_2 = xor_8regs_p_2, |
699 | .do_3 = xor_8regs_p_3, | 699 | .do_3 = xor_8regs_p_3, |
@@ -701,7 +701,7 @@ static struct xor_block_template xor_block_8regs_p = { | |||
701 | .do_5 = xor_8regs_p_5, | 701 | .do_5 = xor_8regs_p_5, |
702 | }; | 702 | }; |
703 | 703 | ||
704 | static struct xor_block_template xor_block_32regs_p = { | 704 | static struct xor_block_template xor_block_32regs_p __maybe_unused = { |
705 | .name = "32regs_prefetch", | 705 | .name = "32regs_prefetch", |
706 | .do_2 = xor_32regs_p_2, | 706 | .do_2 = xor_32regs_p_2, |
707 | .do_3 = xor_32regs_p_3, | 707 | .do_3 = xor_32regs_p_3, |