Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Arnd Bergmann
On Wed, Nov 7, 2018 at 9:55 PM Andrew Morton wrote: > > On Wed, 7 Nov 2018 17:45:16 +0300 Andrey Ryabinin > wrote: > > > From: Arnd Bergmann > > --- a/lib/ubsan.c > > +++ b/lib/ubsan.c > > @@ -427,8 +427,7 @@ void __ubsan_handle_shift_out_of_bounds(struct > > shift_out_of_bounds_data *data,

Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Arnd Bergmann
On Wed, Nov 7, 2018 at 9:55 PM Andrew Morton wrote: > > On Wed, 7 Nov 2018 17:45:16 +0300 Andrey Ryabinin > wrote: > > > From: Arnd Bergmann > > --- a/lib/ubsan.c > > +++ b/lib/ubsan.c > > @@ -427,8 +427,7 @@ void __ubsan_handle_shift_out_of_bounds(struct > > shift_out_of_bounds_data *data,

Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Andrew Morton
On Wed, 7 Nov 2018 17:45:16 +0300 Andrey Ryabinin wrote: > From: Arnd Bergmann > > 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

Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Andrew Morton
On Wed, 7 Nov 2018 17:45:16 +0300 Andrey Ryabinin wrote: > From: Arnd Bergmann > > 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

Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 6:45 AM Andrey Ryabinin wrote: > > From: Arnd Bergmann > > 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

Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 6:45 AM Andrey Ryabinin wrote: > > From: Arnd Bergmann > > 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

[PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Andrey Ryabinin
From: Arnd Bergmann 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 is actually a

[PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Andrey Ryabinin
From: Arnd Bergmann 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 is actually a