[norov:demotion 5/6] mm/mempolicy.c:3076:38: error: expected expression

From: kernel test robot
Date: Sun Aug 08 2021 - 09:55:53 EST


tree: https://github.com/norov/linux demotion
head: 78c3964952da24c07f2e34dc2d485fd2e6d5ba82
commit: 101e14d51cae3a28013f4e073b7067e405df0521 [5/6] sysfs: add /sys/kernel/mm/numa/demotion_list
config: x86_64-randconfig-a001-20210808 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 41a6b50c25961addc04438b567ee1f4ef9e40f98)
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/101e14d51cae3a28013f4e073b7067e405df0521
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov demotion
git checkout 101e14d51cae3a28013f4e073b7067e405df0521
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> mm/mempolicy.c:3076:38: error: expected expression
ret = set_demotion_target(from, to);
^
1 error generated.


vim +3076 mm/mempolicy.c

3052
3053 static ssize_t numa_demotion_list_store(struct kobject *kobj,
3054 struct kobj_attribute *attr,
3055 const char *buf, size_t count)
3056 {
3057 nodemask_t nodes;
3058 char *nodelist;
3059 int from, to, ret;
3060
3061 nodelist = strnchr(buf, count, '>');
3062 if (!nodelist)
3063 return -EINVAL;
3064
3065 *nodelist++ = 0;
3066
3067 ret = kstrtoint(buf, 0, &to);
3068 if (ret)
3069 return ret;
3070
3071 ret = nodelist_parse(nodelist, nodes);
3072 if (ret)
3073 return ret;
3074
3075 for_each_node_mask(from, nodes) {
> 3076 ret = set_demotion_target(from, to);
3077 if (ret == -EXDEV)
3078 pr_warn("Cross-node loop for demotion: %d>%d\n", to, from);
3079 else if (ret)
3080 return ret;
3081 }
3082
3083 return count;
3084 }
3085

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

Attachment: .config.gz
Description: application/gzip