ARM: trusted_foundations: fix compile error on non-SMP
authorAlexandre Courbot <[email protected]>
Fri, 23 May 2014 00:23:32 +0000 (09:23 +0900)
committerArnd Bergmann <[email protected]>
Fri, 23 May 2014 19:28:11 +0000 (21:28 +0200)
commit3aae97c8b1dbefb23217d193e2818d1490651c95
treed014927ff91e4d64652b5ab1a5a2540888121b62
parent756abc8d6de06f0afc2121f69030f0d3f4f8177a
ARM: trusted_foundations: fix compile error on non-SMP

The setup_max_cpus variable is only defined if CONFIG_SMP is set. Add
a preprocessor condition to avoid the following compilation error if
CONFIG_SMP is not set:

    arch/arm/include/asm/trusted_foundations.h: In function 'register_trusted_foundations':
    arch/arm/include/asm/trusted_foundations.h:57:2: error: 'setup_max_cpus' undeclared (first use in this function)

Signed-off-by: Alexandre Courbot <[email protected]>
Reported-by: Russell King <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
arch/arm/include/asm/trusted_foundations.h