All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH v2] accel/qaic: Add support for PM callbacks
Date: Tue, 28 Oct 2025 08:09:13 +0800	[thread overview]
Message-ID: <202510280738.gGmJs0WE-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20251024162916.801196-1-youssef.abdulrahman@oss.qualcomm.com>
References: <20251024162916.801196-1-youssef.abdulrahman@oss.qualcomm.com>
TO: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
TO: jeff.hugo@oss.qualcomm.com
TO: carl.vanderlip@oss.qualcomm.com
TO: troy.hanson@oss.qualcomm.com
TO: zachary.mckevitt@oss.qualcomm.com
CC: ogabbay@kernel.org
CC: lizhi.hou@amd.com
CC: karol.wachowski@linux.intel.com
CC: linux-arm-msm@vger.kernel.org
CC: dri-devel@lists.freedesktop.org

Hi Youssef,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on drm-tip/drm-tip linus/master v6.18-rc3 next-20251027]
[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/Youssef-Samir/accel-qaic-Add-support-for-PM-callbacks/20251025-003501
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:    https://lore.kernel.org/r/20251024162916.801196-1-youssef.abdulrahman%40oss.qualcomm.com
patch subject: [PATCH v2] accel/qaic: Add support for PM callbacks
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: x86_64-randconfig-161-20251026 (https://download.01.org/0day-ci/archive/20251028/202510280738.gGmJs0WE-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202510280738.gGmJs0WE-lkp@intel.com/

smatch warnings:
drivers/accel/qaic/qaic_drv.c:700 qaic_data_path_busy() error: uninitialized symbol 'ret'.

vim +/ret +700 drivers/accel/qaic/qaic_drv.c

41074b262e7e90 Youssef Samir 2025-10-24  670  
41074b262e7e90 Youssef Samir 2025-10-24  671  static bool __maybe_unused qaic_data_path_busy(struct qaic_device *qdev)
41074b262e7e90 Youssef Samir 2025-10-24  672  {
41074b262e7e90 Youssef Samir 2025-10-24  673  	int dev_rcu_id;
41074b262e7e90 Youssef Samir 2025-10-24  674  	bool ret;
41074b262e7e90 Youssef Samir 2025-10-24  675  	int i;
41074b262e7e90 Youssef Samir 2025-10-24  676  
41074b262e7e90 Youssef Samir 2025-10-24  677  	dev_rcu_id = srcu_read_lock(&qdev->dev_lock);
41074b262e7e90 Youssef Samir 2025-10-24  678  	if (qdev->dev_state != QAIC_ONLINE) {
41074b262e7e90 Youssef Samir 2025-10-24  679  		srcu_read_unlock(&qdev->dev_lock, dev_rcu_id);
41074b262e7e90 Youssef Samir 2025-10-24  680  		return false;
41074b262e7e90 Youssef Samir 2025-10-24  681  	}
41074b262e7e90 Youssef Samir 2025-10-24  682  	for (i = 0; i < qdev->num_dbc; i++) {
41074b262e7e90 Youssef Samir 2025-10-24  683  		struct dma_bridge_chan *dbc = &qdev->dbc[i];
41074b262e7e90 Youssef Samir 2025-10-24  684  		unsigned long flags;
41074b262e7e90 Youssef Samir 2025-10-24  685  		int ch_rcu_id;
41074b262e7e90 Youssef Samir 2025-10-24  686  
41074b262e7e90 Youssef Samir 2025-10-24  687  		ch_rcu_id = srcu_read_lock(&dbc->ch_lock);
41074b262e7e90 Youssef Samir 2025-10-24  688  		if (!dbc->usr || !dbc->in_use) {
41074b262e7e90 Youssef Samir 2025-10-24  689  			srcu_read_unlock(&dbc->ch_lock, ch_rcu_id);
41074b262e7e90 Youssef Samir 2025-10-24  690  			continue;
41074b262e7e90 Youssef Samir 2025-10-24  691  		}
41074b262e7e90 Youssef Samir 2025-10-24  692  		spin_lock_irqsave(&dbc->xfer_lock, flags);
41074b262e7e90 Youssef Samir 2025-10-24  693  		ret = !list_empty(&dbc->xfer_list);
41074b262e7e90 Youssef Samir 2025-10-24  694  		spin_unlock_irqrestore(&dbc->xfer_lock, flags);
41074b262e7e90 Youssef Samir 2025-10-24  695  		srcu_read_unlock(&dbc->ch_lock, ch_rcu_id);
41074b262e7e90 Youssef Samir 2025-10-24  696  		if (ret)
41074b262e7e90 Youssef Samir 2025-10-24  697  			break;
41074b262e7e90 Youssef Samir 2025-10-24  698  	}
41074b262e7e90 Youssef Samir 2025-10-24  699  	srcu_read_unlock(&qdev->dev_lock, dev_rcu_id);
41074b262e7e90 Youssef Samir 2025-10-24 @700  	return ret;
41074b262e7e90 Youssef Samir 2025-10-24  701  }
41074b262e7e90 Youssef Samir 2025-10-24  702  

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

             reply	other threads:[~2025-10-28  0:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-28  0:09 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-24 16:29 [PATCH v2] accel/qaic: Add support for PM callbacks Youssef Samir
2025-10-24 23:21 ` Carl Vanderlip
2025-10-26  2:15 ` Bjorn Andersson

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=202510280738.gGmJs0WE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.