mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sander Vanheule <sander@svanheule.net>
To: Mark Brown <broonie@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] regmap: add cache validity to REGCACHE_FLAT
Date: Thu, 09 Jan 2025 19:04:32 +0100	[thread overview]
Message-ID: <8954ed9d37a3e8a4e44471ceb5f2c262f4fdcc38.camel@svanheule.net> (raw)
In-Reply-To: <25a56461-88f6-4885-82c0-364b8d1d8e83@sirena.org.uk>

Hi Mark,

On Thu, 2025-01-09 at 16:48 +0000, Mark Brown wrote:
> On Thu, Jan 09, 2025 at 04:11:05PM +0100, Sander Vanheule wrote:
> 
> > +static int regcache_flat_drop(struct regmap *map, unsigned int min,
> > +			      unsigned int max)
> > +{
> > +	struct regcache_flat_data *cache = map->cache;
> > +	unsigned int bitmap_min = regcache_flat_get_index(map, min);
> > +	unsigned int bitmap_max = regcache_flat_get_index(map, max);
> > +
> > +	bitmap_clear(cache->valid, index_min, bitmap_max + 1 - bitmap_min);
> 
> This doesn't build:
> 
> /build/stage/linux/drivers/base/regmap/regcache-flat.c: In function
> ‘regcache_flat_drop’:
> /build/stage/linux/drivers/base/regmap/regcache-flat.c:120:36: error: ‘index_min’
> undeclared (first use in this function)
>   120 |         bitmap_clear(cache->valid, index_min, bitmap_max + 1 - bitmap_min);
>       |                                    ^~~~~~~~~
> /build/stage/linux/drivers/base/regmap/regcache-flat.c:120:36: note: each undeclared
> identifier is reported only once for each function it appears in


My apologies., I should have been paying more attention. I've sent a v3 that fixes this.

Best,
Sander

      reply	other threads:[~2025-01-09 18:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09 15:11 Sander Vanheule
2025-01-09 16:48 ` Mark Brown
2025-01-09 18:04   ` Sander Vanheule [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8954ed9d37a3e8a4e44471ceb5f2c262f4fdcc38.camel@svanheule.net \
    --to=sander@svanheule.net \
    --cc=broonie@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®