From: Randy Dunlap <randy.dunlap@oracle.com>
To: Don Zickus <dzickus@redhat.com>
Cc: Rakib Mullick <rakib.mullick@gmail.com>,
Stephen Rothwell <sfr@canb.auug.org.au>,
linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
x86@kernel.org
Subject: Re: linux-next: Tree for December 10 (x86 nmi_watchdog)
Date: Mon, 13 Dec 2010 07:55:09 -0800 [thread overview]
Message-ID: <4D0641DD.2060303@oracle.com> (raw)
In-Reply-To: <20101213153719.GD18577@redhat.com>
On 12/13/10 07:37, Don Zickus wrote:
> On Sun, Dec 12, 2010 at 11:27:02AM +0600, Rakib Mullick wrote:
>> On Fri, Dec 10, 2010 at 11:25 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>>> On Fri, 10 Dec 2010 13:57:46 +1100 Stephen Rothwell wrote:
>>>
>>>> Hi all,
>>>>
>>>> Changes since 20101209:
>>>
>>>
>>> arch/x86/kernel/apic/hw_nmi.c:28: error: redefinition of 'touch_nmi_watchdog'
>>> include/linux/nmi.h:22: note: previous definition of 'touch_nmi_watchdog' was here
>>>
>> Hello Randy,
>>
>> Please checkout the following patch. Does it work?
>
> This fixes the problem. Sorry about that. I need to remember to try more
> random config options to catch these things.
> ----8<---
>
> From: Don Zickus <dzickus@redhat.com>
> Date: Mon, 13 Dec 2010 10:31:58 -0500
> Subject: [PATCH] x86, watchdog: Compile fix when CONFIG_LOCAL_APIC not enabled
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> When adjusting the code to handle removing the old nmi watchdog,
> I forgot to consider the compile case when the local apic is not
> enabled. This small change fixes the compile warning:
>
> arch/x86/kernel/apic/hw_nmi.c:28:6: error: redefinition of ‘touch_nmi_watchdog’
>
> Signed-off-by: Don Zickus <dzickus@redhat.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Thanks.
> ---
> arch/x86/kernel/apic/hw_nmi.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c
> index c558e11..93da91d 100644
> --- a/arch/x86/kernel/apic/hw_nmi.c
> +++ b/arch/x86/kernel/apic/hw_nmi.c
> @@ -17,6 +17,7 @@
> #include <linux/nmi.h>
> #include <linux/module.h>
>
> +#ifdef ARCH_HAS_NMI_WATCHDOG
> #ifdef CONFIG_HARDLOCKUP_DETECTOR
> u64 hw_nmi_get_sample_period(void)
> {
> @@ -31,6 +32,8 @@ void touch_nmi_watchdog(void)
> }
> EXPORT_SYMBOL(touch_nmi_watchdog);
> #endif
> +#endif
> +
> #ifdef arch_trigger_all_cpu_backtrace
> /* For reliability, we're prepared to waste bits here. */
> static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly;
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
next prev parent reply other threads:[~2010-12-13 15:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-10 2:57 linux-next: Tree for December 10 Stephen Rothwell
2010-12-10 17:25 ` linux-next: Tree for December 10 (x86 nmi_watchdog) Randy Dunlap
2010-12-12 5:27 ` Rakib Mullick
2010-12-12 6:26 ` Rakib Mullick
2010-12-12 7:32 ` Rakib Mullick
2010-12-13 14:44 ` Don Zickus
2010-12-13 23:08 ` Stephen Rothwell
2010-12-14 15:07 ` Don Zickus
2010-12-14 5:42 ` Rakib Mullick
2010-12-13 15:37 ` Don Zickus
2010-12-13 15:55 ` Randy Dunlap [this message]
2010-12-13 19:02 ` linux-next: Tree for December 10 Zimny Lech
2010-12-13 19:04 ` Zimny Lech
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=4D0641DD.2060303@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=dzickus@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rakib.mullick@gmail.com \
--cc=sfr@canb.auug.org.au \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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;
as well as URLs for NNTP newsgroup(s).