LKML Archive on lore.kernel.org
 help / color / 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, back to index

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

LKML Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git
	git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git
	git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git
	git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git
	git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git
	git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git
	git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git
	git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git
	git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \
		linux-kernel@vger.kernel.org
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git