2021-06-26 09:46:47

by Russell King (Oracle)

[permalink] [raw]
Subject: Re: [PATCH] arm: mm: Prefer unsigned int to bare use of unsigned

On Sat, Jun 26, 2021 at 02:58:33PM +0800, Jinchao Wang wrote:
> * By default, we write directly to secure registers. Platforms must
> * override this if they are running non-secure.
> */
> -static void l2c_write_sec(unsigned long val, void __iomem *base, unsigned reg)
> +static void l2c_write_sec(unsigned long val, void __iomem *base, unsigned int reg)

... and then I'll get another patch because this now goes over 80
characters. No thanks.

There is nothing inherently wrong with "unsigned" - it's always been
legal C, and I'd prefer to keep the code as-is under arch/arm in
regard of this.

Thanks.

--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!