datapath: Drop constness of datapath pointers.
authorJesse Gross <jesse@nicira.com>
Wed, 29 Dec 2010 19:42:13 +0000 (11:42 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 30 Dec 2010 17:35:53 +0000 (09:35 -0800)
commit027f90073af54d394f629f4f091a316b26beec67
tree275bec81f3bb6f66fb55eceea3fbd8382c71e20b
parent1cf7d1b80f1e88ffc533f32081a2ea3c48b1213e
datapath: Drop constness of datapath pointers.

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@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c