Re: [PATCH 12/15] pinctrl: sh-pfc: Make pinmux_cfg_reg.var_field_width[] variable-length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 13, 2018 at 07:27:11PM +0100, Geert Uytterhoeven wrote:
> pinmux_cfg_reg.var_field_width[] is actually a variable-length array,
> terminated by a zero, and counting at most r_width entries.
> Usually the number of entries is much smaller than r_width, so the
> ability to catch bugs at compile time through an "excess elements in
> array initializer" warning is fairly limited.
> 
> Hence make the array variable-length, decreasing kernel size slightly.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Reviewed-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux