[ovs-dev] [PATCH 7/7] datapath: Drop constness of datapath pointers.

Ben Pfaff blp at nicira.com
Thu Dec 30 17:32:32 UTC 2010


On Wed, Dec 29, 2010 at 03:41:35PM -0800, Jesse Gross wrote:
> A few places marked struct datapath pointers as const since they
> didn't expect to make modifications.  However, when compiled with
> lockdep the datapath mutex pointer is passed to lockdep_is_held(),
> which has a non-const argument.  That provoked warnings about
> casting away the const, so this drops the const from the original
> pointers.
> 
> Reported-by: Ben Pfaff <blp at nicira.com>
> Signed-off-by: Jesse Gross <jesse at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>




More information about the dev mailing list