Re: [PATCH] net: simplify napi_synchronize() to avoid warnings

2016-01-24 Thread David Miller
From: Arnd Bergmann Date: Fri, 22 Jan 2016 11:43:44 +0100 > The napi_synchronize() function is defined twice: The definition > for SMP builds waits for other CPUs to be done, while the uniprocessor > variant just contains a barrier and ignores its argument. > > In the mvneta

[PATCH] net: simplify napi_synchronize() to avoid warnings

2016-01-22 Thread Arnd Bergmann
The napi_synchronize() function is defined twice: The definition for SMP builds waits for other CPUs to be done, while the uniprocessor variant just contains a barrier and ignores its argument. In the mvneta driver, this leads to a warning about an unused variable when we lookup the NAPI struct