All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@osdl.org>
Cc: Andi Kleen <ak@suse.de>, Linus Torvalds <torvalds@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: [patch, -rc6] x86_64: UP build fix, arch/x86_64/kernel/mce_amd.c
Date: Thu, 16 Nov 2006 11:21:15 +0100	[thread overview]
Message-ID: <20061116102115.GA8379@elte.hu> (raw)

Subject: [patch] x86_64: UP build fix, arch/x86_64/kernel/mce_amd.c
From: Ingo Molnar <mingo@elte.hu>

fix x86_64/kernel/mce_amd.c build bug:

 arch/x86_64/kernel/mce_amd.c: In function ‘threshold_remove_bank’:
 arch/x86_64/kernel/mce_amd.c:597: error: ‘shared_bank’ undeclared (first use in this function)
 arch/x86_64/kernel/mce_amd.c:597: error: (Each undeclared identifier is reported only once
 arch/x86_64/kernel/mce_amd.c:597: error: for each function it appears in.)
 make[1]: *** [arch/x86_64/kernel/mce_amd.o] Error 1
 make: *** [arch/x86_64/kernel/mce_amd.o] Error 2

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86_64/kernel/mce_amd.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux/arch/x86_64/kernel/mce_amd.c
===================================================================
--- linux.orig/arch/x86_64/kernel/mce_amd.c
+++ linux/arch/x86_64/kernel/mce_amd.c
@@ -593,12 +593,14 @@ static void threshold_remove_bank(unsign
 
 	sprintf(name, "threshold_bank%i", bank);
 
+#ifdef CONFIG_SMP
 	/* sibling symlink */
 	if (shared_bank[bank] && b->blocks->cpu != cpu) {
 		sysfs_remove_link(&per_cpu(device_mce, cpu).kobj, name);
 		per_cpu(threshold_banks, cpu)[bank] = NULL;
 		return;
 	}
+#endif
 
 	/* remove all sibling symlinks before unregistering */
 	for_each_cpu_mask(i, b->cpus) {

             reply	other threads:[~2006-11-16 10:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 10:21 Ingo Molnar [this message]
2006-11-16 10:29 ` [patch, -rc6] x86_64: UP build fix, arch/x86_64/kernel/mce_amd.c Andi Kleen
2006-11-16 11:17   ` Ingo Molnar

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=20061116102115.GA8379@elte.hu \
    --to=mingo@elte.hu \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.