Skip to content

Commit

Permalink
x86 boot: include missing smp.h header
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Paul Jackson authored and Thomas Gleixner committed May 25, 2008
1 parent 3f03c54 commit e3f8ba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-x86/ipi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e3f8ba8

Please sign in to comment.