LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [norov:demotion 2/6] mm/vmscan.c:524:36: error: lvalue required as unary '&' operand
@ 2021-08-08 10:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-08 10:43 UTC (permalink / raw)
  To: Yury Norov; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2115 bytes --]

tree:   https://github.com/norov/linux demotion
head:   78c3964952da24c07f2e34dc2d485fd2e6d5ba82
commit: f870f47355df665046fdff854e7b5d219ea92fb0 [2/6] mm/demotoin: make demotion_enabled a 3-state switch
config: openrisc-randconfig-r033-20210808 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/norov/linux/commit/f870f47355df665046fdff854e7b5d219ea92fb0
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov demotion
        git checkout f870f47355df665046fdff854e7b5d219ea92fb0
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   mm/vmscan.c: In function 'can_demote':
>> mm/vmscan.c:524:36: error: lvalue required as unary '&' operand
     524 |  if (!test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags))
         |                                    ^
   mm/vmscan.c: In function 'demote_page_list':
   mm/vmscan.c:1343:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
    1343 |  int err;
         |      ^~~


vim +524 mm/vmscan.c

   521	
   522	static bool can_demote(int nid, struct scan_control *sc)
   523	{
 > 524		if (!test_bit(NUMA_DEMOTION_FLAG, &numa_demotion_flags))
   525			return false;
   526		if (sc) {
   527			if (sc->no_demotion)
   528				return false;
   529			/* It is pointless to do demotion in memcg reclaim */
   530			if (cgroup_reclaim(sc))
   531				return false;
   532		}
   533		if (next_demotion_node(nid) == NUMA_NO_NODE)
   534			return false;
   535	
   536		return true;
   537	}
   538	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27634 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-08 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-08 10:43 [norov:demotion 2/6] mm/vmscan.c:524:36: error: lvalue required as unary '&' operand kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).