[ovs-dev] [PATCH] datapath: compat: Fix build on RHEL 7.5
Yi-Hung Wei
yihung.wei at gmail.com
Fri May 11 17:34:22 UTC 2018
> 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
More information about the dev
mailing list