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: drivers/net/wireless/ath/ath11k/ce.c:375 ath11k_ce_srng_msi_ring_params_setup() error: uninitialized symbol 'addr_lo'.
Date: Fri, 6 Dec 2024 03:36:05 +0800	[thread overview]
Message-ID: <202412060325.Pvm5LKPT-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Govind Singh <govinds@codeaurora.org>
CC: Kalle Valo <kvalo@codeaurora.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   feffde684ac29a3b7aec82d2df850fbdbdee55e4
commit: c4eacabee22415194e8cc7e8dd4913897b058927 ath11k: configure copy engine msi address in CE srng
date:   4 years, 4 months ago
:::::: branch date: 2 days ago
:::::: commit date: 4 years, 4 months ago
config: i386-randconfig-141-20241120 (https://download.01.org/0day-ci/archive/20241206/202412060325.Pvm5LKPT-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0

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/202412060325.Pvm5LKPT-lkp@intel.com/

smatch warnings:
drivers/net/wireless/ath/ath11k/ce.c:375 ath11k_ce_srng_msi_ring_params_setup() error: uninitialized symbol 'addr_lo'.
drivers/net/wireless/ath/ath11k/ce.c:376 ath11k_ce_srng_msi_ring_params_setup() error: uninitialized symbol 'addr_hi'.

vim +/addr_lo +375 drivers/net/wireless/ath/ath11k/ce.c

d5c65159f28953 Kalle Valo   2019-11-23  355  
c4eacabee22415 Govind Singh 2020-08-14  356  static void ath11k_ce_srng_msi_ring_params_setup(struct ath11k_base *ab, u32 ce_id,
c4eacabee22415 Govind Singh 2020-08-14  357  						 struct hal_srng_params *ring_params)
c4eacabee22415 Govind Singh 2020-08-14  358  {
c4eacabee22415 Govind Singh 2020-08-14  359  	u32 msi_data_start;
c4eacabee22415 Govind Singh 2020-08-14  360  	u32 msi_data_count;
c4eacabee22415 Govind Singh 2020-08-14  361  	u32 msi_irq_start;
c4eacabee22415 Govind Singh 2020-08-14  362  	u32 addr_lo;
c4eacabee22415 Govind Singh 2020-08-14  363  	u32 addr_hi;
c4eacabee22415 Govind Singh 2020-08-14  364  	int ret;
c4eacabee22415 Govind Singh 2020-08-14  365  
c4eacabee22415 Govind Singh 2020-08-14  366  	ret = ath11k_get_user_msi_vector(ab, "CE",
c4eacabee22415 Govind Singh 2020-08-14  367  					 &msi_data_count, &msi_data_start,
c4eacabee22415 Govind Singh 2020-08-14  368  					 &msi_irq_start);
c4eacabee22415 Govind Singh 2020-08-14  369  
c4eacabee22415 Govind Singh 2020-08-14  370  	if (ret)
c4eacabee22415 Govind Singh 2020-08-14  371  		return;
c4eacabee22415 Govind Singh 2020-08-14  372  
c4eacabee22415 Govind Singh 2020-08-14  373  	ath11k_get_msi_address(ab, &addr_lo, &addr_hi);
c4eacabee22415 Govind Singh 2020-08-14  374  
c4eacabee22415 Govind Singh 2020-08-14 @375  	ring_params->msi_addr = addr_lo;
c4eacabee22415 Govind Singh 2020-08-14 @376  	ring_params->msi_addr |= (dma_addr_t)(((uint64_t)addr_hi) << 32);
c4eacabee22415 Govind Singh 2020-08-14  377  	ring_params->msi_data = (ce_id % msi_data_count) + msi_data_start;
c4eacabee22415 Govind Singh 2020-08-14  378  	ring_params->flags |= HAL_SRNG_FLAGS_MSI_INTR;
c4eacabee22415 Govind Singh 2020-08-14  379  }
c4eacabee22415 Govind Singh 2020-08-14  380  

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

                 reply	other threads:[~2024-12-05 19:37 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=202412060325.Pvm5LKPT-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.