From: nick <xerofoify@gmail.com>
To: James Hogan <james.hogan@imgtec.com>, ralf@linux-mips.org
Cc: chenhc@lemote.com, andreas.herrmann@caviumnetworks.com,
rusty@rustcorp.com.au, linux-mips@linux-mips.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mips:Remove unneeded duplicate declaration of cpu_callin_map in smp.h
Date: Fri, 08 May 2015 10:57:13 -0400 [thread overview]
Message-ID: <554CCEC9.9080406@gmail.com> (raw)
In-Reply-To: <554CCD6D.9010004@imgtec.com>
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
prev parent reply other threads:[~2015-05-08 14:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554CCEC9.9080406@gmail.com \
--to=xerofoify@gmail.com \
--cc=andreas.herrmann@caviumnetworks.com \
--cc=chenhc@lemote.com \
--cc=james.hogan@imgtec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.