Re: [tip:timers/cleanups 2/10] drivers/input/keyboard/gpio_keys.c:593:17: error: implicit declaration of function 'hrtimer_init'; did you mean 'hrtimers_init'?

From: Nam Cao
Date: Fri Apr 04 2025 - 13:46:08 EST


On Sat, Apr 05, 2025 at 12:53:41AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/cleanups
> head: 5c4da3a96bf484f965057c281f1ef48ac46987bc
> commit: 58b3f2cce01bb48b6f6e0c1cdca5e5a2fc0c56ad [2/10] hrtimers: Delete hrtimer_init()
> config: csky-randconfig-001-20250404 (https://download.01.org/0day-ci/archive/20250405/202504050021.ouKQ30CE-lkp@xxxxxxxxx/config)
> compiler: csky-linux-gcc (GCC) 13.3.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250405/202504050021.ouKQ30CE-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202504050021.ouKQ30CE-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> drivers/input/keyboard/gpio_keys.c: In function 'gpio_keys_setup_key':
> >> drivers/input/keyboard/gpio_keys.c:593:17: error: implicit declaration of function 'hrtimer_init'; did you mean 'hrtimers_init'? [-Werror=implicit-function-declaration]
> 593 | hrtimer_init(&bdata->debounce_timer,
> | ^~~~~~~~~~~~
> | hrtimers_init
> cc1: some warnings being treated as errors

The patch converting this is still in the input tree.

Best regards,
Nam