[avpatel:riscv_sbi_dbcn_v1 20/45] drivers/clocksource/timer-clint.c:250:9: error: too few arguments to function 'clint_clear_ipi'

From: kernel test robot
Date: Sat Jul 30 2022 - 18:05:51 EST


tree: https://github.com/avpatel/linux.git riscv_sbi_dbcn_v1
head: 9d220d614f299a3841990e7890aba88262b29012
commit: 3ab8ce4cbcd9f740c610e181649b1eb108bc7a05 [20/45] RISC-V: Treat IPIs as normal Linux IRQs
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20220731/202207310505.Bbec7lMz-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 12.1.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/avpatel/linux/commit/3ab8ce4cbcd9f740c610e181649b1eb108bc7a05
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_sbi_dbcn_v1
git checkout 3ab8ce4cbcd9f740c610e181649b1eb108bc7a05
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/clocksource/

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

All errors (new ones prefixed by >>):

drivers/clocksource/timer-clint.c: In function 'clint_timer_init_dt':
>> drivers/clocksource/timer-clint.c:250:9: error: too few arguments to function 'clint_clear_ipi'
250 | clint_clear_ipi(clint_ipi_irq);
| ^~~~~~~~~~~~~~~
drivers/clocksource/timer-clint.c:56:13: note: declared here
56 | static void clint_clear_ipi(unsigned int parent_virq, void *data)
| ^~~~~~~~~~~~~~~


vim +/clint_clear_ipi +250 drivers/clocksource/timer-clint.c

214
215 pr_info("%pOFP: timer running at %ld Hz\n", np, clint_timer_freq);
216
217 rc = clocksource_register_hz(&clint_clocksource, clint_timer_freq);
218 if (rc) {
219 pr_err("%pOFP: clocksource register failed [%d]\n", np, rc);
220 goto fail_iounmap;
221 }
222
223 sched_clock_register(clint_get_cycles64, 64, clint_timer_freq);
224
225 rc = request_percpu_irq(clint_timer_irq, clint_timer_interrupt,
226 "clint-timer", &clint_clock_event);
227 if (rc) {
228 pr_err("registering percpu irq failed [%d]\n", rc);
229 goto fail_iounmap;
230 }
231
232 rc = cpuhp_setup_state(CPUHP_AP_CLINT_TIMER_STARTING,
233 "clockevents/clint/timer:starting",
234 clint_timer_starting_cpu,
235 clint_timer_dying_cpu);
236 if (rc) {
237 pr_err("%pOFP: cpuhp setup state failed [%d]\n", np, rc);
238 goto fail_free_irq;
239 }
240
241 virq = ipi_mux_create(clint_ipi_irq, BITS_PER_BYTE,
242 &clint_ipi_ops, NULL);
243 if (virq <= 0) {
244 pr_err("unable to create muxed IPIs\n");
245 rc = (virq < 0) ? virq : -ENODEV;
246 goto fail_remove_cpuhp;
247 }
248
249 riscv_ipi_set_virq_range(virq, BITS_PER_BYTE);
> 250 clint_clear_ipi(clint_ipi_irq);
251
252 return 0;
253
254 fail_remove_cpuhp:
255 cpuhp_remove_state(CPUHP_AP_CLINT_TIMER_STARTING);
256 fail_free_irq:
257 free_irq(clint_timer_irq, &clint_clock_event);
258 fail_iounmap:
259 iounmap(base);
260 return rc;
261 }
262

--
0-DAY CI Kernel Test Service
https://01.org/lkp