* [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h
@ 2015-05-08 14:12 Nicholas Krause
2015-05-08 14:51 ` James Hogan
0 siblings, 1 reply; 4+ messages in thread
From: Nicholas Krause @ 2015-05-08 14:12 UTC (permalink / raw)
To: ralf; +Cc: chenhc, andreas.herrmann, rusty, linux-mips, linux-kernel
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
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;
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h
@ 2015-05-08 14:51 ` James Hogan
0 siblings, 0 replies; 4+ messages 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] 4+ messages in thread
* Re: [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h
@ 2015-05-08 14:51 ` James Hogan
0 siblings, 0 replies; 4+ messages 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] 4+ messages in thread
* Re: [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h
2015-05-08 14:51 ` James Hogan
(?)
@ 2015-05-08 14:57 ` nick
-1 siblings, 0 replies; 4+ messages in thread
From: nick @ 2015-05-08 14:57 UTC (permalink / raw)
To: James Hogan, ralf
Cc: chenhc, andreas.herrmann, rusty, linux-mips, linux-kernel
On 2015-05-08 10:51 AM, James Hogan wrote:
> 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;
>>
>>
> James,
Your patch is 100% percent I missed that it hit all those files and therefore just removed it from the
header file. After looking at it further this was easy break the build on other configurations,please
NAK this patch.
Nick
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-08 14:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-08 14:12 [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h Nicholas Krause
2015-05-08 14:51 ` James Hogan
2015-05-08 14:51 ` James Hogan
2015-05-08 14:57 ` nick
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.