From: mhocko@suse.cz (Michal Hocko)
To: linux-arm-kernel@lists.infradead.org
Subject: [BUG linux-next] watchdog: build breakage for non-SMP builds
Date: Wed, 7 Aug 2013 10:47:16 +0200 [thread overview]
Message-ID: <20130807084716.GA8184@dhcp22.suse.cz> (raw)
In-Reply-To: <20993.64234.352390.254920@ipc1.ka-ro>
On Wed 07-08-13 09:44:42, Lothar Wa?mann wrote:
> Hi,
>
> commit 0ce6966b "watchdog: update watchdog_tresh properly" breaks
> build on non-SMP systems (more specifically: on systems where
> CONFIG_USE_GENERIC_SMP_HELPERS is not set):
> linux-next/kernel/watchdog.c: In function 'update_timers':
> linux-next/kernel/watchdog.c:522:2: error: implicit declaration of function '__smp_call_function_single' [-Werror=implicit-function-declaration]
The fix is already in the Andrew's tree so it should show up in
linux-next sometimes soon.
Sorry about the hassles.
> I guess the offending code should be guarded by an
> '#ifdef CONFIG_USE_GENERIC_SMP_HELPERS'
> like in kernel/softirq.c:
> #ifdef CONFIG_USE_GENERIC_SMP_HELPERS
> [...]
> static int __try_remote_softirq(struct call_single_data *cp, int cpu, int softirq)
> {
> if (cpu_online(cpu)) {
> cp->func = remote_softirq_receive;
> cp->info = &softirq;
> cp->flags = 0;
>
> __smp_call_function_single(cpu, cp, 0);
> return 0;
> }
> return 1;
> }
> #else /* CONFIG_USE_GENERIC_SMP_HELPERS */
> static int __try_remote_softirq(struct call_single_data *cp, int cpu, int softirq)
> {
> return 1;
> }
> #endif
>
>
> Lothar Wa?mann
> --
> ___________________________________________________________
>
> Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen
> Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
> Gesch?ftsf?hrer: Matthias Kaussen
> Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
>
> www.karo-electronics.de | info at karo-electronics.de
> ___________________________________________________________
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2013-08-07 8:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 7:44 [BUG linux-next] watchdog: build breakage for non-SMP builds Lothar Waßmann
2013-08-07 8:47 ` Michal Hocko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130807084716.GA8184@dhcp22.suse.cz \
--to=mhocko@suse.cz \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox