* Re: [PATCH v5 01/23] clk: at91: pmc: #undef field_{get,prep}() before definition
[not found] ` <a26cfb39f4ac309ffbff339ffa5f54db12bd8c12.1761588465.git.geert+renesas@glider.be>
@ 2025-10-27 20:36 ` Alexandre Belloni
0 siblings, 0 replies; 17+ messages in thread
From: Alexandre Belloni @ 2025-10-27 20:36 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Claudiu Beznea,
Giovanni Cabiddu, Herbert Xu, David Miller, Linus Walleij,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On 27/10/2025 19:41:35+0100, Geert Uytterhoeven wrote:
> Prepare for the advent of globally available common field_get() and
> field_prep() macros by undefining the symbols before defining local
> variants. This prevents redefinition warnings from the C preprocessor
> when introducing the common macros later.
>
> Suggested-by: Yury Norov <yury.norov@gmail.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> --
> v5:
> - New.
> ---
> drivers/clk/at91/pmc.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h
> index 5daa32c4cf2540d7..78a87d31463e98b0 100644
> --- a/drivers/clk/at91/pmc.h
> +++ b/drivers/clk/at91/pmc.h
> @@ -117,7 +117,9 @@ struct at91_clk_pms {
> unsigned int parent;
> };
>
> +#undef field_get
> #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
> +#undef field_prep
> #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
>
> #define ndck(a, s) (a[s - 1].id + 1)
> --
> 2.43.0
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 04/23] gpio: aspeed: #undef field_{get,prep}() before local definition
[not found] ` <76ac5587c5ff3aae3c23f7b41e2f3eacb32ebd21.1761588465.git.geert+renesas@glider.be>
@ 2025-10-28 14:20 ` Bartosz Golaszewski
0 siblings, 0 replies; 17+ messages in thread
From: Bartosz Golaszewski @ 2025-10-28 14:20 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Linus Walleij, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Mon, Oct 27, 2025 at 7:42 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
>
> Prepare for the advent of globally available common field_get() and
> field_prep() macros by undefining the symbols before defining local
> variants. This prevents redefinition warnings from the C preprocessor
> when introducing the common macros later.
>
> Suggested-by: Yury Norov <yury.norov@gmail.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> --
> v5:
> - New.
> ---
> drivers/gpio/gpio-aspeed.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c
> index 7953a9c4e36d7550..ef4ccaf74a5b379e 100644
> --- a/drivers/gpio/gpio-aspeed.c
> +++ b/drivers/gpio/gpio-aspeed.c
> @@ -32,7 +32,9 @@
> #include "gpiolib.h"
>
> /* Non-constant mask variant of FIELD_GET() and FIELD_PREP() */
> +#undef field_get
> #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
> +#undef field_prep
> #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
>
> #define GPIO_G7_IRQ_STS_BASE 0x100
> --
> 2.43.0
>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 07/23] pinctrl: ma35: #undef field_{get,prep}() before local definition
[not found] ` <03a492c8af84a41e47b33c9a974559805d070d8d.1761588465.git.geert+renesas@glider.be>
@ 2025-10-29 14:19 ` Linus Walleij
2025-10-29 14:30 ` Geert Uytterhoeven
2025-10-29 14:30 ` Yury Norov
0 siblings, 2 replies; 17+ messages in thread
From: Linus Walleij @ 2025-10-29 14:19 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
Hi Geert,
thanks for your patch!
On Mon, Oct 27, 2025 at 7:43 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> Prepare for the advent of globally available common field_get() and
> field_prep() macros by undefining the symbols before defining local
> variants. This prevents redefinition warnings from the C preprocessor
> when introducing the common macros later.
>
> Suggested-by: Yury Norov <yury.norov@gmail.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Do you want me to just merge this patch to the pinctrl tree or do
you have other plans?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 18/23] pinctrl: ma35: Convert to common field_{get,prep}() helpers
[not found] ` <ac3e718c5de6a23375055dd3c2e4ed6daf7542d5.1761588465.git.geert+renesas@glider.be>
@ 2025-10-29 14:21 ` Linus Walleij
2025-10-29 14:34 ` Geert Uytterhoeven
0 siblings, 1 reply; 17+ messages in thread
From: Linus Walleij @ 2025-10-29 14:21 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Mon, Oct 27, 2025 at 7:44 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> Drop the driver-specific field_get() and field_prep() macros, in favor
> of the globally available variants from <linux/bitfield.h>.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> v5:
> - Extracted from "bitfield: Add non-constant field_{prep,get}()
> helpers".
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
I guess this needs to go with the rest of the patches?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 07/23] pinctrl: ma35: #undef field_{get,prep}() before local definition
2025-10-29 14:19 ` [PATCH v5 07/23] pinctrl: ma35: " Linus Walleij
@ 2025-10-29 14:30 ` Geert Uytterhoeven
2025-11-02 23:14 ` Linus Walleij
2025-10-29 14:30 ` Yury Norov
1 sibling, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2025-10-29 14:30 UTC (permalink / raw)
To: Linus Walleij
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
Hi Linus,
On Wed, 29 Oct 2025 at 15:20, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Mon, Oct 27, 2025 at 7:43 PM Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
>
> > Prepare for the advent of globally available common field_get() and
> > field_prep() macros by undefining the symbols before defining local
> > variants. This prevents redefinition warnings from the C preprocessor
> > when introducing the common macros later.
> >
> > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> Do you want me to just merge this patch to the pinctrl tree or do
> you have other plans?
My plan (cfr. cover letter) was to take it myself, as this is a hard
dependency for 11/23.
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 07/23] pinctrl: ma35: #undef field_{get,prep}() before local definition
2025-10-29 14:19 ` [PATCH v5 07/23] pinctrl: ma35: " Linus Walleij
2025-10-29 14:30 ` Geert Uytterhoeven
@ 2025-10-29 14:30 ` Yury Norov
2025-10-29 14:33 ` Geert Uytterhoeven
1 sibling, 1 reply; 17+ messages in thread
From: Yury Norov @ 2025-10-29 14:30 UTC (permalink / raw)
To: Linus Walleij
Cc: Geert Uytterhoeven, Michael Turquette, Stephen Boyd,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
Giovanni Cabiddu, Herbert Xu, David Miller, Bartosz Golaszewski,
Joel Stanley, Andrew Jeffery, Crt Mori, Jonathan Cameron,
Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung, Rasmus Villemoes,
Jaroslav Kysela, Takashi Iwai, Johannes Berg, Jakub Kicinski,
Alex Elder, David Laight, Vincent Mailhol, Jason Baron,
Borislav Petkov, Tony Luck, Michael Hennerich, Kim Seer Paller,
David Lechner, Nuno Sá, Andy Shevchenko, Richard Genoud,
Cosmin Tanislav, Biju Das, Jianping Shen, linux-clk,
linux-arm-kernel, linux-renesas-soc, linux-crypto, linux-edac,
qat-linux, linux-gpio, linux-aspeed, linux-iio, linux-sound,
linux-kernel
On Wed, Oct 29, 2025 at 03:19:45PM +0100, Linus Walleij wrote:
> Hi Geert,
>
> thanks for your patch!
>
> On Mon, Oct 27, 2025 at 7:43 PM Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
>
> > Prepare for the advent of globally available common field_get() and
> > field_prep() macros by undefining the symbols before defining local
> > variants. This prevents redefinition warnings from the C preprocessor
> > when introducing the common macros later.
> >
> > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> Do you want me to just merge this patch to the pinctrl tree or do
> you have other plans?
There's a couple nits from Andy, and also a clang W=1 warning to
address. So I think, v6 is needed.
But overlall, the series is OK, and I'd like to take it in bitmaps
branch as it's more related to bits rather than a particular
subsystem.
Thanks,
Yury
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 07/23] pinctrl: ma35: #undef field_{get,prep}() before local definition
2025-10-29 14:30 ` Yury Norov
@ 2025-10-29 14:33 ` Geert Uytterhoeven
2025-10-29 14:43 ` Yury Norov
0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2025-10-29 14:33 UTC (permalink / raw)
To: Yury Norov
Cc: Linus Walleij, Michael Turquette, Stephen Boyd, Nicolas Ferre,
Alexandre Belloni, Claudiu Beznea, Giovanni Cabiddu, Herbert Xu,
David Miller, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
Crt Mori, Jonathan Cameron, Lars-Peter Clausen, Jacky Huang,
Shan-Chun Hung, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
Hi Yury,
On Wed, 29 Oct 2025 at 15:30, Yury Norov <yury.norov@gmail.com> wrote:
> On Wed, Oct 29, 2025 at 03:19:45PM +0100, Linus Walleij wrote:
> > On Mon, Oct 27, 2025 at 7:43 PM Geert Uytterhoeven
> > <geert+renesas@glider.be> wrote:
> > > Prepare for the advent of globally available common field_get() and
> > > field_prep() macros by undefining the symbols before defining local
> > > variants. This prevents redefinition warnings from the C preprocessor
> > > when introducing the common macros later.
> > >
> > > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > Do you want me to just merge this patch to the pinctrl tree or do
> > you have other plans?
>
> There's a couple nits from Andy, and also a clang W=1 warning to
> address. So I think, v6 is needed.
Indeed....
> But overlall, the series is OK, and I'd like to take it in bitmaps
> branch as it's more related to bits rather than a particular
> subsystem.
OK, fine for me (if I can still get an immutable branch ;-)
Note that as of today there are two more to fix in next:
commit d21b4338159ff7d7 ("mtd: rawnand: sunxi: introduce ecc_mode_mask
in sunxi_nfc_caps") in next-20251029
commit 6fc2619af1eb6f59 ("mtd: rawnand: sunxi: rework pattern found
registers") in next-20251029
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 18/23] pinctrl: ma35: Convert to common field_{get,prep}() helpers
2025-10-29 14:21 ` [PATCH v5 18/23] pinctrl: ma35: Convert to common field_{get,prep}() helpers Linus Walleij
@ 2025-10-29 14:34 ` Geert Uytterhoeven
0 siblings, 0 replies; 17+ messages in thread
From: Geert Uytterhoeven @ 2025-10-29 14:34 UTC (permalink / raw)
To: Linus Walleij
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
Hi Linus,
On Wed, 29 Oct 2025 at 15:21, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Mon, Oct 27, 2025 at 7:44 PM Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
>
> > Drop the driver-specific field_get() and field_prep() macros, in favor
> > of the globally available variants from <linux/bitfield.h>.
> >
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> > v5:
> > - Extracted from "bitfield: Add non-constant field_{prep,get}()
> > helpers".
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Thanks!
> I guess this needs to go with the rest of the patches?
There is no hard requirement for that, but if 07/23 goes in, why not
include this one, too?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 07/23] pinctrl: ma35: #undef field_{get,prep}() before local definition
2025-10-29 14:33 ` Geert Uytterhoeven
@ 2025-10-29 14:43 ` Yury Norov
0 siblings, 0 replies; 17+ messages in thread
From: Yury Norov @ 2025-10-29 14:43 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Linus Walleij, Michael Turquette, Stephen Boyd, Nicolas Ferre,
Alexandre Belloni, Claudiu Beznea, Giovanni Cabiddu, Herbert Xu,
David Miller, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
Crt Mori, Jonathan Cameron, Lars-Peter Clausen, Jacky Huang,
Shan-Chun Hung, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Wed, Oct 29, 2025 at 03:33:49PM +0100, Geert Uytterhoeven wrote:
> Hi Yury,
>
> On Wed, 29 Oct 2025 at 15:30, Yury Norov <yury.norov@gmail.com> wrote:
> > On Wed, Oct 29, 2025 at 03:19:45PM +0100, Linus Walleij wrote:
> > > On Mon, Oct 27, 2025 at 7:43 PM Geert Uytterhoeven
> > > <geert+renesas@glider.be> wrote:
> > > > Prepare for the advent of globally available common field_get() and
> > > > field_prep() macros by undefining the symbols before defining local
> > > > variants. This prevents redefinition warnings from the C preprocessor
> > > > when introducing the common macros later.
> > > >
> > > > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > >
> > > Do you want me to just merge this patch to the pinctrl tree or do
> > > you have other plans?
> >
> > There's a couple nits from Andy, and also a clang W=1 warning to
> > address. So I think, v6 is needed.
>
> Indeed....
>
> > But overlall, the series is OK, and I'd like to take it in bitmaps
> > branch as it's more related to bits rather than a particular
> > subsystem.
>
> OK, fine for me (if I can still get an immutable branch ;-)
>
> Note that as of today there are two more to fix in next:
> commit d21b4338159ff7d7 ("mtd: rawnand: sunxi: introduce ecc_mode_mask
> in sunxi_nfc_caps") in next-20251029
> commit 6fc2619af1eb6f59 ("mtd: rawnand: sunxi: rework pattern found
> registers") in next-20251029
Oh, OK. Didn't actually want to undercut you. :) So, at your
discretion. Just let me know what you'd prefer.
Thanks,
Yury
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 02/23] crypto: qat - #undef field_get() before local definition
[not found] ` <ef5c6bfcdf08892fa09cc4aaec5ef49067201195.1761588465.git.geert+renesas@glider.be>
@ 2025-10-30 10:30 ` Giovanni Cabiddu
0 siblings, 0 replies; 17+ messages in thread
From: Giovanni Cabiddu @ 2025-10-30 10:30 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Herbert Xu, David Miller, Linus Walleij,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Mon, Oct 27, 2025 at 07:41:36PM +0100, Geert Uytterhoeven wrote:
> Prepare for the advent of a globally available common field_get() macro
> by undefining the symbol before defining a local variant. This prevents
> redefinition warnings from the C preprocessor when introducing the common
> macro later.
>
> Suggested-by: Yury Norov <yury.norov@gmail.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
> --
> v5:
> - New.
> ---
> drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c b/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c
> index 69295a9ddf0ac92f..6186fafb4a7b0dab 100644
> --- a/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c
> +++ b/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c
> @@ -11,6 +11,7 @@
> * pm_scnprint_table(), making it not compile time constant, so the compile
> * asserts from FIELD_GET() or u32_get_bits() won't be fulfilled.
> */
> +#undef field_get
> #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
>
> #define PM_INFO_MAX_KEY_LEN 21
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 13/23] crypto: qat - convert to common field_get() helper
[not found] ` <2556adf9d1dca0077d03785bef1f7592936c16c8.1761588465.git.geert+renesas@glider.be>
@ 2025-10-30 10:31 ` Giovanni Cabiddu
0 siblings, 0 replies; 17+ messages in thread
From: Giovanni Cabiddu @ 2025-10-30 10:31 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Herbert Xu, David Miller, Linus Walleij,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Mon, Oct 27, 2025 at 07:41:47PM +0100, Geert Uytterhoeven wrote:
> Drop the driver-specific field_get() macro, in favor of the globally
> available variant from <linux/bitfield.h>.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
> ---
> v5:
> - Extracted from "bitfield: Add non-constant field_{prep,get}()
> helpers".
> ---
> drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c b/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c
> index 6186fafb4a7b0dab..4ccc94ed9493a64c 100644
> --- a/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c
> +++ b/drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c
> @@ -1,19 +1,12 @@
> // SPDX-License-Identifier: GPL-2.0-only
> /* Copyright(c) 2025 Intel Corporation */
> +#include <linux/bitfield.h>
> #include <linux/bitops.h>
> #include <linux/sprintf.h>
> #include <linux/string_helpers.h>
>
> #include "adf_pm_dbgfs_utils.h"
>
> -/*
> - * This is needed because a variable is used to index the mask at
> - * pm_scnprint_table(), making it not compile time constant, so the compile
> - * asserts from FIELD_GET() or u32_get_bits() won't be fulfilled.
> - */
> -#undef field_get
> -#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
> -
> #define PM_INFO_MAX_KEY_LEN 21
>
> static int pm_scnprint_table(char *buff, const struct pm_status_row *table,
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition
[not found] ` <97549838f28a1bb7861cfb42ee687f832942b13a.1761588465.git.geert+renesas@glider.be>
@ 2025-11-02 10:43 ` Jonathan Cameron
2025-11-03 10:09 ` Geert Uytterhoeven
0 siblings, 1 reply; 17+ messages in thread
From: Jonathan Cameron @ 2025-11-02 10:43 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Linus Walleij, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
Crt Mori, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Mon, 27 Oct 2025 19:41:44 +0100
Geert Uytterhoeven <geert+renesas@glider.be> wrote:
> Prepare for the advent of globally available common field_get() and
> field_prep() macros by undefining the symbols before defining local
> variants. This prevents redefinition warnings from the C preprocessor
> when introducing the common macros later.
>
> Suggested-by: Yury Norov <yury.norov@gmail.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
So this is going to make a mess of merging your series given this is
queued up for next merge window.
I can pick this one up perhaps and we loop back to the replacement of
these in a future patch? Or perhaps go instead with a rename
of these two which is probably nicer in the intermediate state than
undefs.
> --
> v5:
> - New.
> ---
> drivers/iio/imu/smi330/smi330_core.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/iio/imu/smi330/smi330_core.c b/drivers/iio/imu/smi330/smi330_core.c
> index d9178725ade3da83..a79964fe68fadf47 100644
> --- a/drivers/iio/imu/smi330/smi330_core.c
> +++ b/drivers/iio/imu/smi330/smi330_core.c
> @@ -68,7 +68,9 @@
> #define SMI330_SOFT_RESET_DELAY 2000
>
> /* Non-constant mask variant of FIELD_GET() and FIELD_PREP() */
> +#undef field_get
> #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
> +#undef field_prep
> #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
>
> #define SMI330_ACCEL_CHANNEL(_axis) { \
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v5 07/23] pinctrl: ma35: #undef field_{get,prep}() before local definition
2025-10-29 14:30 ` Geert Uytterhoeven
@ 2025-11-02 23:14 ` Linus Walleij
0 siblings, 0 replies; 17+ messages in thread
From: Linus Walleij @ 2025-11-02 23:14 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Bartosz Golaszewski, Joel Stanley, Andrew Jeffery, Crt Mori,
Jonathan Cameron, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Wed, Oct 29, 2025 at 3:59 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> On Wed, 29 Oct 2025 at 15:20, Linus Walleij <linus.walleij@linaro.org> wrote:
> > On Mon, Oct 27, 2025 at 7:43 PM Geert Uytterhoeven
> > <geert+renesas@glider.be> wrote:
> >
> > > Prepare for the advent of globally available common field_get() and
> > > field_prep() macros by undefining the symbols before defining local
> > > variants. This prevents redefinition warnings from the C preprocessor
> > > when introducing the common macros later.
> > >
> > > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > Do you want me to just merge this patch to the pinctrl tree or do
> > you have other plans?
>
> My plan (cfr. cover letter) was to take it myself, as this is a hard
> dependency for 11/23.
OK go ahead:
Acked-by: Linus Walleij <linus.walleij@linaro.org>
I see there are other review comments, I trust you will fix them up
and merge the result nicely.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition
2025-11-02 10:43 ` [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition Jonathan Cameron
@ 2025-11-03 10:09 ` Geert Uytterhoeven
2025-11-09 12:59 ` Jonathan Cameron
0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2025-11-03 10:09 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Linus Walleij, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
Crt Mori, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
Hi Jonathan,
On Sun, 2 Nov 2025 at 11:43, Jonathan Cameron <jic23@kernel.org> wrote:
> On Mon, 27 Oct 2025 19:41:44 +0100
> Geert Uytterhoeven <geert+renesas@glider.be> wrote:
>
> > Prepare for the advent of globally available common field_get() and
> > field_prep() macros by undefining the symbols before defining local
> > variants. This prevents redefinition warnings from the C preprocessor
> > when introducing the common macros later.
> >
> > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> So this is going to make a mess of merging your series given this is
> queued up for next merge window.
>
> I can pick this one up perhaps and we loop back to the replacement of
> these in a future patch? Or perhaps go instead with a rename
> of these two which is probably nicer in the intermediate state than
> undefs.
Renaming would mean a lot of churn.
Just picking up the #undef patch should be simple and safe? The
removal of the underf and redef can be done in the next cycle.
Thanks!
> > --- a/drivers/iio/imu/smi330/smi330_core.c
> > +++ b/drivers/iio/imu/smi330/smi330_core.c
> > @@ -68,7 +68,9 @@
> > #define SMI330_SOFT_RESET_DELAY 2000
> >
> > /* Non-constant mask variant of FIELD_GET() and FIELD_PREP() */
> > +#undef field_get
> > #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
> > +#undef field_prep
> > #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
> >
> > #define SMI330_ACCEL_CHANNEL(_axis) { \
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition
2025-11-03 10:09 ` Geert Uytterhoeven
@ 2025-11-09 12:59 ` Jonathan Cameron
2025-11-10 8:59 ` Geert Uytterhoeven
0 siblings, 1 reply; 17+ messages in thread
From: Jonathan Cameron @ 2025-11-09 12:59 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Linus Walleij, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
Crt Mori, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Mon, 3 Nov 2025 11:09:36 +0100
Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> Hi Jonathan,
>
> On Sun, 2 Nov 2025 at 11:43, Jonathan Cameron <jic23@kernel.org> wrote:
> > On Mon, 27 Oct 2025 19:41:44 +0100
> > Geert Uytterhoeven <geert+renesas@glider.be> wrote:
> >
> > > Prepare for the advent of globally available common field_get() and
> > > field_prep() macros by undefining the symbols before defining local
> > > variants. This prevents redefinition warnings from the C preprocessor
> > > when introducing the common macros later.
> > >
> > > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > So this is going to make a mess of merging your series given this is
> > queued up for next merge window.
> >
> > I can pick this one up perhaps and we loop back to the replacement of
> > these in a future patch? Or perhaps go instead with a rename
> > of these two which is probably nicer in the intermediate state than
> > undefs.
>
> Renaming would mean a lot of churn.
> Just picking up the #undef patch should be simple and safe? The
> removal of the underf and redef can be done in the next cycle.
> Thanks!
Only 1 call of each of these in the driver, so churn is small either way.
To avoid a bisection problem if your tree merges first I need to modify
this stuff in the original patch or leave it for Linus to deal with as
a merge conflict resolution which is mess I'd rather do without.
So I'll rebase now and rename these functions to have an smi330_ prefix.
Better to potentially cause people problems when I have 23 patches
on top of this (and hopefully no one is based on those yet) than when
I have many more.
So tweaked and pushed out a new version where this patch isn't needed.
We can move to your new code next cycle.
Jonathan
>
> > > --- a/drivers/iio/imu/smi330/smi330_core.c
> > > +++ b/drivers/iio/imu/smi330/smi330_core.c
> > > @@ -68,7 +68,9 @@
> > > #define SMI330_SOFT_RESET_DELAY 2000
> > >
> > > /* Non-constant mask variant of FIELD_GET() and FIELD_PREP() */
> > > +#undef field_get
> > > #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
> > > +#undef field_prep
> > > #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
> > >
> > > #define SMI330_ACCEL_CHANNEL(_axis) { \
>
> Gr{oetje,eeting}s,
>
> Geert
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition
2025-11-09 12:59 ` Jonathan Cameron
@ 2025-11-10 8:59 ` Geert Uytterhoeven
2025-11-11 19:17 ` Jonathan Cameron
0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2025-11-10 8:59 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Linus Walleij, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
Crt Mori, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
Hi Jonathan,
On Sun, 9 Nov 2025 at 14:01, Jonathan Cameron <jic23@kernel.org> wrote:
> On Mon, 3 Nov 2025 11:09:36 +0100
> Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > On Sun, 2 Nov 2025 at 11:43, Jonathan Cameron <jic23@kernel.org> wrote:
> > > On Mon, 27 Oct 2025 19:41:44 +0100
> > > Geert Uytterhoeven <geert+renesas@glider.be> wrote:
> > >
> > > > Prepare for the advent of globally available common field_get() and
> > > > field_prep() macros by undefining the symbols before defining local
> > > > variants. This prevents redefinition warnings from the C preprocessor
> > > > when introducing the common macros later.
> > > >
> > > > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > >
> > > So this is going to make a mess of merging your series given this is
> > > queued up for next merge window.
> > >
> > > I can pick this one up perhaps and we loop back to the replacement of
> > > these in a future patch? Or perhaps go instead with a rename
> > > of these two which is probably nicer in the intermediate state than
> > > undefs.
> >
> > Renaming would mean a lot of churn.
> > Just picking up the #undef patch should be simple and safe? The
> > removal of the underf and redef can be done in the next cycle.
> > Thanks!
>
> Only 1 call of each of these in the driver, so churn is small either way.
>
> To avoid a bisection problem if your tree merges first I need to modify
> this stuff in the original patch or leave it for Linus to deal with as
> a merge conflict resolution which is mess I'd rather do without.
If you add the #undef, there won't be any bisection problem?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition
2025-11-10 8:59 ` Geert Uytterhoeven
@ 2025-11-11 19:17 ` Jonathan Cameron
0 siblings, 0 replies; 17+ messages in thread
From: Jonathan Cameron @ 2025-11-11 19:17 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea, Giovanni Cabiddu, Herbert Xu, David Miller,
Linus Walleij, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
Crt Mori, Lars-Peter Clausen, Jacky Huang, Shan-Chun Hung,
Yury Norov, Rasmus Villemoes, Jaroslav Kysela, Takashi Iwai,
Johannes Berg, Jakub Kicinski, Alex Elder, David Laight,
Vincent Mailhol, Jason Baron, Borislav Petkov, Tony Luck,
Michael Hennerich, Kim Seer Paller, David Lechner, Nuno Sá,
Andy Shevchenko, Richard Genoud, Cosmin Tanislav, Biju Das,
Jianping Shen, linux-clk, linux-arm-kernel, linux-renesas-soc,
linux-crypto, linux-edac, qat-linux, linux-gpio, linux-aspeed,
linux-iio, linux-sound, linux-kernel
On Mon, 10 Nov 2025 09:59:34 +0100
Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> Hi Jonathan,
Hi Geert,
>
> On Sun, 9 Nov 2025 at 14:01, Jonathan Cameron <jic23@kernel.org> wrote:
> > On Mon, 3 Nov 2025 11:09:36 +0100
> > Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > > On Sun, 2 Nov 2025 at 11:43, Jonathan Cameron <jic23@kernel.org> wrote:
> > > > On Mon, 27 Oct 2025 19:41:44 +0100
> > > > Geert Uytterhoeven <geert+renesas@glider.be> wrote:
> > > >
> > > > > Prepare for the advent of globally available common field_get() and
> > > > > field_prep() macros by undefining the symbols before defining local
> > > > > variants. This prevents redefinition warnings from the C preprocessor
> > > > > when introducing the common macros later.
> > > > >
> > > > > Suggested-by: Yury Norov <yury.norov@gmail.com>
> > > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > > >
> > > > So this is going to make a mess of merging your series given this is
> > > > queued up for next merge window.
> > > >
> > > > I can pick this one up perhaps and we loop back to the replacement of
> > > > these in a future patch? Or perhaps go instead with a rename
> > > > of these two which is probably nicer in the intermediate state than
> > > > undefs.
> > >
> > > Renaming would mean a lot of churn.
> > > Just picking up the #undef patch should be simple and safe? The
> > > removal of the underf and redef can be done in the next cycle.
> > > Thanks!
> >
> > Only 1 call of each of these in the driver, so churn is small either way.
> >
> > To avoid a bisection problem if your tree merges first I need to modify
> > this stuff in the original patch or leave it for Linus to deal with as
> > a merge conflict resolution which is mess I'd rather do without.
>
> If you add the #undef, there won't be any bisection problem?
Two different things. The bisection comment was about squashing into the
original driver patch - not what was squashed. Your tree may well merge
before mine does and a bisection could therefore land in between the
driver introduction and a patch I merge today.
The rename is a preference only because I don't want an undef that smells
like a hack / bug work around kicking around in the tree for significant time
(probably a whole kernel cycle). In this case the churn is very similar
with that or a rename of the macros - so rename it is.
Jonathan
> Gr{oetje,eeting}s,
>
> Geert
>
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2025-11-11 19:18 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1761588465.git.geert+renesas@glider.be>
[not found] ` <a26cfb39f4ac309ffbff339ffa5f54db12bd8c12.1761588465.git.geert+renesas@glider.be>
2025-10-27 20:36 ` [PATCH v5 01/23] clk: at91: pmc: #undef field_{get,prep}() before definition Alexandre Belloni
[not found] ` <76ac5587c5ff3aae3c23f7b41e2f3eacb32ebd21.1761588465.git.geert+renesas@glider.be>
2025-10-28 14:20 ` [PATCH v5 04/23] gpio: aspeed: #undef field_{get,prep}() before local definition Bartosz Golaszewski
[not found] ` <03a492c8af84a41e47b33c9a974559805d070d8d.1761588465.git.geert+renesas@glider.be>
2025-10-29 14:19 ` [PATCH v5 07/23] pinctrl: ma35: " Linus Walleij
2025-10-29 14:30 ` Geert Uytterhoeven
2025-11-02 23:14 ` Linus Walleij
2025-10-29 14:30 ` Yury Norov
2025-10-29 14:33 ` Geert Uytterhoeven
2025-10-29 14:43 ` Yury Norov
[not found] ` <ac3e718c5de6a23375055dd3c2e4ed6daf7542d5.1761588465.git.geert+renesas@glider.be>
2025-10-29 14:21 ` [PATCH v5 18/23] pinctrl: ma35: Convert to common field_{get,prep}() helpers Linus Walleij
2025-10-29 14:34 ` Geert Uytterhoeven
[not found] ` <ef5c6bfcdf08892fa09cc4aaec5ef49067201195.1761588465.git.geert+renesas@glider.be>
2025-10-30 10:30 ` [PATCH v5 02/23] crypto: qat - #undef field_get() before local definition Giovanni Cabiddu
[not found] ` <2556adf9d1dca0077d03785bef1f7592936c16c8.1761588465.git.geert+renesas@glider.be>
2025-10-30 10:31 ` [PATCH v5 13/23] crypto: qat - convert to common field_get() helper Giovanni Cabiddu
[not found] ` <97549838f28a1bb7861cfb42ee687f832942b13a.1761588465.git.geert+renesas@glider.be>
2025-11-02 10:43 ` [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition Jonathan Cameron
2025-11-03 10:09 ` Geert Uytterhoeven
2025-11-09 12:59 ` Jonathan Cameron
2025-11-10 8:59 ` Geert Uytterhoeven
2025-11-11 19:17 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).