lkml.org 
[lkml]   [2022]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[chunkuang-hu:pagecaller 1/2] mm/page_alloc.c:193:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git pagecaller
head: de987a7312cd3e22d7d6985225db9839c3bd9818
commit: c879bb3e3a54d1e18415030a68f327dc4cf17363 [1/2] mm: Add pagecaller base trace point
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220712/202207120805.VMoxhHK2-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/commit/?id=c879bb3e3a54d1e18415030a68f327dc4cf17363
git remote add chunkuang-hu https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git
git fetch --no-tags chunkuang-hu pagecaller
git checkout c879bb3e3a54d1e18415030a68f327dc4cf17363
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

mm/page_alloc.c: In function 'pagecaller_get':
>> mm/page_alloc.c:193:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
193 | #define PAGECALLER_RESERVED 0xffffffffffffffff
| ^~~~~~~~~~~~~~~~~~
mm/page_alloc.c:939:24: note: in expansion of macro 'PAGECALLER_RESERVED'
939 | return PAGECALLER_RESERVED;
| ^~~~~~~~~~~~~~~~~~~
>> mm/page_alloc.c:193:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
193 | #define PAGECALLER_RESERVED 0xffffffffffffffff
| ^~~~~~~~~~~~~~~~~~
mm/page_alloc.c:944:16: note: in expansion of macro 'PAGECALLER_RESERVED'
944 | return PAGECALLER_RESERVED;
| ^~~~~~~~~~~~~~~~~~~
mm/page_alloc.c: In function 'free_area_init_node':
>> mm/page_alloc.c:193:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
193 | #define PAGECALLER_RESERVED 0xffffffffffffffff
| ^~~~~~~~~~~~~~~~~~
mm/page_alloc.c:7798:56: note: in expansion of macro 'PAGECALLER_RESERVED'
7798 | pagecaller_set(0, end_pfn - start_pfn, PAGECALLER_RESERVED);
| ^~~~~~~~~~~~~~~~~~~


vim +193 mm/page_alloc.c

190
191 #ifdef CONFIG_PAGECALLER
192 #define PAGECALLER_FREE 0
> 193 #define PAGECALLER_RESERVED 0xffffffffffffffff
194

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-07-12 03:05    [W:0.099 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site