Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1500341
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] xen-netback: fix type mismatch warning |
| Date | 2016-10-13 17:20 +0200 |
| Message-ID | <srPXA-5cV-11@gated-at.bofh.it> (permalink) |
| References | <srtaG-5Pq-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Arnd Bergmann <arnd@arndb.de>
Date: Wed, 12 Oct 2016 16:54:01 +0200
> 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: eb1723a29b9a ("xen-netback: refactor guest rx")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Applied, thanks.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] xen-netback: fix type mismatch warning Arnd Bergmann <arnd@arndb.de> - 2016-10-12 17:00 +0200 RE: [PATCH] xen-netback: fix type mismatch warning Paul Durrant <Paul.Durrant@citrix.com> - 2016-10-13 03:30 +0200 Re: [PATCH] xen-netback: fix type mismatch warning David Miller <davem@davemloft.net> - 2016-10-13 17:20 +0200
csiph-web