diff options
author | Borislav Petkov <[email protected]> | 2009-12-17 00:16:25 +0100 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2009-12-16 15:36:32 -0800 |
commit | 6ede31e03084ee084bcee073ef3d1136f68d0906 (patch) | |
tree | b10344809c72de850c11701cdbc0194d042fb79a /lib/debugobjects.c | |
parent | 9d260ebc09a0ad6b5c73e17676df42c7bc75ff64 (diff) |
x86, msr: msrs_alloc/free for CONFIG_SMP=n
Randy Dunlap reported the following build error:
"When CONFIG_SMP=n, CONFIG_X86_MSR=m:
ERROR: "msrs_free" [drivers/edac/amd64_edac_mod.ko] undefined!
ERROR: "msrs_alloc" [drivers/edac/amd64_edac_mod.ko] undefined!"
This is due to the fact that <arch/x86/lib/msr.c> is conditioned on
CONFIG_SMP and in the UP case we have only the stubs in the header.
Fork off SMP functionality into a new file (msr-smp.c) and build
msrs_{alloc,free} unconditionally.
Reported-by: Randy Dunlap <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions