mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
ofproto-dpif-upcall: Fix sparse warnings.
Fixes these warnings from "sparse":
../ofproto/ofproto-dpif-upcall.c:761:1: warning: symbol 'free_upcall' was
not declared. Should it be static?
../ofproto/ofproto-dpif-upcall.c:849:1: warning: symbol 'convert_upcall'
was not declared. Should it be static?
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
This commit is contained in:
@@ -757,7 +757,7 @@ upcall_init(struct upcall *upcall, struct flow *flow, struct ofpbuf *packet,
|
|||||||
xlate_actions(&xin, &upcall->xout);
|
xlate_actions(&xin, &upcall->xout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
free_upcall(struct upcall *upcall)
|
free_upcall(struct upcall *upcall)
|
||||||
{
|
{
|
||||||
xlate_out_uninit(&upcall->xout);
|
xlate_out_uninit(&upcall->xout);
|
||||||
@@ -845,7 +845,7 @@ read_upcalls(struct handler *handler,
|
|||||||
return n_upcalls;
|
return n_upcalls;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
convert_upcall(struct udpif *udpif, struct upcall *upcall)
|
convert_upcall(struct udpif *udpif, struct upcall *upcall)
|
||||||
{
|
{
|
||||||
struct dpif_upcall *dupcall = &upcall->dpif_upcall;
|
struct dpif_upcall *dupcall = &upcall->dpif_upcall;
|
||||||
|
|||||||
Reference in New Issue
Block a user