summaryrefslogtreecommitdiff
path: root/net/openvswitch/vport.h
diff options
context:
space:
mode:
authorDaniele Di Proietto <daniele.di.proietto@gmail.com>2014-02-03 14:08:29 -0800
committerJesse Gross <jesse@nicira.com>2014-05-16 13:40:28 -0700
commit07dc0602c5976cfc36ccffe5c6d73234f204d585 (patch)
tree0e2b7f593aec3d028874a55780fcdd82ed3d0269 /net/openvswitch/vport.h
parentd0b4da137508db3d38998eae7f62c0f9699ee08c (diff)
downloadlwn-07dc0602c5976cfc36ccffe5c6d73234f204d585.tar.gz
lwn-07dc0602c5976cfc36ccffe5c6d73234f204d585.zip
openvswitch: avoid cast-qual warning in vport_priv
This function must cast a const value to a non const value. By adding an uintptr_t cast the warning is suppressed. To avoid the cast (proper solution) several function signatures must be changed. Signed-off-by: Daniele Di Proietto <daniele.di.proietto@gmail.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/vport.h')
-rw-r--r--net/openvswitch/vport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h
index 3e12940985a2..8d721e62f388 100644
--- a/net/openvswitch/vport.h
+++ b/net/openvswitch/vport.h
@@ -172,7 +172,7 @@ void ovs_vport_deferred_free(struct vport *vport);
*/
static inline void *vport_priv(const struct vport *vport)
{
- return (u8 *)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN);
+ return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN);
}
/**