Linux NFS development
 help / color / mirror / Atom feed
* kernel compile error in: fs/nfsd/nfs4state.c (linux-5.15.209.tar.xz)
@ 2026-12-03 16:42 daffyduck via Bugspray Bot
  2026-12-03 16:42 ` daffyduck via Bugspray Bot
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: daffyduck via Bugspray Bot @ 2026-12-03 16:42 UTC (permalink / raw)
  To: linux-nfs, anna, cel, jlayton, trondmy

daffyduck added an attachment on Kernel.org Bugzilla:

Created attachment 310288
".config" file for Linux "make"

Note:  appears to be the same issue as in another kernel series, 2025:
     https://bugzilla.kernel.org/show_bug.cgi?id=220745

- "linux-5.15.209.tar.xz"  fails to compile (compile error)

- ".config" file attached; it is an Ubuntu config with debian keys removed:
    commented out orig: CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"
    commented out orig: CONFIG_SYSTEM_REVOCATION_KEYS="debian/canonical-revoked-certs.pem"


How to reproduce:

###############  (make of linux-5.15.209.tar.xz)   x86_64

>gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0

>make  clean
>make  mrproper
### copy in the attached .config
>make

warning:
  CC [M]  drivers/hid/hid-picolcd_cir.o
drivers/vhost/scsi.c: In function ‘vhost_scsi_flush’:
drivers/vhost/scsi.c:1450:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 1450 | }
      | ^


In file included from <command-line>:
In function ‘nfsd4_get_drc_mem’,
    inlined from ‘check_forechannel_attrs’ at fs/nfsd/nfs4state.c:3542:16,
    inlined from ‘nfsd4_create_session’ at fs/nfsd/nfs4state.c:3615:11:
././include/linux/compiler_types.h:333:38: error: call to ‘__compiletime_assert_940’ declared with attribute error: clamp() low limit slotsize greater than high limit total_avail/scale_factor
  333 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |                                      ^
././include/linux/compiler_types.h:314:4: note: in definition of macro ‘__compiletime_assert’
  314 |    prefix ## suffix();    \
      |    ^~~~~~
././include/linux/compiler_types.h:333:2: note: in expansion of macro ‘_compiletime_assert’
  333 |  _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:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  188 |  BUILD_BUG_ON_MSG(statically_true(ulo > uhi),    \
      |  ^~~~~~~~~~~~~~~~
./include/linux/minmax.h:195:2: 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)
      |                                    ^~~~~~~~~~~~~~~
fs/nfsd/nfs4state.c:1826:10: note: in expansion of macro ‘clamp_t’
 1826 |  avail = clamp_t(unsigned long, avail, slotsize,
      |          ^~~~~~~
make[2]: *** [scripts/Makefile.build:289: fs/nfsd/nfs4state.o] Error 1
make[1]: *** [scripts/Makefile.build:552: fs/nfsd] Error 2
make: *** [Makefile:1924: fs] Error 2

File: .config-removed-Debian-keys (text/plain)
Size: 254.13 KiB
Link: https://bugzilla.kernel.org/attachment.cgi?id=310288
---
".config" file for Linux "make"

You can reply to this message to join the discussion.
-- 
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-03 16:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 16:42 kernel compile error in: fs/nfsd/nfs4state.c (linux-5.15.209.tar.xz) daffyduck via Bugspray Bot
2026-12-03 16:42 ` daffyduck via Bugspray Bot
2026-12-03 16:42 ` daffyduck via Bugspray Bot
2026-12-03 16:42 ` daffyduck via Bugspray Bot
2026-12-03 16:42 ` Chuck Lever via Bugspray Bot
2026-12-03 16:42   ` daffyduck via Bugspray Bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox