linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Henry Tieman <henry.w.tieman@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
	Tony Nguyen <anthony.l.nguyen@intel.com>
Subject: drivers/net/ethernet/intel/ice/ice_flex_pipe.c:2826:44: sparse: sparse: non size-preserving pointer to integer cast
Date: Sun, 5 Jul 2020 12:29:13 +0800	[thread overview]
Message-ID: <202007051210.RWLyeqmd%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-07-05  4:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202007051210.RWLyeqmd%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=henry.w.tieman@intel.com \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).