From: Christian Zigotzky <chzigotzky@xenosoft.de>
To: Christophe Leroy <christophe.leroy@csgroup.eu>,
linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
Michael Ellerman <mpe@ellerman.id.au>,
"hbathini@linux.ibm.com" <hbathini@linux.ibm.com>
Cc: Darren Stevens <darren@stevens-zone.net>,
"R.T.Dickinson" <rtd2@xtra.co.nz>,
mad skateman <madskateman@gmail.com>,
"R.T.Dickinson" <rtd@a-eon.com>,
Matthew Leaman <matthew@a-eon.biz>,
Christian Zigotzky <info@xenosoft.de>
Subject: [FSL P50x0] Kernel 6.9-rc1 compiling issue
Date: Mon, 25 Mar 2024 08:15:34 +0100 [thread overview]
Message-ID: <1486b4f1-cb55-48c8-b492-ddbec495eef3@xenosoft.de> (raw)
In-Reply-To: <5c232ad9-c4d5-49fa-8434-fc5034b6c5da@csgroup.eu>
Thanks a lot for the hint.
Could you please add #include <asm/kexec.h> to
arch/powerpc/platforms/85xx/smp.c for the next PowerPC fixes?
Christian
On 25 March 2024 at 07:43 am, Christophe Leroy wrote:
> Hi,
>
> Le 25/03/2024 à 06:18, Christian Zigotzky a écrit :
>> I have created a patch:
>>
>> --- a/arch/powerpc/platforms/85xx/smp.c 2024-03-25 06:14:02.201209476 +0100
>> +++ b/arch/powerpc/platforms/85xx/smp.c 2024-03-25 06:10:04.421425931 +0100
>> @@ -393,6 +393,7 @@ static void mpc85xx_smp_kexec_cpu_down(i
>> int disable_threadbit = 0;
>> long start = mftb();
>> long now;
>> + int crashing_cpu = -1;
> crashing_cpu is a global variable defined in
> arch/powerpc/kernel/setup-common.c and declared in
> arch/powerpc/include/asm/kexec.h
>
> So you can't redefine crashing_cpu as a local stub.
>
> All you need to do is to add #include <asm/kexec.h> just like
> arch/powerpc/platforms/powernv/smp.c I guess.
>
> Christophe
>
>
>
>> local_irq_disable();
>> hard_irq_disable();
>>
>> ---
>>
>> -- Christian
>>
>>
>> On 25 March 2024 at 05:48 am, Christian Zigotzky wrote:
>>> Hi All,
>>>
>>> Compiling of the RC1 of kernel 6.9 doesn’t work anymore for our FSL
>>> P5020/P5040 boards [1] since the PowerPC updates 6.9-2 [2].
>>>
>>> Error messages:
>>>
>>> arch/powerpc/platforms/85xx/smp.c: In function
>>> 'mpc85xx_smp_kexec_cpu_down':
>>> arch/powerpc/platforms/85xx/smp.c:401:13: error: 'crashing_cpu'
>>> undeclared (first use in this function); did you mean 'crash_save_cpu'?
>>> 401 | if (cpu == crashing_cpu && cpu_thread_in_core(cpu) != 0) {
>>> | ^~~~~~~~~~~~
>>> | crash_save_cpu
>>> arch/powerpc/platforms/85xx/smp.c:401:13: note: each undeclared
>>> identifier is reported only once for each function it appears in
>>> make[5]: *** [scripts/Makefile.build:244:
>>> arch/powerpc/platforms/85xx/smp.o] Error 1
>>> make[4]: *** [scripts/Makefile.build:485: arch/powerpc/platforms/85xx]
>>> Error 2
>>> make[3]: *** [scripts/Makefile.build:485: arch/powerpc/platforms] Error 2
>>> make[2]: *** [scripts/Makefile.build:485: arch/powerpc] Error 2
>>>
>>> ---
>>>
>>> I was able to revert it. After that the compiling works again.
>>>
>>> Could you please check the PowerPC updates 6.9-2? [2]
>>>
>>> Thanks,
>>> Christian
>>>
>>> [1] http://wiki.amiga.org/index.php?title=X5000
>>> [2]
>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.9-rc1&id=484193fecd2b6349a6fd1554d306aec646ae1a6a
next prev parent reply other threads:[~2024-03-25 7:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-25 4:48 [FSL P50x0] Kernel 6.9-rc1 compiling issue Christian Zigotzky
2024-03-25 5:18 ` Christian Zigotzky
2024-03-25 6:43 ` Christophe Leroy
2024-03-25 7:15 ` Christian Zigotzky [this message]
2024-03-25 9:14 ` Christian Zigotzky
2024-03-25 11:01 ` Christian Zigotzky
2024-04-04 17:44 ` Christian Zigotzky
2024-04-04 19:00 ` Christophe Leroy
2024-04-08 12:20 ` Michael Ellerman
2024-05-09 5:15 ` Christian Zigotzky
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=1486b4f1-cb55-48c8-b492-ddbec495eef3@xenosoft.de \
--to=chzigotzky@xenosoft.de \
--cc=christophe.leroy@csgroup.eu \
--cc=darren@stevens-zone.net \
--cc=hbathini@linux.ibm.com \
--cc=info@xenosoft.de \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=madskateman@gmail.com \
--cc=matthew@a-eon.biz \
--cc=mpe@ellerman.id.au \
--cc=rtd2@xtra.co.nz \
--cc=rtd@a-eon.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;
as well as URLs for NNTP newsgroup(s).