public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Philipp Stanner" <pstanner@redhat.com>,
	"Alvaro Karsz" <alvaro.karsz@solid-run.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Jason Wang" <jasowang@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	Eugenio =?unknown-8bit?B?UMOpcmV6?= <eperezma@redhat.com>,
	"Stefano Garzarella" <sgarzare@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev, virtualization@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vdpa: solidrun: Replace deprecated PCI functions
Date: Tue, 3 Dec 2024 01:17:37 +0800	[thread overview]
Message-ID: <202412030150.SVZbOVDL-lkp@intel.com> (raw)
In-Reply-To: <20241202122353.9793-2-pstanner@redhat.com>

Hi Philipp,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.13-rc1 next-20241128]
[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/Philipp-Stanner/vdpa-solidrun-Replace-deprecated-PCI-functions/20241202-202728
base:   linus/master
patch link:    https://lore.kernel.org/r/20241202122353.9793-2-pstanner%40redhat.com
patch subject: [PATCH] vdpa: solidrun: Replace deprecated PCI functions
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20241203/202412030150.SVZbOVDL-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030150.SVZbOVDL-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/202412030150.SVZbOVDL-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/vdpa/solidrun/snet_main.c: In function 'psnet_open_pf_bar':
>> drivers/vdpa/solidrun/snet_main.c:559:13: warning: unused variable 'ret' [-Wunused-variable]
     559 |         int ret;
         |             ^~~


vim +/ret +559 drivers/vdpa/solidrun/snet_main.c

   555	
   556	static int psnet_open_pf_bar(struct pci_dev *pdev, struct psnet *psnet)
   557	{
   558		char *name;
 > 559		int ret;
   560		unsigned short i, bars_found = 0;
   561		void __iomem *io;
   562	
   563		name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "psnet[%s]-bars", pci_name(pdev));
   564		if (!name)
   565			return -ENOMEM;
   566	
   567		/* We don't know which BAR will be used to communicate..
   568		 * We will map every bar with len > 0.
   569		 *
   570		 * Later, we will discover the BAR and unmap all other BARs.
   571		 */
   572		for (i = 0; i < PCI_STD_NUM_BARS; i++) {
   573			if (pci_resource_len(pdev, i) == 0)
   574				continue;
   575	
   576			io = pcim_iomap_region(pdev, i, name);
   577			if (IS_ERR(io)) {
   578				SNET_ERR(pdev, "Failed to request and map PCI BARs\n");
   579				return PTR_ERR(io);
   580			}
   581	
   582			psnet->bars[i] = io;
   583			bars_found++;
   584		}
   585	
   586		/* No BAR can be used.. */
   587		if (bars_found == 0) {
   588			SNET_ERR(pdev, "Failed to find a PCI BAR\n");
   589			return -ENODEV;
   590		}
   591	
   592		return 0;
   593	}
   594	

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

      reply	other threads:[~2024-12-02 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02 12:23 [PATCH] vdpa: solidrun: Replace deprecated PCI functions Philipp Stanner
2024-12-02 17:17 ` kernel test robot [this message]

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=202412030150.SVZbOVDL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alvaro.karsz@solid-run.com \
    --cc=eperezma@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pstanner@redhat.com \
    --cc=sgarzare@redhat.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.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