Re: [PATCH v2 2/2] spi: core: Use min_t(size_t,..)

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

 



> On 17.02.2016, at 18:42, Fabio Estevam <fabio.estevam@xxxxxxx> wrote:
> 
> Use min_t(size_t,..) in order to avoid the following 
> build warning on ARM64:
> 
> include/linux/kernel.h:754:17: warning: comparison of distinct pointer types lacks a cast
>  (void) (&_min1 == &_min2);  \
>                 ^
> drivers/spi/spi.c:2304:17: note: in expansion of macro 'min'
>  xfers[0].len = min(maxsize, xfer[0].len);
> 
> Suggested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxx>
Thanks, was busy with other stuff and thus could not 
create a patch myself.

Acked-by: Martin Sperl <kernel@xxxxxxxxxxxxxxxx>--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [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