From patchwork Wed Sep 4 18:00:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 2853813 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CB210C0AB5 for ; Wed, 4 Sep 2013 18:02:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D5FE204D6 for ; Wed, 4 Sep 2013 18:01:58 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED259204AE for ; Wed, 4 Sep 2013 18:01:56 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHHOs-0000fz-DM; Wed, 04 Sep 2013 18:01:54 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHHOq-00048e-5W; Wed, 04 Sep 2013 18:01:52 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHHOo-00048E-1p for linux-arm-kernel@lists.infradead.org; Wed, 04 Sep 2013 18:01:50 +0000 Received: by mail-pa0-f43.google.com with SMTP id hz10so764095pad.2 for ; Wed, 04 Sep 2013 11:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=aARPLMWIiRYoDKzZRVJcwBdugS7LC+vG1BXfbm+3MB0=; b=UnTHapi/qfmoPDj7gAIML5/rJCiAcSOJR8Thy54zuo41PRrVpE6DUX06t1/brQdBDT H+2M9Td0xaqBwFPe2Bj/9unDF/CP4k7ISimadKh5FxKFGYHvBhpgg48rKAYpXQC97HUj xaEXsOUn/fnlqOCFFovQCOeh/vxCgqpUB+EVSDtHMI9RZv5ePy7fgSQ5qGgeS40fQb+A tRqbTkt5O9G+94uUPmZl6GWkOC78VbpYaGXn1VBWK46o2x7gvkeyRtafOFxQvcyHHem2 kuftyk3BJQKWHU1kEGA1E5BLvUlD7dX3TvoR+T/I/GRd1+MUESTMkUi0drQu8LW5b1oK hYOw== X-Received: by 10.67.30.225 with SMTP id kh1mr4601998pad.148.1378317687134; Wed, 04 Sep 2013 11:01:27 -0700 (PDT) Received: from ld-irv-0074.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPSA id xe9sm30186568pbc.21.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Sep 2013 11:01:26 -0700 (PDT) From: Brian Norris To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm: mach-davinci: mark __maybe_unused struct Date: Wed, 4 Sep 2013 11:00:46 -0700 Message-Id: <1378317646-21262-1-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.8.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130904_140150_196167_962594BF X-CRM114-Status: GOOD ( 11.86 ) X-Spam-Score: -2.0 (--) Cc: Kevin Hilman , Russell King , davinci-linux-open-source@linux.davincidsp.com, Brian Norris , Sekhar Nori X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If neither CONFIG_SND_DM365_AIC3X_CODEC nor CONFIG_SND_DM365_VOICE_CODEC are defined, we may get warnings like: arch/arm/mach-davinci/board-dm365-evm.c:179:33: warning: 'dm365_evm_snd_data' defined but not used [-Wunused-variable] To fix this, just mark the struct as __maybe_unused. Signed-off-by: Brian Norris Cc: Sekhar Nori Cc: Kevin Hilman Cc: Russell King --- arch/arm/mach-davinci/board-dm365-evm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index 4cdb61c..9be953e 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -176,7 +176,7 @@ static struct at24_platform_data eeprom_info = { .context = (void *)0x7f00, }; -static struct snd_platform_data dm365_evm_snd_data = { +static struct snd_platform_data dm365_evm_snd_data __maybe_unused = { .asp_chan_q = EVENTQ_3, };