From patchwork Tue Jul 29 19:10:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4642121 Return-Path: X-Original-To: patchwork-alsa-devel@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 61116C0338 for ; Tue, 29 Jul 2014 19:11:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2EF820145 for ; Tue, 29 Jul 2014 19:11:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 70B0A2011E for ; Tue, 29 Jul 2014 19:11:06 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8338026533B; Tue, 29 Jul 2014 21:11:04 +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 08E212652AC; Tue, 29 Jul 2014 21:10:53 +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 C0F3A2652F1; Tue, 29 Jul 2014 21:10:51 +0200 (CEST) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by alsa0.perex.cz (Postfix) with ESMTP id 9D7E82651F2 for ; Tue, 29 Jul 2014 21:10:43 +0200 (CEST) Received: by mail-vc0-f179.google.com with SMTP id hq11so205867vcb.10 for ; Tue, 29 Jul 2014 12:10:41 -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=soOOwokTcuHn9nDt9H7TRnuqFSwQWN4gmc2059/18QM=; b=oYNs+iUkslA1B33BPnGDmsGerVhQ9jM9n+yMxS9osX430LMn7Dktztqv+oMLKTOFxs T6KCiyV4mbDIa/I/0yegA/xp+SThlTKblWS3y5zExdQ/7cuXHflkq7Kjyb2MW3NgyD7C KA64rss8WFC7pJKqoWyb/UpjWk0dZJ7eZesdabPba9L7W7rMZdhxRXyapi1ICtoB/hit m+pUZr0NQ5V7AmMPJvL10RxNCq5v7sdW+53t/zJ+GEywTTIsU5dTH3BcHeaz1kVPzqq2 FRs4d12Izs+MAiQ1KrcWG2fsa7/Xi7Ts+sbMGkmIVLfc55D8guArJqjCzdaceJChm2L6 DBYw== X-Received: by 10.220.95.132 with SMTP id d4mr3971195vcn.33.1406661038310; Tue, 29 Jul 2014 12:10:38 -0700 (PDT) Received: from localhost.localdomain ([186.207.90.28]) by mx.google.com with ESMTPSA id tx6sm40204686vdb.28.2014.07.29.12.10.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jul 2014 12:10:37 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Tue, 29 Jul 2014 16:10:16 -0300 Message-Id: <1406661016-1478-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.3.2 Cc: Fabio Estevam , alsa-devel@alsa-project.org, Guangyu.Chen@freescale.com Subject: [alsa-devel] [PATCH] ASoC: fsl_asrc: Use 'ifdef' for config options 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 From: Fabio Estevam Fix the following build errors that were observed by building with make ARCH=microblaze allyesconfig: >> sound/soc/fsl/fsl_asrc.c:906:5: warning: "CONFIG_PM_RUNTIME" is not defined [-Wundef] #if CONFIG_PM_RUNTIME ^ >> sound/soc/fsl/fsl_asrc.c:934:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef] #if CONFIG_PM_SLEEP ^ >> sound/soc/fsl/fsl_asrc.c:906:5: warning: "CONFIG_PM_RUNTIME" is not defined [-Wundef] #if CONFIG_PM_RUNTIME ^ >> sound/soc/fsl/fsl_asrc.c:934:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef] #if CONFIG_PM_SLEEP Reported-by: kbuild test robot Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_asrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 27a4a70..b9a2888 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -903,7 +903,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) return 0; } -#if CONFIG_PM_RUNTIME +#ifdef CONFIG_PM_RUNTIME static int fsl_asrc_runtime_resume(struct device *dev) { struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); @@ -931,7 +931,7 @@ static int fsl_asrc_runtime_suspend(struct device *dev) } #endif /* CONFIG_PM_RUNTIME */ -#if CONFIG_PM_SLEEP +#ifdef CONFIG_PM_SLEEP static int fsl_asrc_suspend(struct device *dev) { struct fsl_asrc *asrc_priv = dev_get_drvdata(dev);