From: Mark Brown <broonie@kernel.org>
To: Anna Schumaker <anna@kernel.org>,
Trond Myklebust <trondmy@gmail.com>,
NFS Mailing List <linux-nfs@vger.kernel.org>,
Jonathan Curley <jcurley@purestorage.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: build failure after merge of the nfs-anna tree
Date: Thu, 18 Sep 2025 13:35:41 +0100 [thread overview]
Message-ID: <aMv8ncNIMJw58v4O@sirena.org.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 5211 bytes --]
Hi all,
After merging the nfs-anna tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
In file included from /tmp/next/build/arch/arm/include/asm/div64.h:114,
from /tmp/next/build/include/linux/math.h:6,
from /tmp/next/build/include/linux/kernel.h:27,
from /tmp/next/build/include/linux/uio.h:8,
from /tmp/next/build/include/linux/socket.h:8,
from /tmp/next/build/include/uapi/linux/in.h:25,
from /tmp/next/build/include/linux/in.h:19,
from /tmp/next/build/include/linux/nfs_fs.h:22,
from /tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c:10:
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c: In function 'calc_mirror_idx_from_commit':
/tmp/next/build/include/asm-generic/div64.h:183:35: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
183 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
| ^~
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c:685:9: note: in expansion of macro 'do_div'
685 | do_div(mirror_idx, flseg->mirror_array[0]->dss_count);
| ^~~~~~
In file included from /tmp/next/build/include/linux/array_size.h:5,
from /tmp/next/build/include/linux/kernel.h:16:
/tmp/next/build/include/asm-generic/div64.h:195:32: warning: right shift count >= width of type [-Wshift-count-overflow]
195 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
/tmp/next/build/include/linux/compiler.h:76:45: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c:685:9: note: in expansion of macro 'do_div'
685 | do_div(mirror_idx, flseg->mirror_array[0]->dss_count);
| ^~~~~~
/tmp/next/build/include/asm-generic/div64.h:199:36: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Wincompatible-pointer-types]
199 | __rem = __div64_32(&(n), __base); \
| ^~~~
| |
| u32 * {aka unsigned int *}
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c:685:9: note: in expansion of macro 'do_div'
685 | do_div(mirror_idx, flseg->mirror_array[0]->dss_count);
| ^~~~~~
/tmp/next/build/arch/arm/include/asm/div64.h:24:45: note: expected 'uint64_t *' {aka 'long long unsigned int *'} but argument is of type 'u32 *' {aka 'unsigned int *'}
24 | static inline uint32_t __div64_32(uint64_t *n, uint32_t base)
| ~~~~~~~~~~^
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c: In function 'calc_dss_id_from_commit':
/tmp/next/build/include/asm-generic/div64.h:183:35: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
183 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
| ^~
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c:696:16: note: in expansion of macro 'do_div'
696 | return do_div(mirror_idx, flseg->mirror_array[0]->dss_count);
| ^~~~~~
/tmp/next/build/include/asm-generic/div64.h:195:32: warning: right shift count >= width of type [-Wshift-count-overflow]
195 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
/tmp/next/build/include/linux/compiler.h:76:45: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c:696:16: note: in expansion of macro 'do_div'
696 | return do_div(mirror_idx, flseg->mirror_array[0]->dss_count);
| ^~~~~~
/tmp/next/build/include/asm-generic/div64.h:199:36: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Wincompatible-pointer-types]
199 | __rem = __div64_32(&(n), __base); \
| ^~~~
| |
| u32 * {aka unsigned int *}
/tmp/next/build/fs/nfs/flexfilelayout/flexfilelayout.c:696:16: note: in expansion of macro 'do_div'
696 | return do_div(mirror_idx, flseg->mirror_array[0]->dss_count);
| ^~~~~~
/tmp/next/build/arch/arm/include/asm/div64.h:24:45: note: expected 'uint64_t *' {aka 'long long unsigned int *'} but argument is of type 'u32 *' {aka 'unsigned int *'}
24 | static inline uint32_t __div64_32(uint64_t *n, uint32_t base)
| ~~~~~~~~~~^
make[6]: *** [/tmp/next/build/scripts/Makefile.build:287: fs/nfs/flexfilelayout/flexfilelayout.o] Error 1
Caused by commit
67ee714244dfb ("NFSv4/flexfiles: Commit path updates for striped layouts")
I have used the tree from yesterday instead.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2025-09-18 12:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 12:35 Mark Brown [this message]
2025-09-23 13:29 ` linux-next: build failure after merge of the nfs-anna tree Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2018-12-16 23:16 Stephen Rothwell
2018-12-17 11:18 ` Rasmus Villemoes
2018-12-17 15:34 ` Anna Schumaker
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=aMv8ncNIMJw58v4O@sirena.org.uk \
--to=broonie@kernel.org \
--cc=anna@kernel.org \
--cc=jcurley@purestorage.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trondmy@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 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).