From patchwork Thu May 14 11:12:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6404761 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 33B149F32B for ; Thu, 14 May 2015 11:13:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C0382044C for ; Thu, 14 May 2015 11:13:36 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 33C47203DA for ; Thu, 14 May 2015 11:13:35 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 55D0026063D; Thu, 14 May 2015 13:13:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id A53B02604A9; Thu, 14 May 2015 13:13:25 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 353432604AF; Thu, 14 May 2015 13:13:24 +0200 (CEST) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by alsa0.perex.cz (Postfix) with ESMTP id 058802604A9 for ; Thu, 14 May 2015 13:13:17 +0200 (CEST) Received: by pacyx8 with SMTP id yx8so82201812pac.1 for ; Thu, 14 May 2015 04:13:15 -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=/uUFrhYvJqOhNnDlvv6WuMSnYPzv9NRy3HroMoACqxE=; b=cVW0kmKvdHIlX58JxrR8kTvIpcSs2WGDc1ltzcHcQF709jhTk5H0DxYlIO57YyPN7Y JcJ49MtZPZtI13Wg1F8vHtt+aSkJ7nExpHUSPWG50201Wk1T5ItoH9tILRS33iRIxRnb hsQ0o0QqbKZv0+Rwel6hQZxNtN9sFgNrnbwaNXOywYD0Z8cWluph1QuxKy7DFVLIjeLi 61wWBIHFljHq7udBEiaVIXCS+B28nU3uuJv7ragvIcYmPJ3CkszFywe3YkAGQK4edPaO LPOxbSKtamQZ5cWfcYnte5MWC8qZQyamO1XJXlbTo+mNXQI+3Y1GrGjlkZ8qlVA986Pl g44w== X-Received: by 10.68.57.143 with SMTP id i15mr7189029pbq.9.1431601995741; Thu, 14 May 2015 04:13:15 -0700 (PDT) Received: from localhost.localdomain ([122.169.175.111]) by mx.google.com with ESMTPSA id f4sm22086171pdc.95.2015.05.14.04.13.13 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 May 2015 04:13:15 -0700 (PDT) From: Sudip Mukherjee To: Jaroslav Kysela , Takashi Iwai Date: Thu, 14 May 2015 16:42:59 +0530 Message-Id: <1431601979-24852-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [alsa-devel] [PATCH] sound: oss: fix build warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP while building with allyesconfig it was giving a build warning about unused variable. declare the variable only if the driver is built as a module. Signed-off-by: Sudip Mukherjee --- build tested with allyesconfig and allmodconfig sound/oss/ad1848.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c index ec1ee07..10c8de1 100644 --- a/sound/oss/ad1848.c +++ b/sound/oss/ad1848.c @@ -2860,6 +2860,7 @@ static struct { {NULL} }; +#ifdef MODULE static struct isapnp_device_id id_table[] = { { ISAPNP_VENDOR('C','M','I'), ISAPNP_DEVICE(0x0001), ISAPNP_VENDOR('@','@','@'), ISAPNP_FUNCTION(0x0001), 0 }, @@ -2877,6 +2878,7 @@ static struct isapnp_device_id id_table[] = { }; MODULE_DEVICE_TABLE(isapnp, id_table); +#endif static struct pnp_dev *activate_dev(char *devname, char *resname, struct pnp_dev *dev) {