Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Catalin Marinas
On Wed, Mar 22, 2017 at 05:29:19PM +0100, Arnd Bergmann wrote: > On Wed, Mar 22, 2017 at 4:32 PM, Catalin Marinas > wrote: > > On Wed, Mar 22, 2017 at 03:51:54PM +0100, Arnd Bergmann wrote: > >> On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas > >> wrote: > > >> Taht was certainly not intended,

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Arnd Bergmann
On Wed, Mar 22, 2017 at 4:32 PM, Catalin Marinas wrote: > On Wed, Mar 22, 2017 at 03:51:54PM +0100, Arnd Bergmann wrote: >> On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas >> wrote: >> Taht was certainly not intended, and I don't see yet what exactly is going >> on. >> What is your setting for

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Catalin Marinas
On Wed, Mar 22, 2017 at 03:51:54PM +0100, Arnd Bergmann wrote: > On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas > wrote: > > Hi Arnd, > > > > On Tue, Mar 14, 2017 at 10:39:21PM +0100, Arnd Bergmann wrote: > >> This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as > >> asm(BUG_INSTR) wi

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Arnd Bergmann
On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas wrote: > Hi Arnd, > > On Tue, Mar 14, 2017 at 10:39:21PM +0100, Arnd Bergmann wrote: >> This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as >> asm(BUG_INSTR) without CONFIG_BUG") to make the behavior of >> arm64 consistent with arm and x

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Catalin Marinas
Hi Arnd, On Tue, Mar 14, 2017 at 10:39:21PM +0100, Arnd Bergmann wrote: > This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as > asm(BUG_INSTR) without CONFIG_BUG") to make the behavior of > arm64 consistent with arm and x86, and avoids lots of warnings in > randconfig builds, such as:

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-21 Thread Catalin Marinas
On Tue, Mar 21, 2017 at 11:51:57AM +, Will Deacon wrote: > On Tue, Mar 21, 2017 at 11:35:16AM +0100, Arnd Bergmann wrote: > > On Mon, Mar 20, 2017 at 8:09 PM, Will Deacon wrote: > > > > >> > > >> -#define BUG() do { \ > > >> - _BUG_FLAGS(0);

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-21 Thread Will Deacon
On Tue, Mar 21, 2017 at 11:35:16AM +0100, Arnd Bergmann wrote: > On Mon, Mar 20, 2017 at 8:09 PM, Will Deacon wrote: > > >> > >> -#define BUG() do { \ > >> - _BUG_FLAGS(0); \ > >> - unreachable(); \ > >> +#define

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-21 Thread Arnd Bergmann
On Mon, Mar 20, 2017 at 8:09 PM, Will Deacon wrote: >> >> -#define BUG() do { \ >> - _BUG_FLAGS(0); \ >> - unreachable(); \ >> +#define _BUG_FLAGS(flags) __BUG_FLAGS(flags) > > What is this for? I don't see _BUG_F

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-20 Thread Will Deacon
Hi Arnd, On Tue, Mar 14, 2017 at 10:39:21PM +0100, Arnd Bergmann wrote: > This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as > asm(BUG_INSTR) without CONFIG_BUG") to make the behavior of > arm64 consistent with arm and x86, and avoids lots of warnings in > randconfig builds, such as:

[PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-14 Thread Arnd Bergmann
This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as asm(BUG_INSTR) without CONFIG_BUG") to make the behavior of arm64 consistent with arm and x86, and avoids lots of warnings in randconfig builds, such as: kernel/seccomp.c: In function '__seccomp_filter': kernel/seccomp.c:666:1: error: