Re: [PATCH] vhost: silence an unused-variable warning

2019-03-09 Thread Michael S. Tsirkin
On Fri, Mar 08, 2019 at 03:17:26PM -0800, David Miller wrote: > From: Arnd Bergmann > Date: Wed, 6 Mar 2019 12:05:49 +0100 > > > On some architectures, the MMU can be disabled, leading to access_ok() > > becoming an empty macro that does not evaluate its size argument, > > which in turn produces

Re: [PATCH] vhost: silence an unused-variable warning

2019-03-08 Thread David Miller
From: Arnd Bergmann Date: Wed, 6 Mar 2019 12:05:49 +0100 > On some architectures, the MMU can be disabled, leading to access_ok() > becoming an empty macro that does not evaluate its size argument, > which in turn produces an unused-variable warning: > > drivers/vhost/vhost.c:1191:9: error: unu

Re: [PATCH] vhost: silence an unused-variable warning

2019-03-06 Thread Jason Wang
On 2019/3/6 下午7:05, Arnd Bergmann wrote: On some architectures, the MMU can be disabled, leading to access_ok() becoming an empty macro that does not evaluate its size argument, which in turn produces an unused-variable warning: drivers/vhost/vhost.c:1191:9: error: unused variable 's' [-Werro

[PATCH] vhost: silence an unused-variable warning

2019-03-06 Thread Arnd Bergmann
On some architectures, the MMU can be disabled, leading to access_ok() becoming an empty macro that does not evaluate its size argument, which in turn produces an unused-variable warning: drivers/vhost/vhost.c:1191:9: error: unused variable 's' [-Werror,-Wunused-variable] size_t s = vhost