Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp910290ybs; Mon, 25 May 2020 02:16:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+SF7RuWVMwlGGBs/vdIInLNf1/CW9f+7lBELNam+kh/JsHY/4L7HvaTXLiwCQEz3kS6oU X-Received: by 2002:a17:906:c943:: with SMTP id fw3mr17621113ejb.288.1590398193935; Mon, 25 May 2020 02:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590398193; cv=none; d=google.com; s=arc-20160816; b=AHmiWSVxkt3RJPD/3PT4ZXoTkv6mwwNyy1aL5GWJOYnWk1zUVebxk4pxygn+tL0kcT OJ9Oq6NzfUzZYcI9VnJ5k1paM6GxB2jALmEBW0MOnR/613U1tfHcuL25SLj5Evdz7sRB CBFMUJCfwAgSEngKkuYsyJehOzAjXfJCE9+BBEDyD9tOFVzS9aT5BqNngNpZosQw4goO rXLhMGUU4SPQYL1xDrulVr4G3Uy0maFCR0N/Ts5SvsWFJH90vo6olTLV20TeMw9/0rp7 oYKxCvXpqsvbKhyQWxLgW2mJd39Ga4r6eIXNe9FSLxxL+jROI1BzC+yPxfYFhsrUbRvW bALA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ZxpV8iIkqHa+SzOQj4s4hk1uOTRBYokJbHDz3goelGc=; b=zxfFhbiO+0HzTXxgxcYwNv0qw94QwGCS6a/BLg7T7+Fh/VhndZ/M3jkIooc3SHVgvH nX3UVPOlbkOgW58SGnRJRRVvRQVeMDEmOQUw8uAnaycjnw6FT0lvV4ldsV8fwp+9yejb bcRmm0fUCmdRWMx/QJCvbZzqGDxn5kNEOBlaSxSEIOfbbq01NCpNBj58nizYcBREuPGc 9iqCFMGXvbsD7yfMPjk4ydkY+poHh70u6vRkIpnREWacmX5JvFwVy/5yHEqNZZ25SHNC lr9YoU61HZcfxLzr+MDu62U2LUyn1Ocr5MCjRp1lTAz2bGRm+7lIoJ/D8/SoKP34mVJI N0gA== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si8996051edl.178.2020.05.25.02.16.10; Mon, 25 May 2020 02:16:33 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388920AbgEYJNk (ORCPT + 99 others); Mon, 25 May 2020 05:13:40 -0400 Received: from inva020.nxp.com ([92.121.34.13]:33570 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbgEYJNj (ORCPT ); Mon, 25 May 2020 05:13:39 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0527B1A0222; Mon, 25 May 2020 11:13:38 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7655A1A0214; Mon, 25 May 2020 11:13:33 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 3768F402BB; Mon, 25 May 2020 17:13:27 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: fsl_asrc: Fix -Wmissing-prototypes warning Date: Mon, 25 May 2020 17:03:32 +0800 Message-Id: <1590397412-12966-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: shengjiu wang COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 sound/soc/fsl/fsl_asrc.c:557:18: warning: no previous prototype for function 'fsl_asrc_get_dma_channel' [-Wmissing-prototypes] struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, bool dir) ^ sound/soc/fsl/fsl_asrc.c:557:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, bool dir) ^ static Fixes: be7bd03f0201 ("ASoC: fsl_asrc: Move common definition to fsl_asrc_common") Reported-by: kbuild test robot Signed-off-by: shengjiu wang --- 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 7e2d598ffb81..d79d2c7f8d36 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -554,7 +554,8 @@ static void fsl_asrc_stop_pair(struct fsl_asrc_pair *pair) /** * Get DMA channel according to the pair and direction. */ -struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, bool dir) +static struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, + bool dir) { struct fsl_asrc *asrc = pair->asrc; enum asrc_pair_index index = pair->index; @@ -564,7 +565,6 @@ struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, bool dir) return dma_request_slave_channel(&asrc->pdev->dev, name); } -EXPORT_SYMBOL_GPL(fsl_asrc_get_dma_channel); static int fsl_asrc_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) -- 2.21.0