Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp907225ybg; Wed, 3 Jun 2020 17:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRLerb79nsAnfsxeCoEFLsGGP1zay1Q/ctgguC10gEWeiMR4GtLyeuvvnwjZ7aNPhBf6VX X-Received: by 2002:a17:906:468e:: with SMTP id a14mr1702172ejr.124.1591230724473; Wed, 03 Jun 2020 17:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591230724; cv=none; d=google.com; s=arc-20160816; b=zwpijfRa0lGghZvYZvDXj0sVTZB2cf996XcyD1MDYTm7dWw9tbH8MLjfGq0PUhCVGN VxP2dWyDBYsegTJV5rw061VsrOM/PzX3/mfhObsxaxK0d2fQf40Dc5sYkPBWca3CDd37 KmWHShF0Tx7Q28RWZzasgd5rrq4To1JpkRsbU87W8bBb90MocWOmPK0sfdVm9QeJMVye +ybZWphZEoWmW0liHTpilPVUxjj4fphJpD75THd3dp4BMxWDq+F2JZisBH0NpsL8jvcC jFjRTknf0JkJE1N0k/5OwMStB/USPiTh090SPFP0tHBhPzPx9JaVeV0OXIVumDjC8ONy DAaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uF2n/gB3gDDP2hMwoQuaaueDJkaKtOoysRJtoTkMSDw=; b=MCmyh0ftXiv34wfz5jLuY2sRFd6/g1oohaw5wNHhLmIczhTd+KNIJWB+2+Uo9U1Wf2 G94OtdOjzHV4wUCJwTxWptToRS1Nq9oIgf8JYb9xal5/1lrFY0bp9/D9Qo8JYXFeHaB+ sp9ERVZE36/hL3KVCL96NqJBJEcULvHthY7hv/gP3bSrR8j7OI47zfJoRg2duevoJihm NtdAm7UikvyT9x9rzmvLpwNNOHDJw/SAkZdTT8pic+TRZuObCnHt9P3536Nip9VdFWDD 8ChBskr5JGD7N2ajieZHOQUJHbRb4WkkbMiAmR3Ou1qLkVP3YqqBU+kUHJ3wYOceU/R7 nkaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NASVovjh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp11si758926ejc.463.2020.06.03.17.31.41; Wed, 03 Jun 2020 17:32:04 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NASVovjh; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725983AbgFDAF6 (ORCPT + 99 others); Wed, 3 Jun 2020 20:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbgFDAF6 (ORCPT ); Wed, 3 Jun 2020 20:05:58 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD99DC08C5C0 for ; Wed, 3 Jun 2020 17:05:57 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id f3so2506370pfd.11 for ; Wed, 03 Jun 2020 17:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uF2n/gB3gDDP2hMwoQuaaueDJkaKtOoysRJtoTkMSDw=; b=NASVovjhwK7+HIO80yPXssp+od2Hj2d9eiKlapTw++P1bMpxgSBWmZWUJ0Js8p1fiB COH3UNC0JBHTjqVioC60wuQYj1RX8kglcJJOKWvyGdoUdYxhDo7lgrJJsnWmmwEOOnls GcWCSPxRy9zAbMJ7nMRszUCbpYU4qAb/KhOH8/Np8lUaDK8+qUddDyBu0T7i9cK2Q/z0 IDedlFEsLhmXp3TpSpDuCorOYb8vG5doQsgNwk0P5CfjW5HuC7i51dX2b/EN0xJTER0u zGGYodiltvH/TmC9ebxBfVpybt4NFF6aebkphUU9nfM6Eqs+npjtS7j88HNdrymau7A8 fObA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uF2n/gB3gDDP2hMwoQuaaueDJkaKtOoysRJtoTkMSDw=; b=lSPSeTK1NC1VLPGJ6zPhMDh3XBueWapmak8bbuOqJj4bUCv1MJIDd/xRnFr+PXJUCT dAIELZdVmbxEhq98N9sC2lzdGMISlBw0rmtXcACkHqVjltSlqopueNALKr0uuQNHv+hp LXOMWTMrDrh8Mdn7yTNe+hqvRqfY+ZrnJ7jZLFhgtIZoqwrVgf7fN3+N+xut22LYFZA+ 1neTygB8K8Hn7bY1O1Ywgqs83hFUMsieNZSnj0Hs4OiURNZQ2O+qujWr9EykGzhagE2+ k5pOv9qwS6oJGknkr73NS+NqyykXTvjkdF5C3b2S2eHe9KujmmeGEzyOwuFiaVm6zcYq oPyw== X-Gm-Message-State: AOAM533tWWRlaHoPtck2Ni7jP3oEAGall/AJICZb57+4hYffPMiRPxEI XG9/fjhCT1Zsv9eLRaq7V0Y= X-Received: by 2002:a05:6a00:ce:: with SMTP id e14mr1523090pfj.44.1591229157170; Wed, 03 Jun 2020 17:05:57 -0700 (PDT) Received: from Asurada-Nvidia (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id f11sm2767786pfa.32.2020.06.03.17.05.56 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jun 2020 17:05:56 -0700 (PDT) Date: Wed, 3 Jun 2020 17:05:52 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: timur@kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] ASoC: fsl_easrc: Fix -Wmissing-prototypes warning Message-ID: <20200604000551.GA17364@Asurada-Nvidia> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 03, 2020 at 11:39:39AM +0800, Shengjiu Wang wrote: > Obtained with: > $ make W=1 > > sound/soc/fsl/fsl_easrc.c:967:5: warning: no previous prototype for function 'fsl_easrc_config_context' [-Wmissing-prototypes] > int fsl_easrc_config_context(struct fsl_asrc *easrc, unsigned int ctx_id) > ^ > sound/soc/fsl/fsl_easrc.c:967:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int fsl_easrc_config_context(struct fsl_asrc *easrc, unsigned int ctx_id) > ^ > static > sound/soc/fsl/fsl_easrc.c:1128:5: warning: no previous prototype for function 'fsl_easrc_set_ctx_format' [-Wmissing-prototypes] > int fsl_easrc_set_ctx_format(struct fsl_asrc_pair *ctx, > ^ > sound/soc/fsl/fsl_easrc.c:1128:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int fsl_easrc_set_ctx_format(struct fsl_asrc_pair *ctx, > ^ > static > sound/soc/fsl/fsl_easrc.c:1201:5: warning: no previous prototype for function 'fsl_easrc_set_ctx_organziation' [-Wmissing-prototypes] > int fsl_easrc_set_ctx_organziation(struct fsl_asrc_pair *ctx) > ^ > sound/soc/fsl/fsl_easrc.c:1201:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int fsl_easrc_set_ctx_organziation(struct fsl_asrc_pair *ctx) > ^ > static > sound/soc/fsl/fsl_easrc.c:1245:5: warning: no previous prototype for function 'fsl_easrc_request_context' [-Wmissing-prototypes] > int fsl_easrc_request_context(int channels, struct fsl_asrc_pair *ctx) > ^ > sound/soc/fsl/fsl_easrc.c:1245:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int fsl_easrc_request_context(int channels, struct fsl_asrc_pair *ctx) > ^ > static > sound/soc/fsl/fsl_easrc.c:1290:6: warning: no previous prototype for function 'fsl_easrc_release_context' [-Wmissing-prototypes] > void fsl_easrc_release_context(struct fsl_asrc_pair *ctx) > ^ > sound/soc/fsl/fsl_easrc.c:1290:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > void fsl_easrc_release_context(struct fsl_asrc_pair *ctx) > ^ > static > sound/soc/fsl/fsl_easrc.c:1317:5: warning: no previous prototype for function 'fsl_easrc_start_context' [-Wmissing-prototypes] > int fsl_easrc_start_context(struct fsl_asrc_pair *ctx) > ^ > sound/soc/fsl/fsl_easrc.c:1317:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int fsl_easrc_start_context(struct fsl_asrc_pair *ctx) > ^ > static > sound/soc/fsl/fsl_easrc.c:1335:5: warning: no previous prototype for function 'fsl_easrc_stop_context' [-Wmissing-prototypes] > int fsl_easrc_stop_context(struct fsl_asrc_pair *ctx) > ^ > sound/soc/fsl/fsl_easrc.c:1335:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int fsl_easrc_stop_context(struct fsl_asrc_pair *ctx) > ^ > static > sound/soc/fsl/fsl_easrc.c:1382:18: warning: no previous prototype for function 'fsl_easrc_get_dma_channel' [-Wmissing-prototypes] > struct dma_chan *fsl_easrc_get_dma_channel(struct fsl_asrc_pair *ctx, > ^ > sound/soc/fsl/fsl_easrc.c:1382:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > struct dma_chan *fsl_easrc_get_dma_channel(struct fsl_asrc_pair *ctx, > ^ > static > > Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers") > Signed-off-by: Shengjiu Wang > Reported-by: kbuild test robot Acked-by: Nicolin Chen