[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2025101704-rumble-chatroom-60b5@gregkh>
Date: Fri, 17 Oct 2025 17:03:02 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Eliav Farber <farbere@...zon.com>
Cc: stable@...r.kernel.org, linux@...linux.org.uk, jdike@...toit.com,
richard@....at, anton.ivanov@...bridgegreys.com,
dave.hansen@...ux.intel.com, luto@...nel.org, peterz@...radead.org,
tglx@...utronix.de, mingo@...hat.com, bp@...en8.de, x86@...nel.org,
hpa@...or.com, tony.luck@...el.com, qiuxu.zhuo@...el.com,
mchehab@...nel.org, james.morse@....com, rric@...nel.org,
harry.wentland@....com, sunpeng.li@....com,
alexander.deucher@....com, christian.koenig@....com,
airlied@...ux.ie, daniel@...ll.ch, evan.quan@....com,
james.qian.wang@....com, liviu.dudau@....com,
mihail.atanassov@....com, brian.starkey@....com,
maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
tzimmermann@...e.de, robdclark@...il.com, sean@...rly.run,
jdelvare@...e.com, linux@...ck-us.net, fery@...ress.com,
dmitry.torokhov@...il.com, agk@...hat.com, snitzer@...hat.com,
dm-devel@...hat.com, rajur@...lsio.com, davem@...emloft.net,
kuba@...nel.org, peppe.cavallaro@...com, alexandre.torgue@...com,
joabreu@...opsys.com, mcoquelin.stm32@...il.com, malattia@...ux.it,
hdegoede@...hat.com, mgross@...ux.intel.com,
intel-linux-scu@...el.com, artur.paszkiewicz@...el.com,
jejb@...ux.ibm.com, martin.petersen@...cle.com,
sakari.ailus@...ux.intel.com, clm@...com, josef@...icpanda.com,
dsterba@...e.com, xiang@...nel.org, chao@...nel.org, jack@...e.com,
tytso@....edu, adilger.kernel@...ger.ca, dushistov@...l.ru,
luc.vanoostenryck@...il.com, rostedt@...dmis.org, pmladek@...e.com,
sergey.senozhatsky@...il.com, andriy.shevchenko@...ux.intel.com,
linux@...musvillemoes.dk, minchan@...nel.org, ngupta@...are.org,
akpm@...ux-foundation.org, kuznet@....inr.ac.ru,
yoshfuji@...ux-ipv6.org, pablo@...filter.org, kadlec@...filter.org,
fw@...len.de, jmaloy@...hat.com, ying.xue@...driver.com,
willy@...radead.org, sashal@...nel.org, ruanjinjie@...wei.com,
David.Laight@...lab.com, herve.codina@...tlin.com, Jason@...c4.com,
keescook@...omium.org, kbusch@...nel.org, nathan@...nel.org,
bvanassche@....org, ndesaulniers@...gle.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-um@...ts.infradead.org, linux-edac@...r.kernel.org,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-arm-msm@...r.kernel.org, freedreno@...ts.freedesktop.org,
linux-hwmon@...r.kernel.org, linux-input@...r.kernel.org,
linux-media@...r.kernel.org, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
platform-driver-x86@...r.kernel.org, linux-scsi@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-btrfs@...r.kernel.org,
linux-erofs@...ts.ozlabs.org, linux-ext4@...r.kernel.org,
linux-sparse@...r.kernel.org, linux-mm@...ck.org,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
tipc-discussion@...ts.sourceforge.net
Subject: Re: [PATCH v2 00/27 5.10.y] Backport minmax.h updates from v6.17-rc7
On Fri, Oct 17, 2025 at 09:04:52AM +0000, Eliav Farber wrote:
> This series backports 27 patches to update minmax.h in the 5.10.y
> branch, aligning it with v6.17-rc7.
>
> The ultimate goal is to synchronize all long-term branches so that they
> include the full set of minmax.h changes.
>
> - 6.12.y has already been backported; the changes are included in
> v6.12.49.
> - 6.6.y has already been backported; the changes are included in
> v6.6.109.
> - 6.1.y has already been backported; the changes are currently in the
> 6.1-stable tree.
> - 5.15.y has already been backported; the changes are currently in the
> 5.15-stable tree.
With this series applied, on an arm64 server, building 'allmodconfig', I
get the following build error.
Oddly I don't see it on my x86 server, perhaps due to different compiler
versions?
Any ideas?
thanks,
greg k-h
------------------------
In function ‘rt2800_txpower_to_dev’,
inlined from ‘rt2800_config_channel’ at ../drivers/net/wireless/ralink/rt2x00/rt2800lib.c:4022:25:
./../include/linux/compiler_types.h:309:45: error: call to ‘__compiletime_assert_1168’ declared with attribute error: clamp() low limit -7 greater than high limit 15
309 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
./../include/linux/compiler_types.h:290:25: note: in definition of macro ‘__compiletime_assert’
290 | prefix ## suffix(); \
| ^~~~~~
./../include/linux/compiler_types.h:309:9: note: in expansion of macro ‘_compiletime_assert’
309 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
../include/linux/minmax.h:188:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
188 | BUILD_BUG_ON_MSG(statically_true(ulo > uhi), \
| ^~~~~~~~~~~~~~~~
../include/linux/minmax.h:195:9: note: in expansion of macro ‘__clamp_once’
195 | __clamp_once(type, val, lo, hi, __UNIQUE_ID(v_), __UNIQUE_ID(l_), __UNIQUE_ID(h_))
| ^~~~~~~~~~~~
../include/linux/minmax.h:218:36: note: in expansion of macro ‘__careful_clamp’
218 | #define clamp_t(type, val, lo, hi) __careful_clamp(type, val, lo, hi)
| ^~~~~~~~~~~~~~~
../drivers/net/wireless/ralink/rt2x00/rt2800lib.c:3980:24: note: in expansion of macro ‘clamp_t’
3980 | return clamp_t(char, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER);
| ^~~~~~~
In function ‘rt2800_txpower_to_dev’,
inlined from ‘rt2800_config_channel’ at ../drivers/net/wireless/ralink/rt2x00/rt2800lib.c:4024:25:
./../include/linux/compiler_types.h:309:45: error: call to ‘__compiletime_assert_1168’ declared with attribute error: clamp() low limit -7 greater than high limit 15
309 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
./../include/linux/compiler_types.h:290:25: note: in definition of macro ‘__compiletime_assert’
290 | prefix ## suffix(); \
| ^~~~~~
./../include/linux/compiler_types.h:309:9: note: in expansion of macro ‘_compiletime_assert’
309 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
../include/linux/minmax.h:188:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
188 | BUILD_BUG_ON_MSG(statically_true(ulo > uhi), \
| ^~~~~~~~~~~~~~~~
../include/linux/minmax.h:195:9: note: in expansion of macro ‘__clamp_once’
195 | __clamp_once(type, val, lo, hi, __UNIQUE_ID(v_), __UNIQUE_ID(l_), __UNIQUE_ID(h_))
| ^~~~~~~~~~~~
../include/linux/minmax.h:218:36: note: in expansion of macro ‘__careful_clamp’
218 | #define clamp_t(type, val, lo, hi) __careful_clamp(type, val, lo, hi)
| ^~~~~~~~~~~~~~~
../drivers/net/wireless/ralink/rt2x00/rt2800lib.c:3980:24: note: in expansion of macro ‘clamp_t’
3980 | return clamp_t(char, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER);
| ^~~~~~~
In function ‘rt2800_txpower_to_dev’,
inlined from ‘rt2800_config_channel’ at ../drivers/net/wireless/ralink/rt2x00/rt2800lib.c:4028:4:
./../include/linux/compiler_types.h:309:45: error: call to ‘__compiletime_assert_1168’ declared with attribute error: clamp() low limit -7 greater than high limit 15
309 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
./../include/linux/compiler_types.h:290:25: note: in definition of macro ‘__compiletime_assert’
290 | prefix ## suffix(); \
| ^~~~~~
./../include/linux/compiler_types.h:309:9: note: in expansion of macro ‘_compiletime_assert’
309 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
../include/linux/minmax.h:188:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
188 | BUILD_BUG_ON_MSG(statically_true(ulo > uhi), \
| ^~~~~~~~~~~~~~~~
../include/linux/minmax.h:195:9: note: in expansion of macro ‘__clamp_once’
195 | __clamp_once(type, val, lo, hi, __UNIQUE_ID(v_), __UNIQUE_ID(l_), __UNIQUE_ID(h_))
| ^~~~~~~~~~~~
../include/linux/minmax.h:218:36: note: in expansion of macro ‘__careful_clamp’
218 | #define clamp_t(type, val, lo, hi) __careful_clamp(type, val, lo, hi)
| ^~~~~~~~~~~~~~~
../drivers/net/wireless/ralink/rt2x00/rt2800lib.c:3980:24: note: in expansion of macro ‘clamp_t’
3980 | return clamp_t(char, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER);
| ^~~~~~~
make[6]: *** [../scripts/Makefile.build:286: drivers/net/wireless/ralink/rt2x00/rt2800lib.o] Error 1
make[5]: *** [../scripts/Makefile.build:503: drivers/net/wireless/ralink/rt2x00] Error 2
make[4]: *** [../scripts/Makefile.build:503: drivers/net/wireless/ralink] Error 2
make[4]: *** Waiting for unfinished jobs....
Powered by blists - more mailing lists