Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2444291ybz; Sun, 26 Apr 2020 19:38:35 -0700 (PDT) X-Google-Smtp-Source: APiQypK6Nl/u5nTpUyk0VP7P93TJYLdMAY+8/it6XyD7L6FiGUeIo++tVGM5EmWAdotTvnLv13UG X-Received: by 2002:a05:6402:1d88:: with SMTP id dk8mr17376018edb.52.1587955115516; Sun, 26 Apr 2020 19:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587955115; cv=none; d=google.com; s=arc-20160816; b=Q9GyZ9IDPiIqkQpJsRhLCzdk8OEIQLLZUzK9ucSe8XHsd6oPBbx8v5kQO046ZI8w9R waHXboHoubP3vf7IUc5I8GqvWa87LQJEzqVjYpnGDgiFqK4+K/PGP3kMCVUegEV1Ys/n PzvM3Y3zQ4eAQomBMju2Fa40GVJQKQ7oUQZaJk+buE5O4q9jJGbj17JpyqIJ8CUwXnxX /0xWJX0aNKP3tqF2xEcCiMFsETdvBupV1hIHGFxG5sM/iOx+YlNTH1lwIdamvheIpTc5 F1/IcaKf0aPtRvy9l174i2hYyycBXM+UaR/fWD7Y98YO2nFqJBE1CMpiFNpaLi9KLqvT eECQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KrrOPtWo0h7gTgI2kBRNLD6QEf91mDE16p043ZGTyvg=; b=qBfqzpuMoiwjwiUWasGvqm/neS3FNtGM46iWd4ftAutd+l3csILpywbv6u/QgvX2L0 QT53KCHlLrQDSCl3bDvGUIw89RYurMCG4QDQY3K3duf/lLiO06UH8SRL4c7cUWaQmUbA zBKHgkcJFyxCEu2odD2KYp0YB+tdiyiMTQGu/ElKGFJIJDvXllCGFL3A1y8iokCdNLyn RIYemDBr5nSpqNuKOToYQICM+U1uLGpa/iDLsw2+keFJys/zbVN80TQWfmcVP6wyd6/M DCom+xdeaLAidDpjYFmECHwtMs42+F0vnXK3e9faHxkp6CBQEjwAZiEPDYa2PQT7QlDa zRMQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si7283192ejc.416.2020.04.26.19.38.12; Sun, 26 Apr 2020 19:38:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726466AbgD0Cgl (ORCPT + 99 others); Sun, 26 Apr 2020 22:36:41 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2914 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726398AbgD0Cgl (ORCPT ); Sun, 26 Apr 2020 22:36:41 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6C9FFC015C3213800F8A; Mon, 27 Apr 2020 10:36:38 +0800 (CST) Received: from huawei.com (10.67.174.156) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Mon, 27 Apr 2020 10:36:32 +0800 From: ChenTao To: , , , , CC: , , Subject: [PATCH-next] soc: fsl: Make some functions static Date: Mon, 27 Apr 2020 10:35:55 +0800 Message-ID: <20200427023555.206622-1-chentao107@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.156] 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 warning: sound/soc/fsl/fsl_easrc.c:967:5: warning: 'fsl_easrc_config_context' was not declared. Should it be static? sound/soc/fsl/fsl_easrc.c:1128:5: warning: 'fsl_easrc_set_ctx_format' was not declared. Should it be static? sound/soc/fsl/fsl_easrc.c:1201:5: warning: 'fsl_easrc_set_ctx_organziation' was not declared. Should it be static? sound/soc/fsl/fsl_easrc.c:1245:5: warning: 'fsl_easrc_request_context' was not declared. Should it be static? sound/soc/fsl/fsl_easrc.c:1290:6: warning: 'fsl_easrc_release_context' was not declared. Should it be static? sound/soc/fsl/fsl_easrc.c:1317:5: warning: 'fsl_easrc_start_context' was not declared. Should it be static? sound/soc/fsl/fsl_easrc.c:1335:5: warning: 'fsl_easrc_stop_context' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: ChenTao --- sound/soc/fsl/fsl_easrc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index 97658e1f4989..f36928f93e97 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -964,7 +964,7 @@ static int fsl_easrc_release_slot(struct fsl_asrc *easrc, unsigned int ctx_id) * * Configure the register relate with context. */ -int fsl_easrc_config_context(struct fsl_asrc *easrc, unsigned int ctx_id) +static int fsl_easrc_config_context(struct fsl_asrc *easrc, unsigned int ctx_id) { struct fsl_easrc_ctx_priv *ctx_priv; struct fsl_asrc_pair *ctx; @@ -1125,7 +1125,7 @@ static int fsl_easrc_process_format(struct fsl_asrc_pair *ctx, return 0; } -int fsl_easrc_set_ctx_format(struct fsl_asrc_pair *ctx, +static int fsl_easrc_set_ctx_format(struct fsl_asrc_pair *ctx, snd_pcm_format_t *in_raw_format, snd_pcm_format_t *out_raw_format) { @@ -1198,7 +1198,7 @@ int fsl_easrc_set_ctx_format(struct fsl_asrc_pair *ctx, * to conform with this format. Interleaving parameters are accessed * through the ASRC_CTRL_IN_ACCESSa and ASRC_CTRL_OUT_ACCESSa registers */ -int fsl_easrc_set_ctx_organziation(struct fsl_asrc_pair *ctx) +static int fsl_easrc_set_ctx_organziation(struct fsl_asrc_pair *ctx) { struct fsl_easrc_ctx_priv *ctx_priv; struct device *dev; @@ -1242,7 +1242,7 @@ int fsl_easrc_set_ctx_organziation(struct fsl_asrc_pair *ctx) * Returns a negative number on error and >=0 as context id * on success */ -int fsl_easrc_request_context(int channels, struct fsl_asrc_pair *ctx) +static int fsl_easrc_request_context(int channels, struct fsl_asrc_pair *ctx) { enum asrc_pair_index index = ASRC_INVALID_PAIR; struct fsl_asrc *easrc = ctx->asrc; @@ -1287,7 +1287,7 @@ int fsl_easrc_request_context(int channels, struct fsl_asrc_pair *ctx) * * This funciton is mainly doing the revert thing in request context */ -void fsl_easrc_release_context(struct fsl_asrc_pair *ctx) +static void fsl_easrc_release_context(struct fsl_asrc_pair *ctx) { unsigned long lock_flags; struct fsl_asrc *easrc; @@ -1314,7 +1314,7 @@ void fsl_easrc_release_context(struct fsl_asrc_pair *ctx) * * Enable the DMA request and context */ -int fsl_easrc_start_context(struct fsl_asrc_pair *ctx) +static int fsl_easrc_start_context(struct fsl_asrc_pair *ctx) { struct fsl_asrc *easrc = ctx->asrc; @@ -1332,7 +1332,7 @@ int fsl_easrc_start_context(struct fsl_asrc_pair *ctx) * * Disable the DMA request and context */ -int fsl_easrc_stop_context(struct fsl_asrc_pair *ctx) +static int fsl_easrc_stop_context(struct fsl_asrc_pair *ctx) { struct fsl_asrc *easrc = ctx->asrc; int val, i; -- 2.22.0