* Re: [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h
[not found] <1431094355-28145-1-git-send-email-xerofoify@gmail.com>
@ 2015-05-08 14:51 ` James Hogan
0 siblings, 0 replies; only message in thread
From: James Hogan @ 2015-05-08 14:51 UTC (permalink / raw)
To: Nicholas Krause, ralf
Cc: chenhc, andreas.herrmann, rusty, linux-mips, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]
On 08/05/15 15:12, Nicholas Krause wrote:
> This removes the unneeded duplicate declaration of cpu_callin_map
> in smp.h due to use already declaring it in the file,smp.c that
No, it isn't declared in arch/mips/kernel/smp.c, its *defined* there (no
"extern"). It's referenced by:
arch/mips/cavium-octeon/smp.c
arch/mips/kernel/process.c
arch/mips/kernel/smp-bmips.c
arch/mips/kernel/smp-cps.c
arch/mips/loongson/loongson-3/smp.c
as well as arch/mips/kernel/smp.c, which is why the declaration is
needed in a header.
If you're attempting to fix the build errors in this area, please see:
http://patchwork.linux-mips.org/patch/9970/
Cheers
James
> already uses it internally for functions required this variable
> for their various internal work.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
> arch/mips/include/asm/smp.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/mips/include/asm/smp.h b/arch/mips/include/asm/smp.h
> index bb02fac..7752011 100644
> --- a/arch/mips/include/asm/smp.h
> +++ b/arch/mips/include/asm/smp.h
> @@ -45,8 +45,6 @@ extern int __cpu_logical_map[NR_CPUS];
> #define SMP_DUMP 0x8
> #define SMP_ASK_C0COUNT 0x10
>
> -extern volatile cpumask_t cpu_callin_map;
> -
> /* Mask of CPUs which are currently definitely operating coherently */
> extern cpumask_t cpu_coherent_mask;
>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-08 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1431094355-28145-1-git-send-email-xerofoify@gmail.com>
2015-05-08 14:51 ` [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h James Hogan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome