From patchwork Thu Aug 24 06:45:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13363612 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2787C71145 for ; Thu, 24 Aug 2023 06:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FXe/ZkkEawAiaahztFkhacfn8yA+AfEgGnF/DVgyV9g=; b=SWMSeQ5PIfNF/f GbvxwJReNfSKvDnNuGlJqGFuE+O8GBObQQSNwMTpbYtrBAbCmtpoSW2u9hKvDj3YxK7yy8BHUBG/5 Q0H8lzijJKHyLM/kYpiO+IJUIz+YHrDGt6HapjqkDm3zapzuBS3fjfVrWdvVsV1eRxqiQRIE1EC6F jSAlqzaA7MWOdFNs5JCCUaiSSNWKlMofYYJwfdizryAfebrzqNAQ/OP1yVxVIWxKSa/kOx3+v6ODu RGvusicb/iHS+YJ8zmZBKe4vXjwlQGhfi/6+gaxiHqiSBna5Dp/mi0UCl1cXvpXw3ZDr4t0Yny/7V jOg4X+uxz8v2MfK2/fqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZ45t-002LBX-2J; Thu, 24 Aug 2023 06:45:25 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZ45q-002LB7-0v for linux-arm-kernel@lists.infradead.org; Thu, 24 Aug 2023 06:45:23 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9D2E664659; Thu, 24 Aug 2023 06:45:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40147C433C8; Thu, 24 Aug 2023 06:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692859521; bh=bcZU8YxffkCIfRb0QCjzp823WBVM6ukmSQ1+psPp8jA=; h=From:To:Cc:Subject:Date:From; b=JIqCFyYzi/+ovUjSlx41YA5FHd8G0SWzpc/MvS6UTxznILw7FBpJSEyQO/7OAsp4t iAegdW6sQjZccs2ty9aC2cJ5npy0HlDpblEjqmkR3uMFXuwv2gcwFfciAZ/wcB/c36 6GkZyt8H1XE3my9fFPcyXEo23T/BT7m5tv/3VtsD2fugH6dbAut+rAY+8S0nTxhFpr N+GPeWIRG/ppwkevburgYtB1Kf6N1ZFpWuOSP34/DNFUL9240g0B15nLua4Z6VAnNl Sc5wi2jwXbGUGgTCgSaD4BINPwWxV2pRKSOQxVnnV84xS0MMGIlBTuz5ik66KBPjD9 e7AtiAu1bhmJQ== From: Masahiro Yamada To: Linus Walleij , linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Haojian Zhuang , Tony Lindgren , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: [PATCH] pinctrl: single: remove get rid of __maybe_unused Date: Thu, 24 Aug 2023 15:45:08 +0900 Message-Id: <20230824064508.968142-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230823_234522_363705_A3883784 X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These are always used in pcs_probe(). While I was here, I also changed 'unsigned' in the same line to 'unsigned int' to address the checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Masahiro Yamada --- drivers/pinctrl/pinctrl-single.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 0dabbcf68b9f..51783fa62c1c 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -240,32 +240,32 @@ static struct lock_class_key pcs_request_class; * does not help in this case. */ -static unsigned __maybe_unused pcs_readb(void __iomem *reg) +static unsigned int pcs_readb(void __iomem *reg) { return readb(reg); } -static unsigned __maybe_unused pcs_readw(void __iomem *reg) +static unsigned int pcs_readw(void __iomem *reg) { return readw(reg); } -static unsigned __maybe_unused pcs_readl(void __iomem *reg) +static unsigned int pcs_readl(void __iomem *reg) { return readl(reg); } -static void __maybe_unused pcs_writeb(unsigned val, void __iomem *reg) +static void pcs_writeb(unsigned int val, void __iomem *reg) { writeb(val, reg); } -static void __maybe_unused pcs_writew(unsigned val, void __iomem *reg) +static void pcs_writew(unsigned int val, void __iomem *reg) { writew(val, reg); } -static void __maybe_unused pcs_writel(unsigned val, void __iomem *reg) +static void pcs_writel(unsigned int val, void __iomem *reg) { writel(val, reg); }