Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp238722img; Wed, 20 Mar 2019 19:02:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqw276Fbqwk8uxd+JY6tq3JD/P6UtVFKOr+JBhTc+TmeTTgg3xsvShv5mh20fbHAUTbI0HbY X-Received: by 2002:a63:fd10:: with SMTP id d16mr1069187pgh.306.1553133739746; Wed, 20 Mar 2019 19:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553133739; cv=none; d=google.com; s=arc-20160816; b=IYPWaa47XaUaSv+W3vB0br3XaJck/XNT6xvPW08ztzYSeOyelnqQ3EM+auUAjcE2B3 AQCF3MqFbM4UOCKtrO+VkFrrZjSaUTCd8ZQ+tzuRXqFK5TfLx/odus1AWcsldd3zWp2R Tc80UfjjjQgZSa8c5v7/u3AFNLOr4QYD6Rm87A2vd5TqdPqqnbMw9uKabsLiOd8U72Pu QF34k8vVv2/Z6Dj+D5Q8f2w4WbTfevfxj2V3kMXVxQ5Zdh7ggIEPBzm+wEOA9dMYBNMu mcW2+aICWCen8EmuZdiKIFb6VyExiEyyeHY5MC4hcxqO2Ja6AYAFaJvhK1pXAODDUrMF 2SRw== 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=22ET/S+kVAYsdb4hl0cjZTBwmanF6bNO1IbpEfzqPVI=; b=qoPhEoxeerNk4hMf0fbUZM8SM0qF3BAwaKDbiM0jdO/1GlSFA/wZkVorZh4c4Pk/3U 5G87X1eD4HzZ10EN1Oyj/F+y6qkZv44RaVEMXUmbiqxBqj1bUuIL+aRG0+XLEnWctH/Y UfbVSyR4EdtQldLuPlWMQcGYiwvoZHghH81rC7wQSDPd3E8lD+cEXSCL4urPgMH3ix/F tIZ/GFBq/mW5SDP/vz5wlDnPI/igYq/LbaaPhUs0sVBkWX/B3lffRSZr0gIwhWMudzjl 3YeTSb+HH7y6+7g34G8REklKXUq0UNENAL8HK54Acx+wUNudG0jweMliKM4Vzsn9MR+a G5cA== 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 t9si3191355pgc.164.2019.03.20.19.02.03; Wed, 20 Mar 2019 19:02:19 -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 S1727687AbfCUCBV (ORCPT + 99 others); Wed, 20 Mar 2019 22:01:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5161 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727081AbfCUCBV (ORCPT ); Wed, 20 Mar 2019 22:01:21 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CE1BE748927B4875688A; Thu, 21 Mar 2019 10:01:19 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Thu, 21 Mar 2019 10:01:10 +0800 From: Yue Haibing To: , , , , CC: , , , YueHaibing Subject: [PATCH v2 -next] ASoC: wm_adsp: Make some variables static Date: Thu, 21 Mar 2019 10:01:06 +0800 Message-ID: <20190321020106.11096-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fix sparse warnings: sound/soc/codecs/wm_adsp.c:309:20: warning: symbol 'wm_adsp1_ops' was not declared. Should it be static? sound/soc/codecs/wm_adsp.c:310:20: warning: symbol 'wm_adsp2_ops' was not declared. Should it be static? sound/soc/codecs/wm_adsp.c:311:20: warning: symbol 'wm_halo_ops' was not declared. Should it be static? Signed-off-by: YueHaibing --- v2: make variables static --- sound/soc/codecs/wm_adsp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index 644aaf1..c41bffc 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -306,9 +306,9 @@ #define HALO_MPU_VIO_ERR_SRC_MASK 0x00007fff #define HALO_MPU_VIO_ERR_SRC_SHIFT 0 -struct wm_adsp_ops wm_adsp1_ops; -struct wm_adsp_ops wm_adsp2_ops[]; -struct wm_adsp_ops wm_halo_ops; +static struct wm_adsp_ops wm_adsp1_ops; +static struct wm_adsp_ops wm_adsp2_ops[]; +static struct wm_adsp_ops wm_halo_ops; struct wm_adsp_buf { struct list_head list; @@ -4407,13 +4407,13 @@ irqreturn_t wm_halo_wdt_expire(int irq, void *data) } EXPORT_SYMBOL_GPL(wm_halo_wdt_expire); -struct wm_adsp_ops wm_adsp1_ops = { +static struct wm_adsp_ops wm_adsp1_ops = { .validate_version = wm_adsp_validate_version, .parse_sizes = wm_adsp1_parse_sizes, .region_to_reg = wm_adsp_region_to_reg, }; -struct wm_adsp_ops wm_adsp2_ops[] = { +static struct wm_adsp_ops wm_adsp2_ops[] = { { .sys_config_size = sizeof(struct wm_adsp_system_config_xm_hdr), .parse_sizes = wm_adsp2_parse_sizes, @@ -4474,7 +4474,7 @@ struct wm_adsp_ops wm_adsp2_ops[] = { }, }; -struct wm_adsp_ops wm_halo_ops = { +static struct wm_adsp_ops wm_halo_ops = { .sys_config_size = sizeof(struct wm_halo_system_config_xm_hdr), .parse_sizes = wm_adsp2_parse_sizes, .validate_version = wm_halo_validate_version, -- 2.7.0