[Linux-stm32] [PATCH] mtd: rawnand: stm32_fmc2: avoid warnings when building with W=1 option
Miquel Raynal
miquel.raynal at bootlin.com
Mon Jul 1 07:11:28 UTC 2019
Hi Christophe,
Christophe Kerello <christophe.kerello at st.com> wrote on Fri, 21 Jun
2019 16:43:09 +0200:
> This patch solves warnings detected by setting W=1 when building.
>
> Warnings type detected:
> drivers/mtd/nand/raw/stm32_fmc2_nand.c: In function ‘stm32_fmc2_calc_timings’:
> drivers/mtd/nand/raw/stm32_fmc2_nand.c:1417:23: warning: comparison is
> always false due to limited range of data type [-Wtype-limits]
> else if (tims->twait > FMC2_PMEM_PATT_TIMING_MASK)
>
> Signed-off-by: Christophe Kerello <christophe.kerello at st.com>
> ---
Applied to nand/next, thanks.
Miquèl
More information about the Linux-stm32
mailing list