Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9943914rwp; Thu, 20 Jul 2023 12:04:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLFViPqPReTPXEwbVRNrfevHv4Dn9RDDoMnRSnWfv7cgdHR0HBVrWsj5vEiS09CWppTSD0 X-Received: by 2002:a05:6000:124d:b0:30e:4515:1529 with SMTP id j13-20020a056000124d00b0030e45151529mr2842065wrx.37.1689879888887; Thu, 20 Jul 2023 12:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689879888; cv=none; d=google.com; s=arc-20160816; b=V59IkY7WQAeurGIBiB2XxtGRQKM9ZzmEbyId/gFIvSw6AGdaJs7pGd5qs3rsS4bYHQ /Lgr4IYFYkoZqRPOxP7GFnkOVybI8l3Qew/Daa80GFlO5YmjpAHj/HnN+6er9bxN0AV8 hedI3RAho9dJT/cDRPjGS6bKInHKpM6usp9gwhb+z4PRqhOU5OI/PXp9ppJvIbThXqLw gK4xUmf5bTk1fy99XYpGiqBXstp2811KV6RlOfxLgWtFG8ntpQmF8coIVRmrnxOywFT7 qlN7L7E6NzwigMiIN2zC+yIKL9sLBXFsaSiRJL1yZ28SxKXF4p6JFSHYR07+49Z/QvCe 4ysQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=VlXcKq8r5CvDv0CQjr1ifJgqgPG6o4lzBf7CAsOaYZM=; fh=gbgrKFaXv4V8EtKJFngi+Hwy8LSOW+P9yjWBxLR2iIc=; b=HNS5kdkomhGofHDPrXtVqRl1AYZpTCPZmyxbRtVfKz475TbGpEqOVUj1HI6AWgbAep DhyWsalf+FvHFuWBfxum5SS4fXRaGNCRxTNXBRrOhILujVK2JojoM2X7WjjDY94k0voa Y2NhbaUO32aL9y31jcL6EKi4g9VEz3EbRSP4XJ+fEyNuSD9yADZkraIoj3FZ40aPlXbt 5CkYT+uiZgNhEoMuZR3snstfyv+dPWPphsbNfWUElYCTEHEpXmCArY5AtZPx7gEz15St lxP2yy5xD46PPCooX3NequPfH4VL7cNhjrCtxkky1yuA7laq2TyM+xJciK5xsQFMetSQ m+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm3 header.b=Z9dpjKXF; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MR+lC1Cy; 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=svenpeter.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020aa7df01000000b0051de1903200si1113041edy.423.2023.07.20.12.04.24; Thu, 20 Jul 2023 12:04:48 -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=@svenpeter.dev header.s=fm3 header.b=Z9dpjKXF; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MR+lC1Cy; 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=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbjGTSz7 (ORCPT + 99 others); Thu, 20 Jul 2023 14:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbjGTSz6 (ORCPT ); Thu, 20 Jul 2023 14:55:58 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 925151705 for ; Thu, 20 Jul 2023 11:55:57 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 893063200124; Thu, 20 Jul 2023 14:55:56 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute5.internal (MEProxy); Thu, 20 Jul 2023 14:55:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1689879356; x= 1689965756; bh=VlXcKq8r5CvDv0CQjr1ifJgqgPG6o4lzBf7CAsOaYZM=; b=Z 9dpjKXFJx6E45rGhQTEV52gxvEbjHOelVthAwRJS6cG8c6GxcCx//r0a3GUSoHkX yUqFaRRQS5dB8URGVRxLIXnel2gk2wqziQqQxDo6HPQ8Q3RXE2BxySHNO232FIuM xtuHcPRuHzr6c1zkLDANxy7BBf5EdepwPtYuWnDdufESlLxbqykO3lLbrh25KgPJ 12j6mpjWOWbW9rhuayi20DR3wwdgsaRtcVIGSHqUzfyk8qVnQHI9Dc+uiXdJZt+5 wbMVlvUjJiGaMBBgXnNk+FkHVFLY5d8/9opd6DjF7QZb80Em+dYw3t8/OnQK9cU1 gnN1l8FLjEXiKm1SQaVVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1689879356; x=1689965756; bh=VlXcKq8r5CvDv 0CQjr1ifJgqgPG6o4lzBf7CAsOaYZM=; b=MR+lC1CyfZRZhHHseDJBYoY1Nowk+ rXvJx/agWc6q5w2QrSUUbh+EaZf6+V9ZJE/4SZWH1eKQXU80CeEgJr5QbX7hshww a2UDx4PUy0oY5QGMUBvQskEhOUy9CkwPXFr5kEvLxtdsfBMbaCZfpDuxakvIX3pS 3hmhUkFCIYS3rzujR/Z29cZYoenR5IMHNcWenOnijNdtSoEtOH8DC2vO7DLc0B5k gLL/8/UTdvsq3L1UYqD6jXId4D6CqEoDUt8unX/eAcAZXeGmWPijTUjOUJlU7fT5 PRMqllQ+ICabl2km7yJzEvUHEsuy0AWnZtfzCQOQWUPQ0Jls5gprQXrQw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedtgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfufhv vghnucfrvghtvghrfdcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrf grthhtvghrnhepleevgfegffehvedtieevhfekheeftedtjeetudevieehveevieelgffh ieevieeunecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomh epshhvvghnsehsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A139CA60077; Thu, 20 Jul 2023 14:55:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-531-gfdfa13a06d-fm-20230703.001-gfdfa13a0 Mime-Version: 1.0 Message-Id: <1e16e400-0dbb-4ba1-a0a5-2380b50fa60a@app.fastmail.com> In-Reply-To: <20230719223848.138363-1-minhuadotchen@gmail.com> References: <20230719223848.138363-1-minhuadotchen@gmail.com> Date: Thu, 20 Jul 2023 20:55:34 +0200 From: "Sven Peter" To: "Min-Hua Chen" , "Hector Martin" , "Alyssa Rosenzweig" , "Philipp Zabel" Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: apple: apple-pmgr-pwrstate: mark apple_pmgr_reset_ops static Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 20, 2023, at 00:38, Min-Hua Chen wrote: > This patch fixes the following sparse warnings: > > drivers/soc/apple/apple-pmgr-pwrstate.c:180:32: sparse: warning: symbol > 'apple_pmgr_reset_ops' was not declared. Should it be static? > > No functional change intended. > > Signed-off-by: Min-Hua Chen > --- Acked-by: Sven Peter Thanks, Sven > drivers/soc/apple/apple-pmgr-pwrstate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/apple/apple-pmgr-pwrstate.c > b/drivers/soc/apple/apple-pmgr-pwrstate.c > index d62a776c89a1..9467235110f4 100644 > --- a/drivers/soc/apple/apple-pmgr-pwrstate.c > +++ b/drivers/soc/apple/apple-pmgr-pwrstate.c > @@ -177,7 +177,7 @@ static int apple_pmgr_reset_status(struct > reset_controller_dev *rcdev, unsigned > return !!(reg & APPLE_PMGR_RESET); > } > > -const struct reset_control_ops apple_pmgr_reset_ops = { > +static const struct reset_control_ops apple_pmgr_reset_ops = { > .assert = apple_pmgr_reset_assert, > .deassert = apple_pmgr_reset_deassert, > .reset = apple_pmgr_reset_reset, > -- > 2.34.1