public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yushan Wang <wangyushan12@huawei.com>,
	xuwei5@hisilicon.com, yangyicong@hisilicon.com,
	Jonathan.Cameron@huawei.com, wangjie125@huawei.com,
	linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, prime.zeng@hisilicon.com,
	fanghao11@huawei.com, wangyushan12@huawei.com,
	linuxarm@huawei.com
Subject: Re: [PATCH 1/2] soc cache: Add framework driver for HiSilicon SoC cache
Date: Wed, 8 Jan 2025 21:54:47 +0800	[thread overview]
Message-ID: <202501082116.RY64zFEz-lkp@intel.com> (raw)
In-Reply-To: <20250107132907.3521574-2-wangyushan12@huawei.com>

Hi Yushan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.13-rc6 next-20250107]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Yushan-Wang/soc-cache-Add-framework-driver-for-HiSilicon-SoC-cache/20250107-213022
base:   linus/master
patch link:    https://lore.kernel.org/r/20250107132907.3521574-2-wangyushan12%40huawei.com
patch subject: [PATCH 1/2] soc cache: Add framework driver for HiSilicon SoC cache
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20250108/202501082116.RY64zFEz-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250108/202501082116.RY64zFEz-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501082116.RY64zFEz-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/soc/hisilicon/hisi_soc_cache_framework.c: In function 'hisi_soc_cache_vm_close':
>> drivers/soc/hisilicon/hisi_soc_cache_framework.c:331:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     331 |         int ret;
         |             ^~~


vim +/ret +331 drivers/soc/hisilicon/hisi_soc_cache_framework.c

   327	
   328	static void hisi_soc_cache_vm_close(struct vm_area_struct *vma)
   329	{
   330		struct hisi_soc_cache_lock_region *clr = vma->vm_private_data;
 > 331		int ret;
   332	
   333		/*
   334		 * Only perform cache unlock when the vma passed in is created
   335		 * in hisi_soc_cache_mmap.
   336		 */
   337		if (clr->vm_start != vma->vm_start || clr->vm_end != vma->vm_end)
   338			return;
   339	
   340		ret = hisi_soc_cache_unlock(clr->cpu, clr->addr);
   341	
   342		hisi_soc_cache_aligned_free(clr);
   343		kfree(clr);
   344		vma->vm_private_data = NULL;
   345	}
   346	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-01-08 13:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-07 13:29 [PATCH 0/2] soc cache: Add support for HiSilicon L3 cache Yushan Wang
2025-01-07 13:29 ` [PATCH 1/2] soc cache: Add framework driver for HiSilicon SoC cache Yushan Wang
2025-01-07 19:05   ` Christophe JAILLET
2025-01-08  9:59     ` wangyushan
2025-01-08 13:54   ` kernel test robot [this message]
2025-01-07 13:29 ` [PATCH 2/2] soc cache: L3 cache lockdown support for HiSilicon SoC Yushan Wang
2025-01-08 14:37   ` kernel test robot
2025-01-08 15:32   ` kernel test robot

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=202501082116.RY64zFEz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=fanghao11@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=prime.zeng@hisilicon.com \
    --cc=wangjie125@huawei.com \
    --cc=wangyushan12@huawei.com \
    --cc=xuwei5@hisilicon.com \
    --cc=yangyicong@hisilicon.com \
    /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