* Re: [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions
[not found] <20251029173828.3682-7-david.laight.linux@gmail.com>
@ 2025-11-01 19:35 ` kernel test robot
2025-11-01 20:59 ` kernel test robot
1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2025-11-01 19:35 UTC (permalink / raw)
To: David Laight, Andrew Morton, linux-kernel
Cc: oe-kbuild-all, Linux Memory Management List, David Laight,
u.kleine-koenig, Nicolas Pitre, Oleg Nesterov, Peter Zijlstra,
Biju Das, Borislav Petkov, Dave Hansen, H. Peter Anvin,
Ingo Molnar, Thomas Gleixner, Li RongQing, Yu Kuai,
Khazhismel Kumykov, Jens Axboe, x86
Hi David,
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20251029]
url: https://github.com/intel-lab-lkp/linux/commits/David-Laight/lib-mul_u64_u64_div_u64-rename-parameter-c-to-d/20251030-025633
base: next-20251029
patch link: https://lore.kernel.org/r/20251029173828.3682-7-david.laight.linux%40gmail.com
patch subject: [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions
config: i386-randconfig-052-20251102 (https://download.01.org/0day-ci/archive/20251102/202511020341.TEhkaR65-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251102/202511020341.TEhkaR65-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/202511020341.TEhkaR65-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/math/test_mul_u64_u64_div_u64.c:142:9: warning: "__div64_32" redefined
142 | #define __div64_32 __div64_32
| ^~~~~~~~~~
In file included from include/linux/math.h:6,
from include/linux/math64.h:6,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from lib/math/test_mul_u64_u64_div_u64.c:9:
arch/x86/include/asm/div64.h:78:9: note: this is the location of the previous definition
78 | #define __div64_32
| ^~~~~~~~~~
vim +/__div64_32 +142 lib/math/test_mul_u64_u64_div_u64.c
140
141 /* Compile the generic mul_u64_add_u64_div_u64() code */
> 142 #define __div64_32 __div64_32
143 #define div_s64_rem div_s64_rem
144 #define div64_u64_rem div64_u64_rem
145 #define div64_u64 div64_u64
146 #define div64_s64 div64_s64
147 #define iter_div_u64_rem iter_div_u64_rem
148
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions
[not found] <20251029173828.3682-7-david.laight.linux@gmail.com>
2025-11-01 19:35 ` [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions kernel test robot
@ 2025-11-01 20:59 ` kernel test robot
2025-11-02 10:36 ` David Laight
1 sibling, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-11-01 20:59 UTC (permalink / raw)
To: David Laight, Andrew Morton, linux-kernel
Cc: llvm, oe-kbuild-all, Linux Memory Management List, David Laight,
u.kleine-koenig, Nicolas Pitre, Oleg Nesterov, Peter Zijlstra,
Biju Das, Borislav Petkov, Dave Hansen, H. Peter Anvin,
Ingo Molnar, Thomas Gleixner, Li RongQing, Yu Kuai,
Khazhismel Kumykov, Jens Axboe, x86
Hi David,
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20251029]
url: https://github.com/intel-lab-lkp/linux/commits/David-Laight/lib-mul_u64_u64_div_u64-rename-parameter-c-to-d/20251030-025633
base: next-20251029
patch link: https://lore.kernel.org/r/20251029173828.3682-7-david.laight.linux%40gmail.com
patch subject: [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions
config: i386-buildonly-randconfig-004-20251102 (https://download.01.org/0day-ci/archive/20251102/202511020421.ZZPBAIIw-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251102/202511020421.ZZPBAIIw-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/202511020421.ZZPBAIIw-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/math/test_mul_u64_u64_div_u64.c:142:9: warning: '__div64_32' macro redefined [-Wmacro-redefined]
142 | #define __div64_32 __div64_32
| ^
arch/x86/include/asm/div64.h:78:9: note: previous definition is here
78 | #define __div64_32
| ^
1 warning generated.
vim +/__div64_32 +142 lib/math/test_mul_u64_u64_div_u64.c
140
141 /* Compile the generic mul_u64_add_u64_div_u64() code */
> 142 #define __div64_32 __div64_32
143 #define div_s64_rem div_s64_rem
144 #define div64_u64_rem div64_u64_rem
145 #define div64_u64 div64_u64
146 #define div64_s64 div64_s64
147 #define iter_div_u64_rem iter_div_u64_rem
148
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions
2025-11-01 20:59 ` kernel test robot
@ 2025-11-02 10:36 ` David Laight
0 siblings, 0 replies; 3+ messages in thread
From: David Laight @ 2025-11-02 10:36 UTC (permalink / raw)
To: kernel test robot
Cc: Andrew Morton, linux-kernel, llvm, oe-kbuild-all,
Linux Memory Management List, u.kleine-koenig, Nicolas Pitre,
Oleg Nesterov, Peter Zijlstra, Biju Das, Borislav Petkov,
Dave Hansen, H. Peter Anvin, Ingo Molnar, Thomas Gleixner,
Li RongQing, Yu Kuai, Khazhismel Kumykov, Jens Axboe, x86
On Sun, 2 Nov 2025 04:59:10 +0800
kernel test robot <lkp@intel.com> wrote:
> Hi David,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on next-20251029]
>
> url: https://github.com/intel-lab-lkp/linux/commits/David-Laight/lib-mul_u64_u64_div_u64-rename-parameter-c-to-d/20251030-025633
> base: next-20251029
> patch link: https://lore.kernel.org/r/20251029173828.3682-7-david.laight.linux%40gmail.com
> patch subject: [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions
> config: i386-buildonly-randconfig-004-20251102 (https://download.01.org/0day-ci/archive/20251102/202511020421.ZZPBAIIw-lkp@intel.com/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251102/202511020421.ZZPBAIIw-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/202511020421.ZZPBAIIw-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> lib/math/test_mul_u64_u64_div_u64.c:142:9: warning: '__div64_32' macro redefined [-Wmacro-redefined]
> 142 | #define __div64_32 __div64_32
> | ^
> arch/x86/include/asm/div64.h:78:9: note: previous definition is here
> 78 | #define __div64_32
That is preceded by a comment that says it can't happen for x86-64.
I think it would be better as '#define __div64_32 @@@' so that you get a compile
error.
But that isn't part of this change,
> | ^
> 1 warning generated.
>
>
> vim +/__div64_32 +142 lib/math/test_mul_u64_u64_div_u64.c
>
> 140
> 141 /* Compile the generic mul_u64_add_u64_div_u64() code */
> > 142 #define __div64_32 __div64_32
It needs a preceding #undef
Although I'm not sure why a normal build doesn't show it.
Looks like I'll need to do a v5 :-(
David
> 143 #define div_s64_rem div_s64_rem
> 144 #define div64_u64_rem div64_u64_rem
> 145 #define div64_u64 div64_u64
> 146 #define div64_s64 div64_s64
> 147 #define iter_div_u64_rem iter_div_u64_rem
> 148
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-11-02 10:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20251029173828.3682-7-david.laight.linux@gmail.com>
2025-11-01 19:35 ` [PATCH v4 next 6/9] lib: test_mul_u64_u64_div_u64: Test both generic and arch versions kernel test robot
2025-11-01 20:59 ` kernel test robot
2025-11-02 10:36 ` David Laight
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox