Re: [mmotm:master 69/312] kernel/watchdog.c:518:2: error: implicitdeclaration of function '__smp_call_function_single'

From: Michal Hocko
Date: Thu Aug 01 2013 - 04:02:52 EST


On Thu 01-08-13 08:42:17, Wu Fengguang wrote:
> tree: git://git.cmpxchg.org/linux-mmotm.git master
> head: 01db8fe7b3c8461274e4c9257789514987e7abc8
> commit: 5701031ddea61c051fb8309cbf372dd94e540f22 [69/312] watchdog: update watchdog_tresh properly
> config: i386-randconfig-c00-0801 (attached as .config)
>
> All error/warnings:
>
> kernel/watchdog.c: In function 'update_timers':
> >> kernel/watchdog.c:518:2: error: implicit declaration of function '__smp_call_function_single' [-Werror=implicit-function-declaration]
> __smp_call_function_single(cpu, &data, 1);
> ^
> cc1: some warnings being treated as errors
>
> vim +/__smp_call_function_single +518 kernel/watchdog.c
>
> 512 * be much nicer but we do not have an API for that now so
> 513 * let's use a big hammer.
> 514 * Hrtimer will adopt the new period on the next tick but this
> 515 * might be late already so we have to restart the timer as well.
> 516 */
> 517 watchdog_nmi_disable(cpu);
> > 518 __smp_call_function_single(cpu, &data, 1);
> 519 watchdog_nmi_enable(cpu);
> 520 }
> 521

Ohh, !CONFIG_SMP

The patch below should fix up the mess. Sorry about that. I have added
this UP config to my testing configs.

Andrew, could you pick up the following patch, please?
---