[linux-3.16/arch/powerpc/mm/numa.c:615]: (style) Statements following return, break, continue, goto or throw will never be executed. #ifdef CONFIG_HOTPLUG_CPU case CPU_DEAD: case CPU_DEAD_FROZEN: case CPU_UP_CANCELED: case CPU_UP_CANCELED_FROZEN: unmap_cpu_from_node(lcpu); break; ret = NOTIFY_OK; #endif Maybe better #ifdef CONFIG_HOTPLUG_CPU case CPU_DEAD: case CPU_DEAD_FROZEN: case CPU_UP_CANCELED: case CPU_UP_CANCELED_FROZEN: unmap_cpu_from_node(lcpu); ret = NOTIFY_OK; break; #endif
This piece of code was unchanged since 2.6.12-rc2, which was initial git commit. However, the code is clearly weird.
Thanks, patch sent, see "[PATCH] arch/powerpc/mm/numa.c: Fix break placement"