diff options
| author | Nathan Chancellor <[email protected]> | 2018-09-21 03:13:59 -0700 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2018-10-03 12:31:47 -0700 |
| commit | 43ade6ad18416b8fd5bb3c9e9789faa666527eec (patch) | |
| tree | 8d83691c3d428e25e55f391cba9c4ed34519b1f1 /tools/perf/scripts/python/sched-migration.py | |
| parent | 617cc646a7a09c7abf507981a81f441fc79b0511 (diff) | |
i40e: Use proper enum in i40e_ndo_set_vf_link_state
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 ff3f4cc267f6 ("virtchnl: finish conversion to virtchnl
interface").
Link: https://github.com/ClangBuiltLinux/linux/issues/81
Signed-off-by: Nathan Chancellor <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions