tree:
https://github.com/jpirko/linux_mlxsw petrm_resilient
head: 80746cff1944e716e426afec11340d5f5164895c
commit: dae1ac8af0cc1e9f0b5967822be3aed69a3a7b14 [24/25] nexthop: Add support code for
resilient ECMP groups [xxx]
config: x86_64-randconfig-a004-20201209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
1968804ac726e7674d5de22bc2204b45857da344)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/jpirko/linux_mlxsw/commit/dae1ac8af0cc1e9f0b5967822be3...
git remote add jpirko-mlxsw
https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw petrm_resilient
git checkout dae1ac8af0cc1e9f0b5967822be3aed69a3a7b14
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> net/ipv4/nexthop.c:1265:44: warning: format specifies type
'int' but the argument has type 'unsigned long' [-Wformat]
printk(KERN_WARNING "next wakeup: %d\n", deadline - now);
~~ ^~~~~~~~~~~~~~
%lu
net/ipv4/nexthop.c:2371:56: error: too many arguments to function call, expected 3,
have 4
err = nh_check_attr_group(net, tb, cfg->nh_grp_type, extack);
~~~~~~~~~~~~~~~~~~~ ^~~~~~
net/ipv4/nexthop.c:723:12: note: 'nh_check_attr_group' declared here
static int nh_check_attr_group(struct net *net, struct nlattr *tb[],
^
1 warning and 1 error generated.
vim +1265 net/ipv4/nexthop.c
1227
1228 static void nh_res_table_upkeep(struct nh_res_table *res_table, bool notify)
1229 {
1230 unsigned long deadline;
1231 u32 i;
1232
1233 /* Force timeout of 0 means "never force". */
1234 if (res_table->unbalanced_timer)
1235 deadline = jiffies + res_table->unbalanced_timer;
1236 else
1237 deadline = jiffies + res_table->idle_timer;
1238
1239 for (i = 0; i < res_table->num_nh_buckets; i++) {
1240 struct nh_res_bucket *bucket = &res_table->nh_buckets[i];
1241 bool force;
1242
1243 if (nh_res_bucket_should_migrate(res_table, bucket,
1244 &deadline, &force)) {
1245 if (!nh_res_bucket_migrate(res_table, i, notify,
1246 force)) {
1247 unsigned long idle_time;
1248
1249 nh_res_bucket_set_busy(bucket);
1250 idle_time = nh_res_bucket_idle_time(res_table,
1251 bucket);
1252 nh_res_time_set_deadline(idle_time, &deadline);
1253 }
1254 }
1255 }
1256
1257 if (!nh_res_table_is_balanced(res_table)) {
1258 unsigned long min_deadline;
1259 unsigned long now = jiffies;
1260
1261 min_deadline = now + NH_RES_UPKEEP_DW_MINIMUM_INTERVAL;
1262 if (time_before(deadline, min_deadline))
1263 deadline = min_deadline;
1264
1265 printk(KERN_WARNING "next wakeup: %d\n", deadline -
now);
1266 queue_delayed_work(system_power_efficient_wq,
1267 &res_table->upkeep_dw, deadline - now);
1268 }
1269 }
1270
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org