linux/drivers/net
Nathan Chancellor 0e1fd69cff i40e: Use proper enum in i40e_ndo_set_vf_link_state
[ Upstream commit 43ade6ad18 ]

Clang warns when one enumerated type is converted implicitly to another.

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:4214:42: warning:
implicit conversion from enumeration type 'enum i40e_aq_link_speed' to
different enumeration type 'enum virtchnl_link_speed'
      [-Wenum-conversion]
                pfe.event_data.link_event.link_speed = I40E_LINK_SPEED_40GB;
                                                     ~ ^~~~~~~~~~~~~~~~~~~~
1 warning generated.

Use the proper enum from virtchnl_link_speed, which has the same value
as I40E_LINK_SPEED_40GB, VIRTCHNL_LINK_SPEED_40GB. This appears to be
missed by commit ff3f4cc267 ("virtchnl: finish conversion to virtchnl
interface").

Link: https://github.com/ClangBuiltLinux/linux/issues/81
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-24 08:20:00 +01:00
..
appletalk
arcnet
bonding bonding: fix unexpected IFF_BONDING bit unset 2019-11-12 19:21:02 +01:00
caif
can slcan: Fix memory leak in error path 2019-11-20 18:47:53 +01:00
dsa net: dsa: b53: Do not clear existing mirrored port mask 2019-11-10 11:27:52 +01:00
ethernet i40e: Use proper enum in i40e_ndo_set_vf_link_state 2019-11-24 08:20:00 +01:00
fddi
fjes fjes: Handle workqueue allocation failure 2019-11-12 19:21:12 +01:00
hamradio
hippi
hyperv hv_netvsc: Fix error handling in netvsc_attach() 2019-11-12 19:21:15 +01:00
ieee802154
ipvlan
netdevsim
phy net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused 2019-11-20 18:47:53 +01:00
plip
ppp
slip slip: Fix memory leak in slip_open error path 2019-11-20 18:45:12 +01:00
team
usb net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size() 2019-11-24 08:19:10 +01:00
vmxnet3
wan
wimax
wireless ath9k: fix reporting calculated new FFT upper max 2019-11-24 08:19:36 +01:00
xen-netback net: xen-netback: fix return type of ndo_start_xmit function 2019-11-24 08:19:18 +01:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c macsec: fix refcnt leak in module exit routine 2019-11-12 19:21:02 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c failover: Fix error return code in net_failover_create 2019-11-20 18:46:12 +01:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c