GCC-8 isn't clever enough to figure out that cpu_start_entry() is a noreturn while objtool is. This results in code after the call in start_secondary(). Give GCC a hand so that they all agree on things. vmlinux.o: warning: objtool: start_secondary()+0x10e: unreachable
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -167,7 +167,7 @@ static inline int suspend_disable_secondary_cpus(void) { return 0; } · 166 unmodified lines | ||
| 167 | 167 | static inline void suspend_enable_secondary_cpus(void) { } |
| 168 | 168 | #endif /* !CONFIG_PM_SLEEP_SMP */ |
| 169 | 169 | |
| 170 | −void cpu_startup_entry(enum cpuhp_state state); | |
| 170 | +void __noreturn cpu_startup_entry(enum cpuhp_state state); | |
| 171 | 171 | |
| 172 | 172 | void cpu_idle_poll_ctrl(bool enable); |
| 173 | 173 | |