lkml.org 
[lkml]   [2022]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[peterz-queue:sched/core 16/18] kernel/sched/psi.c:983:35: error: too few arguments to function call, expected 3, have 2
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head: 7005e3c43be6b6297440e85cb7d8c12a94540b49
commit: 95a70934458341dc43db09be8e7b88c98fba9b89 [16/18] psi: stop relying on timer_pending for poll_work rescheduling
config: i386-randconfig-a004-20221024 (attached as .config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=95a70934458341dc43db09be8e7b88c98fba9b89
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/core
git checkout 95a70934458341dc43db09be8e7b88c98fba9b89
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 errors (new ones prefixed by >>):

In file included from kernel/sched/build_utility.c:97:
>> kernel/sched/psi.c:983:35: error: too few arguments to function call, expected 3, have 2
psi_schedule_poll_work(group, 1);
~~~~~~~~~~~~~~~~~~~~~~ ^
kernel/sched/psi.c:568:13: note: 'psi_schedule_poll_work' declared here
static void psi_schedule_poll_work(struct psi_group *group, unsigned long delay,
^
1 error generated.


vim +983 kernel/sched/psi.c

eb414681d5a07d Johannes Weiner 2018-10-26 954
52b1364ba0b105 Chengming Zhou 2022-08-26 955 #ifdef CONFIG_IRQ_TIME_ACCOUNTING
52b1364ba0b105 Chengming Zhou 2022-08-26 956 void psi_account_irqtime(struct task_struct *task, u32 delta)
52b1364ba0b105 Chengming Zhou 2022-08-26 957 {
52b1364ba0b105 Chengming Zhou 2022-08-26 958 int cpu = task_cpu(task);
52b1364ba0b105 Chengming Zhou 2022-08-26 959 struct psi_group *group;
52b1364ba0b105 Chengming Zhou 2022-08-26 960 struct psi_group_cpu *groupc;
52b1364ba0b105 Chengming Zhou 2022-08-26 961 u64 now;
52b1364ba0b105 Chengming Zhou 2022-08-26 962
52b1364ba0b105 Chengming Zhou 2022-08-26 963 if (!task->pid)
52b1364ba0b105 Chengming Zhou 2022-08-26 964 return;
52b1364ba0b105 Chengming Zhou 2022-08-26 965
52b1364ba0b105 Chengming Zhou 2022-08-26 966 now = cpu_clock(cpu);
52b1364ba0b105 Chengming Zhou 2022-08-26 967
dc86aba751e286 Chengming Zhou 2022-08-26 968 group = task_psi_group(task);
dc86aba751e286 Chengming Zhou 2022-08-26 969 do {
34f26a15611afb Chengming Zhou 2022-09-07 970 if (!group->enabled)
34f26a15611afb Chengming Zhou 2022-09-07 971 continue;
34f26a15611afb Chengming Zhou 2022-09-07 972
52b1364ba0b105 Chengming Zhou 2022-08-26 973 groupc = per_cpu_ptr(group->pcpu, cpu);
52b1364ba0b105 Chengming Zhou 2022-08-26 974
52b1364ba0b105 Chengming Zhou 2022-08-26 975 write_seqcount_begin(&groupc->seq);
52b1364ba0b105 Chengming Zhou 2022-08-26 976
52b1364ba0b105 Chengming Zhou 2022-08-26 977 record_times(groupc, now);
52b1364ba0b105 Chengming Zhou 2022-08-26 978 groupc->times[PSI_IRQ_FULL] += delta;
52b1364ba0b105 Chengming Zhou 2022-08-26 979
52b1364ba0b105 Chengming Zhou 2022-08-26 980 write_seqcount_end(&groupc->seq);
52b1364ba0b105 Chengming Zhou 2022-08-26 981
52b1364ba0b105 Chengming Zhou 2022-08-26 982 if (group->poll_states & (1 << PSI_IRQ_FULL))
52b1364ba0b105 Chengming Zhou 2022-08-26 @983 psi_schedule_poll_work(group, 1);
dc86aba751e286 Chengming Zhou 2022-08-26 984 } while ((group = group->parent));
52b1364ba0b105 Chengming Zhou 2022-08-26 985 }
52b1364ba0b105 Chengming Zhou 2022-08-26 986 #endif
52b1364ba0b105 Chengming Zhou 2022-08-26 987

:::::: The code at line 983 was first introduced by commit
:::::: 52b1364ba0b105122d6de0e719b36db705011ac1 sched/psi: Add PSI_IRQ to track IRQ/SOFTIRQ pressure

:::::: TO: Chengming Zhou <zhouchengming@bytedance.com>
:::::: CC: Peter Zijlstra <peterz@infradead.org>

--
0-DAY CI Kernel Test Service
https://01.org/lkp
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2022-10-26 04:00    [W:0.064 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site