lkml.org 
[lkml]   [2008]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 1/10] x86 boot: include missing smp.h header
From: Paul Jackson <pj@sgi.com>

The patch:
x86: convert cpu_to_apicid to be a per cpu variable
introduced a dependency of ipi.h on smp.h in x86
builds with an allnoconfig. Including smp.h in ipi.h
fixes the build error:
In file included from arch/x86/kernel/traps_64.c:48:
include/asm/ipi.h: In function 'send_IPI_mask_sequence':
include/asm/ipi.h:114: error: 'per_cpu__x86_cpu_to_apicid' undeclared (first use in this function)

Signed-off-by: Paul Jackson <pj@sgi.com>
Cc: Mike Travis <travis@sgi.com>

---
include/asm-x86/ipi.h | 1 +
1 file changed, 1 insertion(+)

--- linux.orig/include/asm-x86/ipi.h 2008-05-13 10:44:39.000000000 -0700
+++ linux/include/asm-x86/ipi.h 2008-05-13 10:56:37.431506774 -0700
@@ -20,6 +20,7 @@

#include <asm/hw_irq.h>
#include <asm/apic.h>
+#include <asm/smp.h>

/*
* the following functions deal with sending IPIs between CPUs.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373


\
 
 \ /
  Last update: 2008-05-14 17:17    [W:0.194 / U:13.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site