public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* [REGRESSION] next/master: (build) in expansion of macro ‘do_div’ in fs/nfs/flexfilelayout/flexfilela...
@ 2025-09-22 11:59 KernelCI bot
  0 siblings, 0 replies; 2+ messages in thread
From: KernelCI bot @ 2025-09-22 11:59 UTC (permalink / raw)
  To: kernelci-results; +Cc: regressions, gus, linux-next





Hello,

New build issue found on next/master:

---
 in expansion of macro ‘do_div’ in fs/nfs/flexfilelayout/flexfilelayout.o (fs/nfs/flexfilelayout/flexfilelayout.c) [logspec:kbuild,kbuild.compiler.note]
---

- dashboard: https://d.kernelci.org/i/maestro:2e882f7ffaba317e489e0a937b7ab5ce4ccd25b3
- giturl: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
- commit HEAD:  bf2602a3cb2381fb1a04bf1c39a290518d2538d1
- tags: next-20250922


Log excerpt:
=====================================================
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 ./include/linux/array_size.h:5,
                 from ./include/linux/kernel.h:16:
./include/asm-generic/div64.h:195:32: warning: right shift count >= width of type [-Wshift-count-overflow]
  195 |         } else if (likely(((n) >> 32) == 0)) {          \
      |                                ^~
./include/linux/compiler.h:76:45: note: in definition of macro ‘likely’
   76 | # define likely(x)      __builtin_expect(!!(x), 1)
      |                                             ^
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);
      |         ^~~~~~
./include/asm-generic/div64.h:199:36: error: passing argument 1 of ‘__div64_32’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  199 |                 __rem = __div64_32(&(n), __base);       \
      |                                    ^~~~
      |                                    |
      |                                    u32 * {aka unsigned int *}
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);
      |         ^~~~~~
./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)
      |                                   ~~~~~~~~~~^
fs/nfs/flexfilelayout/flexfilelayout.c: In function ‘calc_dss_id_from_commit’:
./include/asm-generic/div64.h:183:35: warning: comparison of distinct pointer types lacks a cast
  183 |         (void)(((typeof((n)) *)0) == ((uint64_t *)0));  \
      |                                   ^~
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);
      |                ^~~~~~
./include/asm-generic/div64.h:195:32: warning: right shift count >= width of type [-Wshift-count-overflow]
  195 |         } else if (likely(((n) >> 32) == 0)) {          \
      |                                ^~
./include/linux/compiler.h:76:45: note: in definition of macro ‘likely’
   76 | # define likely(x)      __builtin_expect(!!(x), 1)
      |                                             ^
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);
      |                ^~~~~~
./include/asm-generic/div64.h:199:36: error: passing argument 1 of ‘__div64_32’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  199 |                 __rem = __div64_32(&(n), __base);       \
      |                                    ^~~~
      |                                    |
      |                                    u32 * {aka unsigned int *}
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);
      |                ^~~~~~
./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)
      |                                   ~~~~~~~~~~^
  CC      lib/zstd/decompress/zstd_decompress.o
  CC      fs/lockd/clntxdr.o
  AR      drivers/pci/msi/built-in.a
  CC      net/ipv6/ip6_input.o
  CC      net/ethtool/pause.o
  AR      drivers/video/console/built-in.a
  CC      drivers/video/backlight/as3711_bl.o
  CC      net/xfrm/xfrm_sysctl.o
  CC      drivers/pci/pcie/aspm.o
  AR      drivers/pinctrl/sunplus/built-in.a
  CC      drivers/pinctrl/sunxi/pinctrl-sunxi.o
  CC      fs/fat/misc.o
  CC      drivers/video/backlight/backlight.o
  CC      lib/zstd/decompress/zstd_decompress_block.o
  CC      fs/lockd/host.o
cc1: some warnings being treated as errors
  CC      net/ethtool/eee.o

=====================================================


# Builds where the incident occurred:

## multi_v7_defconfig on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1305075b320799d36f18b

## multi_v7_defconfig+CONFIG_CPU_BIG_ENDIAN=y on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304375b320799d36f17f

## multi_v7_defconfig+CONFIG_EFI=y+CONFIG_ARM_LPAE=y on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304a75b320799d36f185

## multi_v7_defconfig+CONFIG_SMP=n on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304675b320799d36f182

## multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304d75b320799d36f188

## multi_v7_defconfig+kselftest on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1305375b320799d36f18e

## multi_v7_defconfig+preempt_rt on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1305775b320799d36f191


#kernelci issue maestro:2e882f7ffaba317e489e0a937b7ab5ce4ccd25b3

Reported-by: kernelci.org bot <bot@kernelci•org>

--
This is an experimental report format. Please send feedback in!
Talk to us at kernelci@lists•linux.dev

Made with love by the KernelCI team - https://kernelci.org

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

* [REGRESSION] next/master: (build) in expansion of macro ‘do_div’ in fs/nfs/flexfilelayout/flexfilela...
@ 2025-09-22 11:59 KernelCI bot
  0 siblings, 0 replies; 2+ messages in thread
From: KernelCI bot @ 2025-09-22 11:59 UTC (permalink / raw)
  To: kernelci-results; +Cc: regressions, gus, linux-next





Hello,

New build issue found on next/master:

---
 in expansion of macro ‘do_div’ in fs/nfs/flexfilelayout/flexfilelayout.o (fs/nfs/flexfilelayout/flexfilelayout.c) [logspec:kbuild,kbuild.compiler.note]
---

- dashboard: https://d.kernelci.org/i/maestro:2e882f7ffaba317e489e0a937b7ab5ce4ccd25b3
- giturl: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
- commit HEAD:  bf2602a3cb2381fb1a04bf1c39a290518d2538d1
- tags: next-20250922


Log excerpt:
=====================================================
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 ./include/linux/array_size.h:5,
                 from ./include/linux/kernel.h:16:
./include/asm-generic/div64.h:195:32: warning: right shift count >= width of type [-Wshift-count-overflow]
  195 |         } else if (likely(((n) >> 32) == 0)) {          \
      |                                ^~
./include/linux/compiler.h:76:45: note: in definition of macro ‘likely’
   76 | # define likely(x)      __builtin_expect(!!(x), 1)
      |                                             ^
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);
      |         ^~~~~~
./include/asm-generic/div64.h:199:36: error: passing argument 1 of ‘__div64_32’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  199 |                 __rem = __div64_32(&(n), __base);       \
      |                                    ^~~~
      |                                    |
      |                                    u32 * {aka unsigned int *}
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);
      |         ^~~~~~
./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)
      |                                   ~~~~~~~~~~^
fs/nfs/flexfilelayout/flexfilelayout.c: In function ‘calc_dss_id_from_commit’:
./include/asm-generic/div64.h:183:35: warning: comparison of distinct pointer types lacks a cast
  183 |         (void)(((typeof((n)) *)0) == ((uint64_t *)0));  \
      |                                   ^~
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);
      |                ^~~~~~
./include/asm-generic/div64.h:195:32: warning: right shift count >= width of type [-Wshift-count-overflow]
  195 |         } else if (likely(((n) >> 32) == 0)) {          \
      |                                ^~
./include/linux/compiler.h:76:45: note: in definition of macro ‘likely’
   76 | # define likely(x)      __builtin_expect(!!(x), 1)
      |                                             ^
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);
      |                ^~~~~~
./include/asm-generic/div64.h:199:36: error: passing argument 1 of ‘__div64_32’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  199 |                 __rem = __div64_32(&(n), __base);       \
      |                                    ^~~~
      |                                    |
      |                                    u32 * {aka unsigned int *}
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);
      |                ^~~~~~
./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)
      |                                   ~~~~~~~~~~^
  CC      lib/zstd/decompress/zstd_decompress.o
  CC      fs/lockd/clntxdr.o
  AR      drivers/pci/msi/built-in.a
  CC      net/ipv6/ip6_input.o
  CC      net/ethtool/pause.o
  AR      drivers/video/console/built-in.a
  CC      drivers/video/backlight/as3711_bl.o
  CC      net/xfrm/xfrm_sysctl.o
  CC      drivers/pci/pcie/aspm.o
  AR      drivers/pinctrl/sunplus/built-in.a
  CC      drivers/pinctrl/sunxi/pinctrl-sunxi.o
  CC      fs/fat/misc.o
  CC      drivers/video/backlight/backlight.o
  CC      lib/zstd/decompress/zstd_decompress_block.o
  CC      fs/lockd/host.o
cc1: some warnings being treated as errors
  CC      net/ethtool/eee.o

=====================================================


# Builds where the incident occurred:

## multi_v7_defconfig on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1305075b320799d36f18b

## multi_v7_defconfig+CONFIG_CPU_BIG_ENDIAN=y on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304375b320799d36f17f

## multi_v7_defconfig+CONFIG_EFI=y+CONFIG_ARM_LPAE=y on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304a75b320799d36f185

## multi_v7_defconfig+CONFIG_SMP=n on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304675b320799d36f182

## multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1304d75b320799d36f188

## multi_v7_defconfig+kselftest on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1305375b320799d36f18e

## multi_v7_defconfig+preempt_rt on (arm):
- compiler: gcc-12
- dashboard: https://d.kernelci.org/build/maestro:68d1305775b320799d36f191


#kernelci issue maestro:2e882f7ffaba317e489e0a937b7ab5ce4ccd25b3

Reported-by: kernelci.org bot <bot@kernelci•org>

--
This is an experimental report format. Please send feedback in!
Talk to us at kernelci@lists•linux.dev

Made with love by the KernelCI team - https://kernelci.org

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

end of thread, other threads:[~2025-09-22 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-22 11:59 [REGRESSION] next/master: (build) in expansion of macro ‘do_div’ in fs/nfs/flexfilelayout/flexfilela KernelCI bot
  -- strict thread matches above, loose matches on Subject: below --
2025-09-22 11:59 KernelCI bot

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