Re: [PATCH] ext4: use BUG() instead of BUG_ON(1)

From: Theodore Ts'o
Date: Sun Apr 07 2019 - 12:30:27 EST


On Mon, Mar 25, 2019 at 02:00:25PM +0100, Arnd Bergmann wrote:
> BUG_ON(1) leads to bogus warnings from clang when
> CONFIG_PROFILE_ANNOTATED_BRANCHES is set:
>
> ....
>
> Change it to BUG() so clang can see that this code path can never
> continue.

Thanks, applied.

- Ted