> On RHEL 7.5, internal_dev_change_mtu will not be used and the compiler
> will throw a warning about it:
>
>   CC [M]  /root/ovs/datapath/linux/vport-internal_dev.o
> /root/ovs/datapath/linux/vport-internal_dev.c:92:12: warning:
> ‘internal_dev_change_mtu’ defined but not used [-Wunused-function]
>  static int internal_dev_change_mtu(struct net_device *dev, int new_mtu)
>
> Can we have the same conditional [0] around that function definition
> to avoid such warning ?
>

Sure, I add that condition to avoid the warning in v2.
https://patchwork.ozlabs.org/patch/912095/

Thanks,

-Yi-Hung
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to