linux/drivers/net/xen-netback
Arnd Bergmann f112be65fd xen-netback: fix type mismatch warning
Wiht the latest rework of the xen-netback driver, we get a warning
on ARM about the types passed into min():

drivers/net/xen-netback/rx.c: In function 'xenvif_rx_next_chunk':
include/linux/kernel.h:739:16: error: comparison of distinct pointer types lacks a cast [-Werror]

The reason is that XEN_PAGE_SIZE is not size_t here. There
is no actual bug, and we can easily avoid the warning using the
min_t() macro instead of min().

Fixes: eb1723a29b ("xen-netback: refactor guest rx")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-13 11:02:25 -04:00
..
common.h xen-netback: (re-)create a debugfs node for hash information 2016-10-13 09:53:09 -04:00
hash.c xen-netback: (re-)create a debugfs node for hash information 2016-10-13 09:53:09 -04:00
interface.c xen-netback: make sure that hashes are not send to unaware frontends 2016-10-07 23:52:33 -04:00
Makefile xen-netback: separate guest side rx code into separate module 2016-10-06 20:37:35 -04:00
netback.c xen-netback: separate guest side rx code into separate module 2016-10-06 20:37:35 -04:00
rx.c xen-netback: fix type mismatch warning 2016-10-13 11:02:25 -04:00
xenbus.c xen-netback: (re-)create a debugfs node for hash information 2016-10-13 09:53:09 -04:00