tree: https://github.com/rgushchin/linux.git fix_stock_sync head: 77c1d66e244190589ac167eacbd3df0d4a15d53f commit: a5a63ffd466e3a459ae69de7dde968473de17903 [55/139] mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix config: c6x-allyesconfig (attached as .config) compiler: c6x-elf-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout a5a63ffd466e3a459ae69de7dde968473de17903 # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=c6x If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): In file included from include/asm-generic/atomic.h:12:0, from ./arch/c6x/include/generated/asm/atomic.h:1, from include/linux/atomic.h:7, from include/linux/page_counter.h:5, from mm/memcontrol.c:25: mm/memcontrol.c: In function 'invalidate_reclaim_iterators': arch/c6x/include/asm/cmpxchg.h:55:3: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), \ ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (unsigned long)(o), \ ~~~~~~~~~~~~~~~~~~~~~ (unsigned long)(n), \ ~~~~~~~~~~~~~~~~~~~~~ sizeof(*(ptr)))) ~~~~~~~~~~~~~~~~ include/asm-generic/cmpxchg.h:106:28: note: in expansion of macro 'cmpxchg_local' #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) ^~~~~~~~~~~~~ mm/memcontrol.c:1147:5: note: in expansion of macro 'cmpxchg' cmpxchg(&iter->position, ^~~~~~~ In file included from ./arch/c6x/include/generated/asm/div64.h:1:0, from include/linux/kernel.h:18, from include/linux/page_counter.h:6, from mm/memcontrol.c:25: mm/memcontrol.c: In function 'mem_cgroup_handle_over_high': include/asm-generic/div64.h:222:28: warning: comparison of distinct pointer types lacks a cast (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ ^ mm/memcontrol.c:2418:2: note: in expansion of macro 'do_div' do_div(overage, clamped_high); ^~~~~~ In file included from include/asm-generic/barrier.h:16:0, from ./arch/c6x/include/generated/asm/barrier.h:1, from include/asm-generic/atomic.h:13, from ./arch/c6x/include/generated/asm/atomic.h:1, from include/linux/atomic.h:7, from include/linux/page_counter.h:5, from mm/memcontrol.c:25: include/asm-generic/div64.h:235:25: warning: right shift count >= width of type [-Wshift-count-overflow] } else if (likely(((n) >> 32) == 0)) { \ ^ include/linux/compiler.h:77:40: note: in definition of macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^ mm/memcontrol.c:2418:2: note: in expansion of macro 'do_div' do_div(overage, clamped_high); ^~~~~~ In file included from ./arch/c6x/include/generated/asm/div64.h:1:0, from include/linux/kernel.h:18, from include/linux/page_counter.h:6, from mm/memcontrol.c:25: >> include/asm-generic/div64.h:239:22: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Werror=incompatible-pointer-types] __rem = __div64_32(&(n), __base); \ ^ mm/memcontrol.c:2418:2: note: in expansion of macro 'do_div' do_div(overage, clamped_high); ^~~~~~ include/asm-generic/div64.h:213:17: note: expected 'uint64_t * {aka long long unsigned int *}' but argument is of type 'long unsigned int *' extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor); ^~~~~~~~~~ cc1: some warnings being treated as errors vim +/__div64_32 +239 include/asm-generic/div64.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 215 ^1da177e4c3f41 Linus Torvalds 2005-04-16 216 /* The unnecessary pointer compare is there ^1da177e4c3f41 Linus Torvalds 2005-04-16 217 * to check for type safety (n must be 64bit) ^1da177e4c3f41 Linus Torvalds 2005-04-16 218 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 219 # define do_div(n,base) ({ \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 220 uint32_t __base = (base); \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 221 uint32_t __rem; \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 222 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 223 if (__builtin_constant_p(__base) && \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 224 is_power_of_2(__base)) { \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 225 __rem = (n) & (__base - 1); \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 226 (n) >>= ilog2(__base); \ 461a5e51060c93 Nicolas Pitre 2015-10-30 227 } else if (__div64_const32_is_OK && \ 461a5e51060c93 Nicolas Pitre 2015-10-30 228 __builtin_constant_p(__base) && \ 461a5e51060c93 Nicolas Pitre 2015-10-30 229 __base != 0) { \ 461a5e51060c93 Nicolas Pitre 2015-10-30 230 uint32_t __res_lo, __n_lo = (n); \ 461a5e51060c93 Nicolas Pitre 2015-10-30 231 (n) = __div64_const32(n, __base); \ 461a5e51060c93 Nicolas Pitre 2015-10-30 232 /* the remainder can be computed with 32-bit regs */ \ 461a5e51060c93 Nicolas Pitre 2015-10-30 233 __res_lo = (n); \ 461a5e51060c93 Nicolas Pitre 2015-10-30 234 __rem = __n_lo - __res_lo * __base; \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 235 } else if (likely(((n) >> 32) == 0)) { \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 236 __rem = (uint32_t)(n) % __base; \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 237 (n) = (uint32_t)(n) / __base; \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 238 } else \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 @239 __rem = __div64_32(&(n), __base); \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 240 __rem; \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 241 }) ^1da177e4c3f41 Linus Torvalds 2005-04-16 242 :::::: The code at line 239 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip