]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: avoid warnings in vport_from_priv
authorDaniele Di Proietto <daniele.di.proietto@gmail.com>
Mon, 3 Feb 2014 22:07:43 +0000 (14:07 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 16 May 2014 20:40:28 +0000 (13:40 -0700)
commitba3ffb8434eb1c6ce5df9126676d4e717a49c1fb
treeef820a32b1e1e263e0175df766f584e910c32072
parent07efa8c9db2a50f3110edb15de7571415d3e1fe7
openvswitch: avoid warnings in vport_from_priv

This change, firstly, avoids declaring the formal parameter const,
since it is treated as non const. (to avoid -Wcast-qual)
Secondly, it cast the pointer from void* to u8*, since it is used
in arithmetic (to avoid -Wpointer-arith)

Signed-off-by: Daniele Di Proietto <daniele.di.proietto@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/vport.h