On Fri, Dec 08, 2017 at 10:04:23PM +0800, Yi Yang wrote:
> IETF NSH draft added a new filed ttl in NSH header, this patch
> is to add new nsh key 'ttl' for it.
>
> Signed-off-by: Yi Yang <[email protected]>
Provokes a new Clang warning:
../lib/odp-util.c:3198:17: error: enumeration value
'OVS_NSH_KEY_ATTR_UNSPEC' not explicitly handled in switch
[-Werror,-Wswitch-enum]
and several new "sparse" warnings:
../include/openvswitch/nsh.h:314:14: warning: cast to restricted ovs_be32
../include/openvswitch/nsh.h:314:14: warning: cast from restricted ovs_be16
../include/openvswitch/nsh.h:314:14: warning: restricted ovs_be32 degrades
to integer
../include/openvswitch/nsh.h:314:40: warning: restricted ovs_be16 degrades
to integer
../include/openvswitch/nsh.h:314:37: warning: incorrect type in return
expression (different base types)
../include/openvswitch/nsh.h:314:37: expected restricted ovs_be32
../include/openvswitch/nsh.h:314:37: got unsigned int
../include/openvswitch/nsh.h:327:30: warning: incorrect type in initializer
(different base types)
../include/openvswitch/nsh.h:327:30: expected restricted ovs_be32
[usertype] path_hdr
../include/openvswitch/nsh.h:327:30: got unsigned int
../include/openvswitch/nsh.h:328:19: warning: restricted ovs_be32 degrades
to integer
../include/openvswitch/nsh.h:314:14: warning: cast to restricted ovs_be32
../include/openvswitch/nsh.h:314:14: warning: cast from restricted ovs_be16
../include/openvswitch/nsh.h:314:14: warning: restricted ovs_be32 degrades
to integer
../include/openvswitch/nsh.h:314:40: warning: restricted ovs_be16 degrades
to integer
../include/openvswitch/nsh.h:314:37: warning: incorrect type in return
expression (different base types)
../include/openvswitch/nsh.h:314:37: expected restricted ovs_be32
../include/openvswitch/nsh.h:314:37: got unsigned int
../include/openvswitch/nsh.h:334:30: warning: incorrect type in initializer
(different base types)
../include/openvswitch/nsh.h:334:30: expected restricted ovs_be32
[usertype] path_hdr
../include/openvswitch/nsh.h:334:30: got unsigned int
../include/openvswitch/nsh.h:335:13: warning: restricted ovs_be32 degrades
to integer
../include/openvswitch/nsh.h:314:14: warning: cast to restricted ovs_be32
../include/openvswitch/nsh.h:314:14: warning: cast from restricted ovs_be16
../include/openvswitch/nsh.h:314:14: warning: restricted ovs_be32 degrades
to integer
../include/openvswitch/nsh.h:314:40: warning: restricted ovs_be16 degrades
to integer
../include/openvswitch/nsh.h:314:37: warning: incorrect type in return
expression (different base types)
../include/openvswitch/nsh.h:314:37: expected restricted ovs_be32
../include/openvswitch/nsh.h:314:37: got unsigned int
Thanks,
Ben.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev