From: James Hogan <james.hogan@imgtec.com>
To: Nicholas Krause <xerofoify@gmail.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, 8 May 2015 15:51:25 +0100 [thread overview]
Message-ID: <554CCD6D.9010004@imgtec.com> (raw)
In-Reply-To: <1431094355-28145-1-git-send-email-xerofoify@gmail.com>
[-- 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 --]
WARNING: multiple messages have this Message-ID (diff)
From: James Hogan <james.hogan@imgtec.com>
To: Nicholas Krause <xerofoify@gmail.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, 8 May 2015 15:51:25 +0100 [thread overview]
Message-ID: <554CCD6D.9010004@imgtec.com> (raw)
Message-ID: <20150508145125.3n5-ESe76qwYhl_GukP9LTlnJwrZ9ZJ9jSXuSqDfOqA@z> (raw)
In-Reply-To: <1431094355-28145-1-git-send-email-xerofoify@gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2015-05-08 14:51 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 [this message]
2015-05-08 14:51 ` James Hogan
2015-05-08 14:57 ` nick
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=554CCD6D.9010004@imgtec.com \
--to=james.hogan@imgtec.com \
--cc=andreas.herrmann@caviumnetworks.com \
--cc=chenhc@lemote.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=rusty@rustcorp.com.au \
--cc=xerofoify@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox