[PATCH v2 3/4] ARM: Reduce the number of #ifdef CONFIG_CPU_SW_DOMAIN_PAN
Russell King (Oracle)
linux at armlinux.org.uk
Mon Mar 11 09:02:44 PDT 2024
On Wed, Feb 21, 2024 at 12:04:02AM +0100, Linus Walleij wrote:
> @@ -24,9 +24,10 @@
> * perform such accesses (eg, via list poison values) which could then
> * be exploited for priviledge escalation.
> */
> +#if defined(CONFIG_CPU_SW_DOMAIN_PAN)
> +
> static __always_inline unsigned int uaccess_save_and_enable(void)
> {
> -#ifdef CONFIG_CPU_SW_DOMAIN_PAN
This is an interesting way to reduce the #ifdef count... why switch it
from #ifdef to #if defined ?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list