# Re: \[PATCH v2 11/19\] arm64: entry: move bad\_mode() to entry-common.c

- From: Joey Gouly \<joey.gouly@arm.com\>
- Date: 2021-05-21 16:48:18 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/05/8807461
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/05/8807285/t.md

```text
On Wed, May 19, 2021 at 01:38:54PM +0100, Mark Rutland wrote:
> In subsequent patches we'll rework the way bad_mode is called by
> exception entry code. In preparation for this, let's move bad_mode()
> itself into entry-common.c.
> 
> Let's also mark it as noinstr (e.g. to prevent it being kprobed), and
> let's also make the `handler` array a local variable, as this is only
> use by bad_mode(), and will be removed entirely in a subsequent patch.
> 
> There should be no functional change as a result of this patch.
> 

Reviewed-by: Joey Gouly <joey.gouly@arm.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
