[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix sparse warnings.

Justin Pettit jpettit at nicira.com
Sat Jul 26 21:17:49 UTC 2014


Acked-by: Justin Pettit <jpettit at nicira.com>



On July 26, 2014 at 12:19:21 PM, Ben Pfaff (blp at nicira.com) wrote:
> 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 
> ---
> ofproto/ofproto-dpif-upcall.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c 
> index f00c17f..654fbd3 100644
> --- a/ofproto/ofproto-dpif-upcall.c
> +++ b/ofproto/ofproto-dpif-upcall.c
> @@ -757,7 +757,7 @@ upcall_init(struct upcall *upcall, struct flow *flow, struct ofpbuf 
> *packet,
> xlate_actions(&xin, &upcall->xout);
> }
> 
> -void
> +static void
> free_upcall(struct upcall *upcall)
> {
> xlate_out_uninit(&upcall->xout);
> @@ -845,7 +845,7 @@ read_upcalls(struct handler *handler,
> return n_upcalls;
> }
> 
> -int
> +static int
> convert_upcall(struct udpif *udpif, struct upcall *upcall)
> {
> struct dpif_upcall *dupcall = &upcall->dpif_upcall;
> --
> 1.9.1
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
> 




More information about the dev mailing list