The following error shows up when building with powerpc64-linux-gnu-gcc-12 and allyesconfig:
arch/powerpc/xmon/xmon.c: In function ‘bpt_cmds’:
arch/powerpc/xmon/xmon.c:1529:13: warning: statement will never be executed [-Wswitch-unreachable]
1529 | int mode;
| ^~~~
The following error shows up when building with powerpc64-linux-gnu-gcc-12 and allyesconfig: