[PATCH] arm64: Make ARMV8_DEPRECATED depend on SYSCTL

Arnd Bergmann arnd at arndb.de
Mon Nov 6 12:34:27 PST 2017


On Mon, Nov 6, 2017 at 7:07 PM, Dave Martin <Dave.Martin at arm.com> wrote:
> If CONFIG_SYSCTL=n and CONFIG_ARMV8_DEPRECATED=y, the deprecated
> instruction emulation code currently leaks some memory at boot
> time, and won't have any runtime control interface.  This does
> not feel like useful or intended behaviour...
>
> This patch adds a dependency on CONFIG_SYSCTL, so that such a
> kernel can't be built in the first place.
>
> It's probably not worth adding the error-handling / cleanup code
> that would be needed to deal with this otherwise: people who
> desperately need the emulation can still enable SYSCTL.
>
> Signed-off-by: Dave Martin <Dave.Martin at arm.com>

Makes sense here, but I think we might still want to apply the patch
I proposed for other users.

Acked-by: Arnd Bergmann <arnd at arndb.de>



More information about the linux-arm-kernel mailing list