Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756724Ab2HHV2O (ORCPT ); Wed, 8 Aug 2012 17:28:14 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:57825 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864Ab2HHV2N (ORCPT ); Wed, 8 Aug 2012 17:28:13 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Herbert Xu , Dan Williams , Neil Brown Subject: [PATCH 05/10] asm-generic: xor: mark static functions as __maybe_unused Date: Wed, 8 Aug 2012 23:27:53 +0200 Message-Id: <1344461278-28245-6-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1344461278-28245-1-git-send-email-arnd@arndb.de> References: <1344461278-28245-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:+mOyi6ak9WkVzVPbQGP1SGkhzHc3yXt2NssSRkTjnD/ /BdVT+Ej2w4zYS3N86rYV4xMPt/doyc3Dek+z2hGkLsN+h/vnH fLyCwIx+o8Eyj6D0+y1uvbgKdUm6B3pGFs10Kq+NHmj1MQZglP FyUbhaClLmpCzeWW4SvKWvsYaLSznhtl5GoqMuuFTc+WvQyXYV 6MOO7q1N80JITYKtbtv1igGtTJn9dMO9B+HN7hDamSUwEKszBZ iHTdccAQe2QSoo9zSCnDXPzgyP+yanPCPW7JXqb+hfPYEF+9ce 0Q1W+UdiEdGEV32qn/tBRFRTBVIoT23DcJEKjg+/TSNTTm747n g2P1XXB+tU/cVbZ22A90nRD77RHC65EONsuFYtjZngtOjqWMOf DSTAaI1oNZRSA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1875 Lines: 50 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 Cc: Herbert Xu Cc: Dan Williams Cc: Neil Brown --- include/asm-generic/xor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/xor.h b/include/asm-generic/xor.h index 6028fb8..b4d8432 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 = { .do_5 = xor_32regs_5, }; -static struct xor_block_template xor_block_8regs_p = { +static struct xor_block_template xor_block_8regs_p __maybe_unused = { .name = "8regs_prefetch", .do_2 = xor_8regs_p_2, .do_3 = xor_8regs_p_3, @@ -701,7 +701,7 @@ static struct xor_block_template xor_block_8regs_p = { .do_5 = xor_8regs_p_5, }; -static struct xor_block_template xor_block_32regs_p = { +static struct xor_block_template xor_block_32regs_p __maybe_unused = { .name = "32regs_prefetch", .do_2 = xor_32regs_p_2, .do_3 = xor_32regs_p_3, -- 1.7.10 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/