All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip] x86: k8.h reference to node in node_to_k8_nb_misc for !CONFIG_K8_NB
@ 2009-04-14 16:45 Jaswinder Singh Rajput
  2009-04-14 16:52 ` Ingo Molnar
  0 siblings, 1 reply; 5+ messages in thread
From: Jaswinder Singh Rajput @ 2009-04-14 16:45 UTC (permalink / raw)
  To: Ingo Molnar, x86 maintainers, Andreas Herrmann, LKML,
	Mark Langsdorf

Add reference to node in node_to_k8_nb_misc for !CONFIG_K8_NB to make compiler happy.

So fixes compiler warnings:
  arch/x86/kernel/cpu/intel_cacheinfo.c: In function ‘show_cache_disable’:
  arch/x86/kernel/cpu/intel_cacheinfo.c:712: warning: unused variable ‘node’
  arch/x86/kernel/cpu/intel_cacheinfo.c: In function ‘store_cache_disable’:
  arch/x86/kernel/cpu/intel_cacheinfo.c:739: warning: unused variable ‘node’

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
 arch/x86/include/asm/k8.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/include/asm/k8.h b/arch/x86/include/asm/k8.h
index c23b3d1..c81e4ee 100644
--- a/arch/x86/include/asm/k8.h
+++ b/arch/x86/include/asm/k8.h
@@ -16,7 +16,7 @@ extern int k8_scan_nodes(unsigned long start, unsigned long end);
 #define node_to_k8_nb_misc(node) \
 	(node < num_k8_northbridges) ? k8_northbridges[node] : NULL
 #else
-#define node_to_k8_nb_misc(node) NULL
+#define node_to_k8_nb_misc(node) (node) ? NULL : NULL
 #endif
 
 
-- 
1.6.0.6




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-04-14 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 16:45 [PATCH -tip] x86: k8.h reference to node in node_to_k8_nb_misc for !CONFIG_K8_NB Jaswinder Singh Rajput
2009-04-14 16:52 ` Ingo Molnar
2009-04-14 17:07   ` Jaswinder Singh Rajput
2009-04-14 17:17     ` Ingo Molnar
2009-04-14 17:34       ` Jaswinder Singh Rajput

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.