Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2417063imm; Sat, 29 Sep 2018 18:59:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV60YMVp7CceyFJFfniwfANUNGiq1qECqrVakll7FeJHZElGYWLiJWS4+wjZcJdRNd4+ycCId X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr5344075plh.135.1538272784851; Sat, 29 Sep 2018 18:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538272784; cv=none; d=google.com; s=arc-20160816; b=dzI1GwcX8fBQ4gZrCxnTNY20yhlBeR6jAM8cVv8GfNSQzwrvQvhXH8eKxrbK1ACqBo oY4TC/IfsPF5Szb5JMlTLeeB8P4jp3AECZvmver4C0IGIWjeA/vamnjLHRONWQ/xZlpy UrX2jwJyfmWN+MLIgNKBMmPqaqeDaNAxlezhDLuNGTEqA9gHFMyQwVyY+5D+TQ2IDO2/ PmmEY3OSwGE70t8ZpEqfIJyXAJfbp1ka+a8UE4uXWzE0MzgHq4k8ceBDscspGq1aBX0U 1ha3lAW03necxzU2qAh8euEG+iwmnPrycZwxg7Ap11lUj6DPYayOEhkMtjtveAl3c8NA z6pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=sX75t1efSIarFy7pHz9DiNzU3U029w/JcJb4wNYJlhA=; b=gihwFyISawiDeTqVUkRxJ+WmbXLGgQzp7HDu6i/ESnDR5lwoMNKm79VzuUjSrwcB1l N9vrwKa6qC36KoJaO8MvUtF7jP0KFLgEnbLTmnf4N4XDrEiAd+pcoYOwJqJyszAdGsoN EHTtrEHka8ehevJ0GT1SfW/bsmWckLcM43wrImPrifCSIvDyViKh6QBYpF06fcG7FrPM IHnaXMHpOeq4Rq1Q7vg8d1rGP7oFr5A30eyrf2LalGmG5PVsGZeNZPKy2a0kDesfe5T2 mSBHRW+4TKkzvjLrloOZ/iOCeNbi5LbbFFonS/+vICxo8l0yxqzBokxDqtkQc1s6IvWb tn9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2-v6si4799908pgj.111.2018.09.29.18.59.29; Sat, 29 Sep 2018 18:59:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727580AbeI3I2r (ORCPT + 99 others); Sun, 30 Sep 2018 04:28:47 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13178 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbeI3I2r (ORCPT ); Sun, 30 Sep 2018 04:28:47 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1CED6EA77205B; Sun, 30 Sep 2018 09:57:53 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.399.0; Sun, 30 Sep 2018 09:57:49 +0800 From: zhong jiang To: CC: , , , Subject: [PATCH] ASoC: wm8731: Fix a unused function gcc warning Date: Sun, 30 Sep 2018 09:45:18 +0800 Message-ID: <1538271918-24033-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following compile warning: sound/soc/codecs/wm8731.c:575:12: warning: 'wm8731_request_supplies' defined but not used [-Wunused-function] sound/soc/codecs/wm8731.c:600:12: warning: 'wm8731_hw_init' defined but not used [-Wunused-function] Signed-off-by: zhong jiang --- sound/soc/codecs/wm8731.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 7c8fad8..b5dc6ba2 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -36,12 +36,15 @@ #include "wm8731.h" #define WM8731_NUM_SUPPLIES 4 + +#if defined(CONFIG_I2C) || defined(CONFIG_SPI_MASTER) static const char *wm8731_supply_names[WM8731_NUM_SUPPLIES] = { "AVDD", "HPVDD", "DCVDD", "DBVDD", }; +#endif /* codec private data */ struct wm8731_priv { @@ -572,6 +575,7 @@ static int wm8731_startup(struct snd_pcm_substream *substream, .symmetric_rates = 1, }; +#if defined(CONFIG_I2C) || defined(CONFIG_SPI_MASTER) static int wm8731_request_supplies(struct device *dev, struct wm8731_priv *wm8731) { @@ -627,6 +631,7 @@ static int wm8731_hw_init(struct device *dev, struct wm8731_priv *wm8731) return ret; } +#endif static const struct snd_soc_component_driver soc_component_dev_wm8731 = { .set_bias_level = wm8731_set_bias_level, -- 1.7.12.4