[ovs-dev] [PATCH v3] datapath: Fix sparse warning for symbol 'BUILD_BUG_ON_NOT_POWER_OF_2'

Jesse Gross jesse at nicira.com
Tue Oct 30 22:10:53 UTC 2012


On Tue, Oct 30, 2012 at 2:15 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
> v2-v3:
>         - Added bug.h to Modules.mk
> v1-v2:
>         - Moved BUILD_BUG_ON_NOT_POWER_OF_2 symbol definition for bug.h
> --8<--------------------------cut here-------------------------->8--
>
> BUILD_BUG_ON_NOT_POWER_OF_2 symbol is moved from kernel.h to
> bug.h in 3.4.  Therefore sparse is giving warning:
>
> include/linux/bug.h:15:9: warning: preprocessor token
> BUILD_BUG_ON_NOT_POWER_OF_2 redefined
> ovs/datapath/linux/compat/include/linux/kernel.h:44:9:
> this was the original definition
>
> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>

Acked-by: Jesse Gross <jesse at nicira.com>



More information about the dev mailing list