Message ID | 20230516202332.560123-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp685385vqo; Tue, 16 May 2023 13:33:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gL59d8JbIitS9snAFTQj1ux/MeuPvcThmPaV9lFCSy1DyENmhVFGI7DSCD0ERgSpM9Wn2 X-Received: by 2002:a17:902:c950:b0:1a1:d54b:71df with SMTP id i16-20020a170902c95000b001a1d54b71dfmr90262pla.0.1684269236383; Tue, 16 May 2023 13:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684269236; cv=none; d=google.com; s=arc-20160816; b=b1d8kFWWjVG+rwlqzymMXTzWdw/bq5CxCpPPaLQobI6K5SPE38KXhKaqdXLTjB/x/4 P0YCJtTURI6ixgcIjdcqjZN7BduH93ny4/Dg9y8d/aSVeDcocD/Aa2HMxbMH+xLvR/tG VOH5J5gqK8rKCuSAn51rU/UaW6b7MxsvljQkYplLOcX0LCgxIPHtl8aPv/yqfoZIAkZ3 xKpb3R8H5IdrYUtY1gtz+GQnrJV6/N7kMArYQndmBvi5dsMQuElkj7iCtZtVGxV0nlNg nFEpoyiDyFK3PAc1MhFh/FgHNYLf/cR3VCwBWwgm4mSMhLNNlGQY/3ruTaPezEVqajNn K2PQ== 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:dkim-signature; bh=14CC2cOiabdjfrBu1pz+pWLR1ayWXNGsdT4Oy6+TrYQ=; b=WOLLwH/zQOIERwFrbooZVMVnOgDqs3Kj4MKwhYJ8DhkpweCldJr3UXOUGWEoDTzqCa zd+ECdWgCmnUG0v07sgwVBLMNTPnMf/AFUGXVlC4RCF3yAop41UlxFbwCTUw/mcKK53s WjPf/u9pBaXesW8g7j2DnbRCkhcdvpH7F0bESU53OKlP7Zf7AYz162gq0ILzTViG+JHm gPOxCQ2OUvCrJI2Rn4dyn09LjXKoEZGBtNdccrN4UjTCgiy9eHkYTUdPic9JRjM7IhA0 y9Te3+AzQ38qWQuRSf4DJzsYTxOpe+1ts8aobMu7Jamqlg7UVPQdfh3r/4RAdRItHERd g8Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BXL5iFvw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a170902f7d500b0019ca7d69673si18521220plw.196.2023.05.16.13.33.42; Tue, 16 May 2023 13:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BXL5iFvw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbjEPUXn (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 16:23:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbjEPUXk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 16:23:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AB8D132; Tue, 16 May 2023 13:23:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A4360635A2; Tue, 16 May 2023 20:23:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51D50C433EF; Tue, 16 May 2023 20:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684268619; bh=pqehcCkjyDBJ2mQ+/BvHGhafgHlU9rCc7eAl+CgbqNE=; h=From:To:Cc:Subject:Date:From; b=BXL5iFvw0eO0Gt26tpEq15A89OIxyqVuD49h3yjSppz8T98vw8hiSig1lZYLOe9YD PMeKQOOQv/sufdyRPXIvEq+y8Ni5+uLZQMp7y/SuO1idzcQ7uLSjoZLBy8lyezYHHV Ju+JwxbInRqWfnmexnOc5ewPa80pZweTDf6tWSy+GQ4fs2XRg+02omAp8OrMKlO8UP y+mz/gpqNTMpbnb6nBMEhof97q+VcDkEKoXuv06ePkJ15xzhTIBP7oS92DRYbiqj5x ooCVBFIb1Rh0/DydJEU2Q3AQVJ2TxHfte2gso3cU1I1j1NtnOhyIANzK7BrOwL9LmE qLvOfm7EukRYQ== From: Arnd Bergmann <arnd@kernel.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Sibi Sankar <quic_sibis@quicinc.com>, Yogesh Lal <quic_ylal@quicinc.com> Cc: Arnd Bergmann <arnd@arndb.de>, Konrad Dybcio <konrad.dybcio@linaro.org>, Mukesh Ojha <quic_mojha@quicinc.com>, Neil Armstrong <neil.armstrong@linaro.org>, Abel Vesa <abel.vesa@linaro.org>, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] remoteproc: qcom: pas: mark adsp_segment_dump() static Date: Tue, 16 May 2023 22:23:17 +0200 Message-Id: <20230516202332.560123-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766084299169130940?= X-GMAIL-MSGID: =?utf-8?q?1766084299169130940?= |
Series |
remoteproc: qcom: pas: mark adsp_segment_dump() static
|
|
Commit Message
Arnd Bergmann
May 16, 2023, 8:23 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The function has no other callers and should not be globally defined. Making it static avoids this warning: drivers/remoteproc/qcom_q6v5_pas.c:108:6: error: no previous prototype for 'adsp_segment_dump' Fixes: a376c10d45a8 ("remoteproc: qcom: pas: Adjust the phys addr wrt the mem region") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/remoteproc/qcom_q6v5_pas.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On 5/17/2023 1:53 AM, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The function has no other callers and should not be globally defined. > Making it static avoids this warning: > > drivers/remoteproc/qcom_q6v5_pas.c:108:6: error: no previous prototype for 'adsp_segment_dump' > > Fixes: a376c10d45a8 ("remoteproc: qcom: pas: Adjust the phys addr wrt the mem region") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> This seems to be posted already https://lore.kernel.org/lkml/20230507144826.193067-1-krzysztof.kozlowski@linaro.org/ -- Mukesh > --- > drivers/remoteproc/qcom_q6v5_pas.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c > index e34d82b18a67..a1d69721a0e7 100644 > --- a/drivers/remoteproc/qcom_q6v5_pas.c > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > @@ -105,8 +105,9 @@ struct qcom_adsp { > struct qcom_scm_pas_metadata dtb_pas_metadata; > }; > > -void adsp_segment_dump(struct rproc *rproc, struct rproc_dump_segment *segment, > - void *dest, size_t offset, size_t size) > +static void adsp_segment_dump(struct rproc *rproc, > + struct rproc_dump_segment *segment, > + void *dest, size_t offset, size_t size) > { > struct qcom_adsp *adsp = rproc->priv; > int total_offset;
diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index e34d82b18a67..a1d69721a0e7 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -105,8 +105,9 @@ struct qcom_adsp { struct qcom_scm_pas_metadata dtb_pas_metadata; }; -void adsp_segment_dump(struct rproc *rproc, struct rproc_dump_segment *segment, - void *dest, size_t offset, size_t size) +static void adsp_segment_dump(struct rproc *rproc, + struct rproc_dump_segment *segment, + void *dest, size_t offset, size_t size) { struct qcom_adsp *adsp = rproc->priv; int total_offset;