public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* next-20220715 build fail due to 579b9239c1f386 (powerpc, ps3_defconfig, GCC 12.1.0)
@ 2022-07-17  3:27 Bagas Sanjaya
  2022-07-17  3:47 ` Bagas Sanjaya
  0 siblings, 1 reply; 2+ messages in thread
From: Bagas Sanjaya @ 2022-07-17  3:27 UTC (permalink / raw)
  To: linux-next, linuxppc-dev, linux-kernel; +Cc: Aneesh Kumar K.V, Michael Ellerman

Hi everyone,

I built next-20220715 tree, using powerpc64-unknown-linux-gnu-gcc
(GCC 12.1.0) and ps3_defconfig. The build errored on W=1 build
(-Werror=missing-prototypes):

  CC      arch/powerpc/mm/book3s64/pgtable.o
  CC      arch/powerpc/kernel/process.o
arch/powerpc/mm/book3s64/pgtable.c:478:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes]
  478 | int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
      |     ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

The errored line is introduced by commit 579b9239c1f386 ("powerpc/radix: Fix
kernel crash with mremap()")

Looking at the commit, it seems like GCC didn't see the prototype which had
already been given, or am I missing something?

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: next-20220715 build fail due to 579b9239c1f386 (powerpc, ps3_defconfig, GCC 12.1.0)
  2022-07-17  3:27 next-20220715 build fail due to 579b9239c1f386 (powerpc, ps3_defconfig, GCC 12.1.0) Bagas Sanjaya
@ 2022-07-17  3:47 ` Bagas Sanjaya
  0 siblings, 0 replies; 2+ messages in thread
From: Bagas Sanjaya @ 2022-07-17  3:47 UTC (permalink / raw)
  To: linux-next, linuxppc-dev, linux-kernel; +Cc: Aneesh Kumar K.V, Michael Ellerman

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

On 7/17/22 10:27, Bagas Sanjaya wrote:
> Hi everyone,
> 
> I built next-20220715 tree, using powerpc64-unknown-linux-gnu-gcc
> (GCC 12.1.0) and ps3_defconfig. The build errored on W=1 build
> (-Werror=missing-prototypes):
> 
>   CC      arch/powerpc/mm/book3s64/pgtable.o
>   CC      arch/powerpc/kernel/process.o
> arch/powerpc/mm/book3s64/pgtable.c:478:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes]
>   478 | int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
>       |     ^~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> 

Oops, I forget to attach the full build log.

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: powerpc.log.gz --]
[-- Type: application/gzip, Size: 1639 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-17  3:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-17  3:27 next-20220715 build fail due to 579b9239c1f386 (powerpc, ps3_defconfig, GCC 12.1.0) Bagas Sanjaya
2022-07-17  3:47 ` Bagas Sanjaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox