From patchwork Thu Dec 15 16:42:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 33730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp478465wrn; Thu, 15 Dec 2022 08:58:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Y3W0RaY3LiTYOEFNwa2XZ1PqfImu28aIVkt4cJz54Y7N6pxaEzGlHYUsE2d0vJ4yUAnRC X-Received: by 2002:a05:6a20:c181:b0:aa:6716:5db6 with SMTP id bg1-20020a056a20c18100b000aa67165db6mr40652078pzb.0.1671123492369; Thu, 15 Dec 2022 08:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671123492; cv=none; d=google.com; s=arc-20160816; b=ObA+jq93raNuUaya+iebzIIQixHkgxhFkVif+bnsK4aBhrLkBAGZazjaXvs8e3hckC UZricgg7ezv3WyPkrrhUyeUdmOs2WcTmUuyjaPhz7URgqgd0U8zHqj9kXyxMbtAH6LMR IlV770uHOsmJmjYXEwdkz/G8jLjEtPUyH3kqjfPNGlrRHZBuE2a2xmuiSRO93Lkf545E f/Mg0e6ADtTZSCfA73b8b5MSlsxuQBqq56SDKBfPzIkiZvmFSy3yBc29KJQzsCj99P+3 U8jFBdywkVTSdljk71D50O46SQCH09j+8uneftocjuuNrnWl3+OqY2Hfiq781XtbbSFo e8vA== 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=Fc5sYLoCuXL7K6+sPfRFtPtKb3SaJU4iMpUzt7MieuU=; b=EM2sfySIfYBAzERM6nhY7vvcIns2oHi8TDDoL6oeUvWmho+y6Ee1Gw0mvDDcdm8y3z 5M1Dv+6qX2dEBKQoMiecXjq+jcl0PA4spohxG6SOLt41CZbEI8TUhmClbOqjjJEglNJ5 X78jWrQ5LPIJF4ZXN9CIIK7c+rhl2fzNwkN5CNJQmNIRnmSDrSQejKNTI3AodeacVasM 89KtZ0XEawc4FZdB4TPRdbzN8hSrxE/K4+3d0obzT9tLuJSuB8VJc+j1gTXxxqtfnE6z +kyqg2UB1KTEYC8KTDpquugYcu6oMQr6sjl989XHPRLBzcjC98oiPPsCIH/B1F0YwiZy TV0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cVDq0W3v; 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 l62-20020a638841000000b0046004f18c6csi3266997pgd.456.2022.12.15.08.57.59; Thu, 15 Dec 2022 08:58:12 -0800 (PST) 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=cVDq0W3v; 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 S230231AbiLOQnM (ORCPT + 99 others); Thu, 15 Dec 2022 11:43:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbiLOQnI (ORCPT ); Thu, 15 Dec 2022 11:43:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B7631EF4; Thu, 15 Dec 2022 08:43:08 -0800 (PST) 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 A2A5A61E3B; Thu, 15 Dec 2022 16:43:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E3B1C433D2; Thu, 15 Dec 2022 16:43:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671122587; bh=EJbzFTzdiVnx0DkBjvBmxcdCKoZgTncI1xo0FQ9Ph00=; h=From:To:Cc:Subject:Date:From; b=cVDq0W3vD9FvmjOGUWuYhrlG6cSOWaJu5/TlD2iP/9YBDHp+8h2gd4gsUpLFD4qgc We3FbLRJ2UrJZ52IjLRssK93sSYVDvx1l5nwjYBX+ibedXTjkqUnZIJqgO7zPhCgS3 hGaRWq9LgLIqYMq48RikZhlEumapRzeOWqMqJR/QFJqP+IMnDtgi5DWgD3ughZ56au jSBo2C3rXVTuXYb38ZxP0CZ63rm0SZVV9qoeu9JGbpDIH9r3yR0cfjxL55U339wx1l CHtUg34/cUXb3uv1FkfGkXzkvZc0fiyl7hrh1V+ijLgAssP9kmrS2FnafwV/G5yDui nj6RkTUPGfO3w== From: Arnd Bergmann To: Ludovic Desroches , Linus Walleij , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Arnd Bergmann , Andy Shevchenko , Slark Xiao , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: at91: convert to NOIRQ_SYSTEM_SLEEP_PM_OPS Date: Thu, 15 Dec 2022 17:42:54 +0100 Message-Id: <20221215164301.934805-1-arnd@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752299987019796832?= X-GMAIL-MSGID: =?utf-8?q?1752299987019796832?= From: Arnd Bergmann With the old SET_NOIRQ_SYSTEM_SLEEP_PM_OPS, some configs result in a build warning: drivers/pinctrl/pinctrl-at91.c:1668:12: error: 'at91_gpio_resume' defined but not used [-Werror=unused-function] 1668 | static int at91_gpio_resume(struct device *dev) | ^~~~~~~~~~~~~~~~ drivers/pinctrl/pinctrl-at91.c:1650:12: error: 'at91_gpio_suspend' defined but not used [-Werror=unused-function] 1650 | static int at91_gpio_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~ Signed-off-by: Arnd Bergmann Reviewed-by: Ryan Wanner --- drivers/pinctrl/pinctrl-at91.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 1e1813d7c550..cf2423855a80 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -1923,7 +1923,7 @@ static int at91_gpio_probe(struct platform_device *pdev) } static const struct dev_pm_ops at91_gpio_pm_ops = { - SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(at91_gpio_suspend, at91_gpio_resume) + NOIRQ_SYSTEM_SLEEP_PM_OPS(at91_gpio_suspend, at91_gpio_resume) }; static struct platform_driver at91_gpio_driver = {