]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Silence semantic parser warnings
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 16 Apr 2019 17:24:38 +0000 (10:24 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 23 May 2019 17:51:54 +0000 (10:51 -0700)
commit7fcc8f3ed545ac3d9abfb4f8663085038e0753dc
tree741c7e6d40973319506adad7483d3b0497942aa5
parentaef223076e2a933e868d3612816e3abfad5b0772
ice: Silence semantic parser warnings

Recent versions of sparse warn about casting pointers to/from restricted
endian types in the Linux driver.  Silence those with the compiler
attribute __force macro from the Linux kernel to force casts to/from
restricted endian types.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_nvm.c
drivers/net/ethernet/intel/ice/ice_switch.c