* [sj:damon/next 12/59] include/vdso/limits.h:13:25: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551615' to '4294967295'
@ 2024-11-23 6:28 kernel test robot
2024-11-23 15:47 ` SeongJae Park
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-11-23 6:28 UTC (permalink / raw)
To: SeongJae Park; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
head: 78907e9aaa2afc17557ccada5eeafa2f4423ddcc
commit: 6a0ed0a7aac349150628bda45521200cb75006c2 [12/59] samples/damon/prcl: implement schemes setup
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20241123/202411231420.di7hRYuZ-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241123/202411231420.di7hRYuZ-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/202411231420.di7hRYuZ-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/limits.h:7,
from include/linux/kernel.h:17,
from include/linux/cpumask.h:11,
from arch/s390/include/asm/processor.h:31,
from include/linux/sched.h:13,
from include/linux/cgroup.h:12,
from include/linux/memcontrol.h:13,
from include/linux/damon.h:11,
from samples/damon/prcl.c:9:
samples/damon/prcl.c: In function 'damon_sample_prcl_start':
>> include/vdso/limits.h:13:25: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
13 | #define ULONG_MAX (~0UL)
| ^
samples/damon/prcl.c:86:43: note: in expansion of macro 'ULONG_MAX'
86 | .max_age_region = ULONG_MAX},
| ^~~~~~~~~
vim +13 include/vdso/limits.h
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 4
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 5 #define USHRT_MAX ((unsigned short)~0U)
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 6 #define SHRT_MAX ((short)(USHRT_MAX >> 1))
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 7 #define SHRT_MIN ((short)(-SHRT_MAX - 1))
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 8 #define INT_MAX ((int)(~0U >> 1))
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 9 #define INT_MIN (-INT_MAX - 1)
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 10 #define UINT_MAX (~0U)
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 11 #define LONG_MAX ((long)(~0UL >> 1))
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 12 #define LONG_MIN (-LONG_MAX - 1)
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 @13 #define ULONG_MAX (~0UL)
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 14 #define LLONG_MAX ((long long)(~0ULL >> 1))
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 15 #define LLONG_MIN (-LLONG_MAX - 1)
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 16 #define ULLONG_MAX (~0ULL)
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 17 #define UINTPTR_MAX ULONG_MAX
3e0e9f8c6e3ca9 Vincenzo Frascino 2020-03-20 18
:::::: The code at line 13 was first introduced by commit
:::::: 3e0e9f8c6e3ca92154a74edc23a8872da921d2b6 linux/limits.h: Extract common header for vDSO
:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sj:damon/next 12/59] include/vdso/limits.h:13:25: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551615' to '4294967295'
2024-11-23 6:28 [sj:damon/next 12/59] include/vdso/limits.h:13:25: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551615' to '4294967295' kernel test robot
@ 2024-11-23 15:47 ` SeongJae Park
0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2024-11-23 15:47 UTC (permalink / raw)
To: kernel test robot; +Cc: SeongJae Park, oe-kbuild-all, damon
On Sat, 23 Nov 2024 14:28:19 +0800 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
> head: 78907e9aaa2afc17557ccada5eeafa2f4423ddcc
> commit: 6a0ed0a7aac349150628bda45521200cb75006c2 [12/59] samples/damon/prcl: implement schemes setup
> config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20241123/202411231420.di7hRYuZ-lkp@intel.com/config)
> compiler: s390-linux-gcc (GCC) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241123/202411231420.di7hRYuZ-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/202411231420.di7hRYuZ-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> In file included from include/linux/limits.h:7,
> from include/linux/kernel.h:17,
> from include/linux/cpumask.h:11,
> from arch/s390/include/asm/processor.h:31,
> from include/linux/sched.h:13,
> from include/linux/cgroup.h:12,
> from include/linux/memcontrol.h:13,
> from include/linux/damon.h:11,
> from samples/damon/prcl.c:9:
> samples/damon/prcl.c: In function 'damon_sample_prcl_start':
> >> include/vdso/limits.h:13:25: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
> 13 | #define ULONG_MAX (~0UL)
> | ^
> samples/damon/prcl.c:86:43: note: in expansion of macro 'ULONG_MAX'
> 86 | .max_age_region = ULONG_MAX},
> | ^~~~~~~~~
Thank you for this report! I replied to same report:
https://lore.kernel.org/20241123154433.52687-1-sj@kernel.org Please refer to
the thread.
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-23 15:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-23 6:28 [sj:damon/next 12/59] include/vdso/limits.h:13:25: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551615' to '4294967295' kernel test robot
2024-11-23 15:47 ` SeongJae Park
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.