All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>,
	Nicolas Ferre <nicolas.ferre@microchip.com>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Claudiu Beznea <claudiu.beznea@tuxon.dev>,
	Giovanni Cabiddu <giovanni.cabiddu@intel.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	David Miller <davem@davemloft.net>,
	Linus Walleij <linus.walleij@linaro.org>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Joel Stanley <joel@jms.id.au>,
	Andrew Jeffery <andrew@codeconstruct.com.au>,
	Crt Mori <cmo@melexis.com>, Jonathan Cameron <jic23@kernel.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Jacky Huang <ychuang3@nuvoton.com>,
	Shan-Chun Hung <schung@nuvoton.com>,
	Yury Norov <yury.norov@gmail.com>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Jakub Kicinski <kuba@kernel.org>, Alex Elder <elder@ieee.org>,
	David Laight <david.laight.linux@gmail.com>,
	Vincent Mailhol <mailhol.vincent@wanadoo.fr>,
	Jason Baron <jbaron@akamai.com>, Borislav Petkov <bp@alien8.de>,
	Tony Luck <tony.luck@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	netdev@vger.kernel.org
Subject: Re: [PATCH v5 12/23] clk: at91: Convert to common field_{get,prep}() helpers
Date: Tue, 28 Oct 2025 14:01:15 +0800	[thread overview]
Message-ID: <202510281335.UpSLYJG9-lkp@intel.com> (raw)
In-Reply-To: <b9e9b7d94ba51c7bc028321a85e91adecb23f925.1761588465.git.geert+renesas@glider.be>

Hi Geert,

kernel test robot noticed the following build warnings:

[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on next-20251027]
[cannot apply to clk/clk-next geert-renesas-devel/next geert-renesas-drivers/renesas-clk linus/master v6.18-rc3]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Geert-Uytterhoeven/clk-at91-pmc-undef-field_-get-prep-before-definition/20251028-025423
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link:    https://lore.kernel.org/r/b9e9b7d94ba51c7bc028321a85e91adecb23f925.1761588465.git.geert%2Brenesas%40glider.be
patch subject: [PATCH v5 12/23] clk: at91: Convert to common field_{get,prep}() helpers
config: arm-randconfig-001-20251028 (https://download.01.org/0day-ci/archive/20251028/202510281335.UpSLYJG9-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project e1ae12640102fd2b05bc567243580f90acb1135f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251028/202510281335.UpSLYJG9-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510281335.UpSLYJG9-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/clk/at91/clk-peripheral.c:179:7: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((periph->layout->div_mask), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigned short)0, short: (unsigned short)0, unsigned int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, long: (unsigned long)0, unsigned long long: (unsigned long long)0, long long: (unsigned long long)0, default: (periph->layout->div_mask)))' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
     179 |                            field_prep(periph->layout->div_mask, periph->div) |
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:256:32: note: expanded from macro 'field_prep'
     256 |         (__builtin_constant_p(mask) ? FIELD_PREP(mask, val)             \
         |                                       ^~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:115:3: note: expanded from macro 'FIELD_PREP'
     115 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:72:53: note: expanded from macro '__BF_FIELD_CHECK'
      72 |                 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) >     \
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
      73 |                                  __bf_cast_unsigned(_reg, ~0ull),       \
         |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      74 |                                  _pfx "type of reg too small for mask"); \
         |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:597:22: note: expanded from macro 'compiletime_assert'
     597 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:585:23: note: expanded from macro '_compiletime_assert'
     585 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:577:9: note: expanded from macro '__compiletime_assert'
     577 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   1 warning generated.


vim +179 drivers/clk/at91/clk-peripheral.c

6114067e437eb8 Boris Brezillon   2013-10-11  163  
36971566ea7a51 Claudiu Beznea    2021-10-11  164  static int clk_sam9x5_peripheral_set(struct clk_sam9x5_peripheral *periph,
36971566ea7a51 Claudiu Beznea    2021-10-11  165  				     unsigned int status)
6114067e437eb8 Boris Brezillon   2013-10-11  166  {
1bdf02326b71ea Boris Brezillon   2014-09-07  167  	unsigned long flags;
36971566ea7a51 Claudiu Beznea    2021-10-11  168  	unsigned int enable = status ? AT91_PMC_PCR_EN : 0;
6114067e437eb8 Boris Brezillon   2013-10-11  169  
6114067e437eb8 Boris Brezillon   2013-10-11  170  	if (periph->id < PERIPHERAL_ID_MIN)
6114067e437eb8 Boris Brezillon   2013-10-11  171  		return 0;
6114067e437eb8 Boris Brezillon   2013-10-11  172  
1bdf02326b71ea Boris Brezillon   2014-09-07  173  	spin_lock_irqsave(periph->lock, flags);
cb4f4949b1c76f Alexandre Belloni 2019-04-02  174  	regmap_write(periph->regmap, periph->layout->offset,
cb4f4949b1c76f Alexandre Belloni 2019-04-02  175  		     (periph->id & periph->layout->pid_mask));
cb4f4949b1c76f Alexandre Belloni 2019-04-02  176  	regmap_update_bits(periph->regmap, periph->layout->offset,
cb4f4949b1c76f Alexandre Belloni 2019-04-02  177  			   periph->layout->div_mask | periph->layout->cmd |
36971566ea7a51 Claudiu Beznea    2021-10-11  178  			   enable,
cb4f4949b1c76f Alexandre Belloni 2019-04-02 @179  			   field_prep(periph->layout->div_mask, periph->div) |
36971566ea7a51 Claudiu Beznea    2021-10-11  180  			   periph->layout->cmd | enable);
1bdf02326b71ea Boris Brezillon   2014-09-07  181  	spin_unlock_irqrestore(periph->lock, flags);
1bdf02326b71ea Boris Brezillon   2014-09-07  182  
6114067e437eb8 Boris Brezillon   2013-10-11  183  	return 0;
6114067e437eb8 Boris Brezillon   2013-10-11  184  }
6114067e437eb8 Boris Brezillon   2013-10-11  185  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-10-28  6:02 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-27 18:41 [PATCH v5 00/23] Non-const bitfield helpers Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 01/23] clk: at91: pmc: #undef field_{get,prep}() before definition Geert Uytterhoeven
2025-10-27 20:36   ` Alexandre Belloni
2025-10-27 18:41 ` [PATCH v5 02/23] crypto: qat - #undef field_get() before local definition Geert Uytterhoeven
2025-10-30 10:30   ` Giovanni Cabiddu
2025-10-27 18:41 ` [PATCH v5 03/23] EDAC/ie31200: " Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 04/23] gpio: aspeed: #undef field_{get,prep}() " Geert Uytterhoeven
2025-10-28 14:20   ` Bartosz Golaszewski
2025-10-27 18:41 ` [PATCH v5 05/23] iio: dac: ad3530r: #undef field_prep() " Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 06/23] iio: mlx90614: #undef field_{get,prep}() " Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 07/23] pinctrl: ma35: " Geert Uytterhoeven
2025-10-29 14:19   ` 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
2025-10-27 18:41 ` [PATCH v5 08/23] soc: renesas: rz-sysc: #undef field_get() " Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 09/23] ALSA: usb-audio: #undef field_{get,prep}() " Geert Uytterhoeven
2025-10-28 16:13   ` Takashi Iwai
2025-10-27 18:41 ` [PATCH -next v5 10/23] iio: imu: smi330: #undef field_{get,prep}() before definition Geert Uytterhoeven
2025-11-02 10:43   ` 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
2025-10-27 18:41 ` [PATCH v5 11/23] bitfield: Add non-constant field_{prep,get}() helpers Geert Uytterhoeven
2025-10-28  9:15   ` Andy Shevchenko
2025-10-27 18:41 ` [PATCH v5 12/23] clk: at91: Convert to common field_{get,prep}() helpers Geert Uytterhoeven
2025-10-28  6:01   ` kernel test robot [this message]
2025-10-27 18:41 ` [PATCH v5 13/23] crypto: qat - convert to common field_get() helper Geert Uytterhoeven
2025-10-30 10:31   ` Giovanni Cabiddu
2025-10-27 18:41 ` [PATCH v5 14/23] EDAC/ie31200: Convert " Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 15/23] gpio: aspeed: Convert to common field_{get,prep}() helpers Geert Uytterhoeven
2025-10-28  6:37   ` kernel test robot
2025-10-27 18:41 ` [PATCH v5 16/23] iio: dac: Convert to common field_prep() helper Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 17/23] iio: mlx90614: Convert to common field_{get,prep}() helpers Geert Uytterhoeven
2025-10-28  5:59   ` kernel test robot
2025-10-27 18:41 ` [PATCH v5 18/23] pinctrl: ma35: " Geert Uytterhoeven
2025-10-29 14:21   ` Linus Walleij
2025-10-29 14:34     ` Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 19/23] soc: renesas: rz-sysc: Convert to common field_get() helper Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 20/23] ALSA: usb-audio: Convert to common field_{get,prep}() helpers Geert Uytterhoeven
2025-10-28 16:13   ` Takashi Iwai
2025-10-27 18:41 ` [PATCH -next v5 21/23] iio: imu: smi330: " Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 22/23] clk: renesas: Use bitfield helpers Geert Uytterhoeven
2025-10-27 18:41 ` [PATCH v5 23/23] soc: " Geert Uytterhoeven

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=202510281335.UpSLYJG9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=andrew@codeconstruct.com.au \
    --cc=bp@alien8.de \
    --cc=brgl@bgdev.pl \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=cmo@melexis.com \
    --cc=davem@davemloft.net \
    --cc=david.laight.linux@gmail.com \
    --cc=elder@ieee.org \
    --cc=geert+renesas@glider.be \
    --cc=giovanni.cabiddu@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=jbaron@akamai.com \
    --cc=jic23@kernel.org \
    --cc=joel@jms.id.au \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=llvm@lists.linux.dev \
    --cc=mailhol.vincent@wanadoo.fr \
    --cc=mturquette@baylibre.com \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.ferre@microchip.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=perex@perex.cz \
    --cc=sboyd@kernel.org \
    --cc=schung@nuvoton.com \
    --cc=tiwai@suse.com \
    --cc=tony.luck@intel.com \
    --cc=ychuang3@nuvoton.com \
    --cc=yury.norov@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.