Message ID | 5600df5003d23da10efcfafbda97ca55776d0d29.1689960321.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp368325vqg; Fri, 21 Jul 2023 10:46:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDF70qZ/1U2Cjz7mJhNpsnMQylIkDoZ1+TxtKLALrA8wBReYBRlJZEHSR565zhn6e/hQWY X-Received: by 2002:a17:90b:ed4:b0:263:70d5:6d60 with SMTP id gz20-20020a17090b0ed400b0026370d56d60mr1891714pjb.30.1689961572000; Fri, 21 Jul 2023 10:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689961571; cv=none; d=google.com; s=arc-20160816; b=J1Lo9qLEjbTV9jvwbravRYDOmyMVdsBHCgJq9DUPKovAH/keQAoViI2Kmd2p8/66tr YK0w9WY+k1Wbe1k6lFkebJ5p/sQV09L4yNf9Fp6UY6c90/69eEu0ueov9KMxiGqxpE4L fANHda5J7C9V7xesy0RRBByCOXb/RUv2bYXqtsIhWnoNG/KSHMgCxSM4kysMpdwFOjx0 5gBrvwRAfiI/JdBoCnk551tr/0MEJ6Ri+P2B1UZ1R9P5uolzTVeUShysRm5ZCeCE7Q8s Sf5XUxMRzowE+6r8/iyWyUOzTOR4SW5bme583BMk5s3Hu4fief4mSw6d4XjPsUv+KRQL k9Fg== 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=S0Q94L8t1F+wYZ+no5Ur/HtGB5I8fAPeAwIMg1DRGMg=; fh=EWntoTipUuIS4egi1H1YkP+Jud8Nb6vwo9hEOpbOs3Y=; b=EFPewApzUkNGXquJC0444GCiItsNa+JVO5LUIvtEbdDiYJjrU/VUFbhGuXg+Ikko/h l0vPJSN29zGo2yPptap9h1DHiSyAdH6PjbKgHOh5AZkADcY33I3exf8lzInJbMwK3RKj 9ON1l54ZAVjE7t6UP3z0iRFYCX2EC3ckH9WAL4KJHMegfmJD+PW4ZFBG1biFPZNfgsnN aLKLoZOCa16Oyy6tevFGNFOZAEJw3rnVPsQUBkij5uB7o7K88uigyGIMyaMbhT5KdAnA oEp+A2pkgI1L2MYinlLsHNSoPl+rVBaRTbMPVRvWVnSatzW7f8+/ucNmBsZaYZN+OcQa LJfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=GCQyWz5O; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a17090ace0400b00263051bbd63si6054507pju.159.2023.07.21.10.45.56; Fri, 21 Jul 2023 10:46:11 -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=@wanadoo.fr header.s=t20230301 header.b=GCQyWz5O; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbjGUR0v (ORCPT <rfc822;chrisben.tianve@gmail.com> + 99 others); Fri, 21 Jul 2023 13:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbjGUR0q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 13:26:46 -0400 Received: from smtp.smtpout.orange.fr (smtp-24.smtpout.orange.fr [80.12.242.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DE3F30F0 for <linux-kernel@vger.kernel.org>; Fri, 21 Jul 2023 10:26:08 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id MtsuqfxG71d2aMtsuqAyD5; Fri, 21 Jul 2023 19:25:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1689960345; bh=S0Q94L8t1F+wYZ+no5Ur/HtGB5I8fAPeAwIMg1DRGMg=; h=From:To:Cc:Subject:Date; b=GCQyWz5OgPbCw535Ns8tGqCkWOjzPWjvRJfIyEwCgTlQ6hZVa+cUjesHZcBpLkYQm IiKoNBx+KpiCP9aSZjSK06yWkqqsDACFYqUDzyIy4Uw8VwJ+rjoQLpmYzMQzjubx9P 2zD5DkdOjH5PiuG9AP+uy2wNBvivtVDa8gwTz+xbsBQoPdTxjnAOKVUTQwQKvSoC77 pDtw5QR01L1CiEZWV6G1T7vcZV7VAvw6JKrcJ3ZKQ2lidBlXYiv/6d6RslZsqOccwy Gsv6p9WVvjExhv93ZxnhEN7QaToEz8nl3CRtTyOZWirOWOwU3P+g2Y5E9JwS2hy8kp Fvk/eSbpDSxiw== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 21 Jul 2023 19:25:45 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: Mark Brown <broonie@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr> Subject: [PATCH] regmap: Fix the type used for a bitmap pointer Date: Fri, 21 Jul 2023 19:25:43 +0200 Message-Id: <5600df5003d23da10efcfafbda97ca55776d0d29.1689960321.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=unavailable 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: INBOX X-GMAIL-THRID: 1772053145397479727 X-GMAIL-MSGID: 1772053145397479727 |
Series |
regmap: Fix the type used for a bitmap pointer
|
|
Commit Message
Christophe JAILLET
July 21, 2023, 5:25 p.m. UTC
Bitmaps should be defined as 'unsigned long', not 'long'.
Fix the type of 'cache_present' is the 'struct regcache_rbtree_node'.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
No differences in the generated code with gcc 12.1.0.
---
drivers/base/regmap/regcache-rbtree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 21 Jul 2023 19:25:43 +0200, Christophe JAILLET wrote: > Bitmaps should be defined as 'unsigned long', not 'long'. > Fix the type of 'cache_present' is the 'struct regcache_rbtree_node'. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: Fix the type used for a bitmap pointer commit: ffb57ee9c0e2a9aae89016ee7b793a666c6aa4a5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index fabf87058d80..4056c9d32ffa 100644 --- a/drivers/base/regmap/regcache-rbtree.c +++ b/drivers/base/regmap/regcache-rbtree.c @@ -22,7 +22,7 @@ struct regcache_rbtree_node { /* block of adjacent registers */ void *block; /* Which registers are present */ - long *cache_present; + unsigned long *cache_present; /* base register handled by this block */ unsigned int base_reg; /* number of registers available in the block */