KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
81 stars 5 forks source link

-Wswitch-unreachable issue in arch/powerpc/xmon/xmon.c #199

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 2 years ago

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;
      |             ^~~~
GustavoARSilva commented 1 year ago

There is a patch for this now: https://lore.kernel.org/linux-hardening/YySE6FHiOcbWWR+9@work/