From patchwork Wed Aug 8 21:27:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10601 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9C6D223F00 for ; Wed, 8 Aug 2012 21:28:14 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 6B0A2A1891B for ; Wed, 8 Aug 2012 21:28:14 +0000 (UTC) Received: by yhpp61 with SMTP id p61so1326862yhp.11 for ; Wed, 08 Aug 2012 14:28:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=UhPpzboA1tdJronfU9AsU24C/ECtjktbCOCZPt/9pwA=; b=Y/GZyzZj3BM50nYftH2Yo7gKGi11lcnqgvY0NLAC3cNK4H41d0YGo40vJgfXKb3I02 5o+s5n0mRCpREfmj5mnW+JupGCGoT/gZJfWWgOX5/cj1+OrsCgSY0uK9ojJ/2WQ13+3A d6RXWS3MZKfWLEV6+wAyHrijROThFCFvT7I0Fhly4i1AfckrobpIlB9n22hnmWoKrIBr ezSPeuy5vYfVXQGdttmbiPxmWCgufIEuzOIDEp/A/GLgAASP86LGP+djT26y/9r4RZ1I EQgxxDt6llEAVRT+UNkbyu/5kcYhY58lwjuN8GXja8jjSCOunbXVP6+4fBjvGBvo6MQM 8vNQ== Received: by 10.50.154.132 with SMTP id vo4mr331767igb.31.1344461293852; Wed, 08 Aug 2012 14:28:13 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp628832igc; Wed, 8 Aug 2012 14:28:12 -0700 (PDT) Received: by 10.180.96.3 with SMTP id do3mr978149wib.5.1344461291973; Wed, 08 Aug 2012 14:28:11 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.171]) by mx.google.com with ESMTP id dw10si9316469wib.8.2012.08.08.14.28.11; Wed, 08 Aug 2012 14:28:11 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LeyJH-1TWv7F1ySF-00qRzW; Wed, 08 Aug 2012 23:28:10 +0200 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== X-Gm-Message-State: ALoCoQm9Lavd80ISsmMIJEPvP57a1ESV8XXByxJd+wxE3BkV4xdhf1QYGX6v+aMHuTpGdjtsEYsr 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,