Messages in this thread Patch in this message | | | From | Arnd Bergmann <> | Subject | [PATCH] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn | Date | Fri, 2 Feb 2018 16:47:39 +0100 |
| |
gcc-8 complains about the prototype for this function:
lib/ubsan.c:432:1: error: ignoring attribute 'noreturn' in declaration of a built-in function '__ubsan_handle_builtin_unreachable' because it conflicts with attribute 'const' [-Werror=attributes]
This removes the noreturn attribute.
Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- lib/ubsan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ubsan.c b/lib/ubsan.c index 59fee96c29a0..aa817d79c47c 100644 --- a/lib/ubsan.c +++ b/lib/ubsan.c @@ -427,7 +427,7 @@ void __ubsan_handle_shift_out_of_bounds(struct shift_out_of_bounds_data *data, EXPORT_SYMBOL(__ubsan_handle_shift_out_of_bounds); -void __noreturn +void __ubsan_handle_builtin_unreachable(struct unreachable_data *data) { unsigned long flags; -- 2.9.0
| |