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: 2866811 Return-Path: X-Original-To: patchwork-davinci@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 DBC30BF43F for ; Tue, 10 Sep 2013 14:58:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C08F202A7 for ; Tue, 10 Sep 2013 14:58:36 +0000 (UTC) Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DF85420342 for ; Tue, 10 Sep 2013 14:58:33 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id r8AEvNCL011639; Tue, 10 Sep 2013 09:57:24 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r8AEv3rd006955; Tue, 10 Sep 2013 09:57:20 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Tue, 10 Sep 2013 09:49:36 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id r8AEnanr029230; Tue, 10 Sep 2013 09:49:36 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 07C728062E; Tue, 10 Sep 2013 09:49:36 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id 37B0980626 for ; Wed, 4 Sep 2013 13:01:31 -0500 (CDT) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflp52.itg.ti.com (8.13.7/8.13.8) with ESMTP id r84I1UDj009322 for ; Wed, 4 Sep 2013 13:01:30 -0500 (CDT) Received: from mail6.bemta12.messagelabs.com (mail6.bemta12.messagelabs.com [216.82.250.247]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id r84I1TX3022628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 4 Sep 2013 13:01:29 -0500 Received: from [216.82.250.51:34657] by server-2.bemta-12.messagelabs.com id B3/57-24506-87577225; Wed, 04 Sep 2013 18:01:28 +0000 X-Env-Sender: computersforpeace@gmail.com X-Msg-Ref: server-5.tower-108.messagelabs.com!1378317687!11399623!1 X-Originating-IP: [209.85.220.43] X-SpamReason: No, hits=0.0 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, spamassassin: X-StarScan-Received: X-StarScan-Version: 6.9.11; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28698 invoked from network); 4 Sep 2013 18:01:28 -0000 Received: from mail-pa0-f43.google.com (HELO mail-pa0-f43.google.com) (209.85.220.43) by server-5.tower-108.messagelabs.com with RC4-SHA encrypted SMTP; 4 Sep 2013 18:01:28 -0000 Received: by mail-pa0-f43.google.com with SMTP id hz10so756050pad.30 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: 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-Mailman-Approved-At: Tue, 10 Sep 2013 09:48:51 -0500 CC: Kevin Hilman , Russell King , , Brian Norris X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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, };