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
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 | |
| @@ -184,6 +184,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, · 183 unmodified lines | ||
| 184 | 184 | "do_group_exit", |
| 185 | 185 | "stop_this_cpu", |
| 186 | 186 | "__invalid_creds", |
| 187 | + "cpu_startup_entry", | |
| 187 | 188 | }; |
| 188 | 189 | |
| 189 | 190 | if (!func) |