linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/ethernet/intel/ice/ice_flex_pipe.c:2826:44: sparse: sparse: non size-preserving pointer to integer cast
@ 2020-07-05  4:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-05  4:29 UTC (permalink / raw)
  To: Henry Tieman; +Cc: kbuild-all, linux-kernel, Jeff Kirsher, Tony Nguyen

[-- Attachment #1: Type: text/plain, Size: 2282 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   35e884f89df4c48566d745dc5a97a0d058d04263
commit: 148beb612031255156d68b342170140524afb36e ice: Initialize Flow Director resources
date:   6 weeks ago
config: i386-randconfig-s001-20200705 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-3-gfa153962-dirty
        git checkout 148beb612031255156d68b342170140524afb36e
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> drivers/net/ethernet/intel/ice/ice_flex_pipe.c:2826:44: sparse: sparse: non size-preserving pointer to integer cast
--
>> drivers/net/ethernet/intel/ice/ice_flow.c:832:20: sparse: sparse: non size-preserving pointer to integer cast
>> drivers/net/ethernet/intel/ice/ice_flow.c:860:17: sparse: sparse: non size-preserving integer to pointer cast

vim +2826 drivers/net/ethernet/intel/ice/ice_flex_pipe.c

  2810	
  2811	/**
  2812	 * ice_free_flow_profs - free flow profile entries
  2813	 * @hw: pointer to the hardware structure
  2814	 * @blk_idx: HW block index
  2815	 */
  2816	static void ice_free_flow_profs(struct ice_hw *hw, u8 blk_idx)
  2817	{
  2818		struct ice_flow_prof *p, *tmp;
  2819	
  2820		mutex_lock(&hw->fl_profs_locks[blk_idx]);
  2821		list_for_each_entry_safe(p, tmp, &hw->fl_profs[blk_idx], l_entry) {
  2822			struct ice_flow_entry *e, *t;
  2823	
  2824			list_for_each_entry_safe(e, t, &p->entries, l_entry)
  2825				ice_flow_rem_entry(hw, (enum ice_block)blk_idx,
> 2826						   ICE_FLOW_ENTRY_HNDL(e));
  2827	
  2828			list_del(&p->l_entry);
  2829			devm_kfree(ice_hw_to_dev(hw), p);
  2830		}
  2831		mutex_unlock(&hw->fl_profs_locks[blk_idx]);
  2832	
  2833		/* if driver is in reset and tables are being cleared
  2834		 * re-initialize the flow profile list heads
  2835		 */
  2836		INIT_LIST_HEAD(&hw->fl_profs[blk_idx]);
  2837	}
  2838	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34991 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-05  4:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-05  4:29 drivers/net/ethernet/intel/ice/ice_flex_pipe.c:2826:44: sparse: sparse: non size-preserving pointer to integer cast kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).