Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3420827pxj; Mon, 24 May 2021 06:27:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV1S+YfanHw9Z2A+bcdZtyjklHVa5nG45a+r2BQ2zijXi8ySykXZ/50u2U02hc8535pHN2 X-Received: by 2002:a17:907:c01:: with SMTP id ga1mr4108457ejc.80.1621862840937; Mon, 24 May 2021 06:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621862840; cv=none; d=google.com; s=arc-20160816; b=fF5n5o76LNx/WwRCRl8p2ep6qhaAHvGGEUaTI+FAv+Gcsy57FXb2becCLry1WUDwts +4/eQL9a1r5sbJPbxJ2a4N5JrLWsXNuKrQAkdX+APwGIjsWP+S7IPIv5dEeq0n0IFeCw fhmABDMJNP0TWn9pGdwkroRFb1NO4HLGyJR0ZMz0C8bRRrTiJ6rquWZ5TVi3ABFTRcRX qNYBsqrrg8t9UVwJxjn4WH0Vq7eoMAroJG+O4OYEBUcL4MRmAQa1852G4MLMyEO5mXOp enZZ5ErLTTvkjhhELZhncr4dXbmSpImoiXaGVTpm8hZ8SWp+vu0uUVMrEyvcaS8LewBt 0tFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QJc8Q/QF8lJbKoKIJKjBcCmuzv6R6hhqeub7YjzEkv0=; b=T5pfDABeX5q88kZVdlHOfUxWlQ79SoXCnNt3ITScg99nzIYi3VsvAO8tASxpIC4giq lT1SkHbI1raYgSA1/iQ2Deeli192tt2Ufsct7uU/6/TdSvdc7pd0j+lAQ6LXHhXT4F8/ xY9UipbD9hMwXALBRuiuPAIeEKhFaujKE1aruotkMegDgF4CDzxla2ke14ufCPzp+LCZ cdHbEDUH2yswVrwctXG1x0LuiWKgtlaICtK/J4DcmI2RoaxmBdvX4qLkZgbspJQ2Zzkd 25QWLfJ/yTxvcm1bmD4AqhXKioxXPaVnl5YPSNBi5iwJbTBjsmta4rp6U2Nje7qg6iOv E+NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a90si13029329edf.408.2021.05.24.06.26.57; Mon, 24 May 2021 06:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232916AbhEXN0d (ORCPT + 99 others); Mon, 24 May 2021 09:26:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5759 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232885AbhEXN0a (ORCPT ); Mon, 24 May 2021 09:26:30 -0400 Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FpdC91vxczml0H; Mon, 24 May 2021 21:21:25 +0800 (CST) Received: from dggeml759-chm.china.huawei.com (10.1.199.138) by dggems702-chm.china.huawei.com (10.3.19.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 24 May 2021 21:25:00 +0800 Received: from localhost.localdomain (10.175.102.38) by dggeml759-chm.china.huawei.com (10.1.199.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 24 May 2021 21:24:59 +0800 From: Wei Yongjun To: , Shengjiu Wang , "Timur Tabi" , Nicolin Chen , Xiubo Li , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer CC: , , , , , Hulk Robot Subject: [PATCH -next] ASoC: imx-card: Make some symbols static Date: Mon, 24 May 2021 13:35:53 +0000 Message-ID: <20210524133553.2366502-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.102.38] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggeml759-chm.china.huawei.com (10.1.199.138) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: sound/soc/fsl/imx-card.c:121:27: warning: symbol 'ak4458_fs_mul' was not declared. Should it be static? sound/soc/fsl/imx-card.c:138:31: warning: symbol 'ak4458_tdm_fs_mul' was not declared. Should it be static? sound/soc/fsl/imx-card.c:149:27: warning: symbol 'ak4497_fs_mul' was not declared. Should it be static? sound/soc/fsl/imx-card.c:166:27: warning: symbol 'ak5558_fs_mul' was not declared. Should it be static? sound/soc/fsl/imx-card.c:180:31: warning: symbol 'ak5558_tdm_fs_mul' was not declared. Should it be static? Those symbols are not used outside of imx-card.c, so marks them static. Fixes: aa736700f42f ("ASoC: imx-card: Add imx-card machine driver") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- sound/soc/fsl/imx-card.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c index ab424735bbfe..58fd0639a069 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -118,7 +118,7 @@ struct imx_card_data { u32 asrc_format; }; -struct imx_akcodec_fs_mul ak4458_fs_mul[] = { +static struct imx_akcodec_fs_mul ak4458_fs_mul[] = { /* Normal, < 32kHz */ { .rmin = 8000, .rmax = 24000, .wmin = 1024, .wmax = 1024, }, /* Normal, 32kHz */ @@ -135,7 +135,7 @@ struct imx_akcodec_fs_mul ak4458_fs_mul[] = { { .rmin = 705600, .rmax = 768000, .wmin = 16, .wmax = 64, }, }; -struct imx_akcodec_tdm_fs_mul ak4458_tdm_fs_mul[] = { +static struct imx_akcodec_tdm_fs_mul ak4458_tdm_fs_mul[] = { /* * Table 13 - Audio Interface Format * For TDM mode, MCLK should is set to @@ -146,7 +146,7 @@ struct imx_akcodec_tdm_fs_mul ak4458_tdm_fs_mul[] = { { .min = 512, .max = 512, .mul = 1024 }, /* TDM512 */ }; -struct imx_akcodec_fs_mul ak4497_fs_mul[] = { +static struct imx_akcodec_fs_mul ak4497_fs_mul[] = { /** * Table 7 - mapping multiplier and speed mode * Tables 8 & 9 - mapping speed mode and LRCK fs @@ -163,7 +163,7 @@ struct imx_akcodec_fs_mul ak4497_fs_mul[] = { * Auto MCLK selection based on LRCK for Normal Mode * (Table 4 from datasheet) */ -struct imx_akcodec_fs_mul ak5558_fs_mul[] = { +static struct imx_akcodec_fs_mul ak5558_fs_mul[] = { { .rmin = 8000, .rmax = 32000, .wmin = 1024, .wmax = 1024, }, { .rmin = 44100, .rmax = 48000, .wmin = 512, .wmax = 512, }, { .rmin = 88200, .rmax = 96000, .wmin = 256, .wmax = 256, }, @@ -177,7 +177,7 @@ struct imx_akcodec_fs_mul ak5558_fs_mul[] = { * because of SAI we also add the restriction: MCLK >= 2 * BCLK * (Table 9 from datasheet) */ -struct imx_akcodec_tdm_fs_mul ak5558_tdm_fs_mul[] = { +static struct imx_akcodec_tdm_fs_mul ak5558_tdm_fs_mul[] = { { .min = 128, .max = 128, .mul = 256 }, { .min = 256, .max = 256, .mul = 512 }, { .min = 512, .max = 512, .mul = 1024 },