diff --git a/include/linux/compiler.h b/include/linux/compiler.h index c9323e205dc106fd966cf9cb466d662f8e4011a3..bb22908c79e836ed2582b0ed60cda57cdd803418 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -124,7 +124,10 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, # define ASM_UNREACHABLE #endif #ifndef unreachable -# define unreachable() do { annotate_reachable(); do { } while (1); } while (0) +# define unreachable() do { \ + annotate_unreachable(); \ + __builtin_unreachable(); \ +} while (0) #endif /*