[ovs-dev] [PATCH] ofproto-dpif: add thread-safety annotation to vsp_{remove, add}

Simon Horman horms at verge.net.au
Fri Aug 23 00:25:31 UTC 2013


On Thu, Aug 22, 2013 at 05:07:04PM -0700, Ben Pfaff wrote:
> On Fri, Aug 23, 2013 at 09:05:25AM +0900, Simon Horman wrote:
> > On Thu, Aug 22, 2013 at 09:41:00AM -0700, Ben Pfaff wrote:
> > > On Thu, Aug 22, 2013 at 02:30:10PM +0900, Simon Horman wrote:
> > > > This corrects an minor oversight in "ofproto-dpif: Make vlan splinters thread
> > > > safe." which add thread-safety to these functions.
> > > > 
> > > > Signed-off-by: Simon Horman <horms at verge.net.au>
> > > 
> > > Doesn't compile:
> > > 
> > > ../ofproto/ofproto-dpif.c:6179:18: error: use of undeclared identifier 'ofproto'
> > >     OVS_EXCLUDED(ofproto->vsp_mutex)
> > >                  ^
> > > ../lib/compiler.h:128:57: note: expanded from macro 'OVS_EXCLUDED'
> > > #define OVS_EXCLUDED(...) __attribute__((locks_excluded(__VA_ARGS__)))
> > >                                                         ^
> > > ../ofproto/ofproto-dpif.c:6200:18: error: use of undeclared identifier 'ofproto'
> > >     OVS_EXCLUDED(ofproto->vsp_mutex)
> > >                  ^
> > > ../lib/compiler.h:128:57: note: expanded from macro 'OVS_EXCLUDED'
> > > #define OVS_EXCLUDED(...) __attribute__((locks_excluded(__VA_ARGS__)))
> > 
> > Thanks. which version of clang do I need to show this up?
> 
> Bleeding edge unreleased clang.
> 
> I use the nightly builds:
>         http://blog.llvm.org/2013/04/llvm-debianubuntu-nightly-packages.html

Thanks! I have the latest build installed now.



More information about the dev mailing list