summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/davicom
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-10-01 05:47:38 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-03 07:30:52 +0200
commit258b6d141878530ba1f8fc44db683822389de914 (patch)
treeb5707fbb3926451a336745008fbc38d8b27c85a4 /drivers/net/ethernet/davicom
parentcxgb4: Use proper enum in cxgb4_dcb_handle_fw_update (diff)
downloadlinux-258b6d141878530ba1f8fc44db683822389de914.tar.xz
linux-258b6d141878530ba1f8fc44db683822389de914.zip
cxgb4: Use proper enum in IEEE_FAUX_SYNC
Clang warns when one enumerated type is implicitly converted to another. drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c:390:4: warning: implicit conversion from enumeration type 'enum cxgb4_dcb_state' to different enumeration type 'enum cxgb4_dcb_state_input' [-Wenum-conversion] IEEE_FAUX_SYNC(dev, dcb); ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.h:70:10: note: expanded from macro 'IEEE_FAUX_SYNC' CXGB4_DCB_STATE_FW_ALLSYNCED); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Use the equivalent value of the expected type to silence Clang while resulting in no functional change. CXGB4_DCB_STATE_FW_ALLSYNCED = CXGB4_DCB_INPUT_FW_ALLSYNCED = 3 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/davicom')
0 files changed, 0 insertions, 0 deletions