[ovs-dev] [PATCH] datapath: Fix sparse warning for symbol 'BUILD_BUG_ON_NOT_POWER_OF_2'
blp at nicira.com
Thu Oct 25 20:29:10 UTC 2012
On Thu, Oct 25, 2012 at 01:28:02PM -0700, Pravin Shelar wrote:
> On Thu, Oct 25, 2012 at 1:19 PM, Ben Pfaff <blp at nicira.com> wrote:
> > On Sat, Oct 27, 2012 at 01:07:24PM -0700, Pravin B Shelar wrote:
> >> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
> > I'm curious, what warning does sparse give? (You could add this to
> > the commit message.)
> This symbol was moved from kernel.h to bug.h in 3.4.
That's the crucial bit of information that I didn't know.
> warning is as follows, I will add it to commit msg.
> include/linux/bug.h:15:9: warning: preprocessor token
> BUILD_BUG_ON_NOT_POWER_OF_2 redefined
> this was the original definition
That makes sense, thanks.
More information about the dev