From nobody Mon Feb 9 03:30:20 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 083BCC41513 for ; Fri, 21 Jul 2023 17:26:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbjGUR0v (ORCPT ); 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 ); 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 ; 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 To: Mark Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET 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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- 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(-) diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/re= gcache-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 */ --=20 2.34.1