From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android12-5.4 1/1] drivers/firmware/qcom_scm.c:183:13: warning: unused variable 'ret'
Date: Tue, 1 Jul 2025 00:40:49 +0200 [thread overview]
Message-ID: <202507010034.kBUah0Ky-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 3041dc18cad39ce48f7eb75cd07bcb383b76d6c5
commit: 89ff5a158f4ec51d7f42be7e184e72ea155f76b9 [1/1] BACKPORT: firmware: qcom_scm: Make __qcom_scm_is_call_available() return bool
config: arm64-randconfig-2003-20250630 (https://download.01.org/0day-ci/archive/20250701/202507010034.kBUah0Ky-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250701/202507010034.kBUah0Ky-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/202507010034.kBUah0Ky-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/firmware/qcom_scm.c: In function 'qcom_scm_pas_supported':
>> drivers/firmware/qcom_scm.c:183:13: warning: unused variable 'ret' [-Wunused-variable]
183 | int ret;
| ^~~
vim +/ret +183 drivers/firmware/qcom_scm.c
d0f6fa7ba2d624 Andy Gross 2016-06-03 173
f01e90fe34f563 Bjorn Andersson 2015-09-23 174 /**
f01e90fe34f563 Bjorn Andersson 2015-09-23 175 * qcom_scm_pas_supported() - Check if the peripheral authentication service is
f01e90fe34f563 Bjorn Andersson 2015-09-23 176 * available for the given peripherial
f01e90fe34f563 Bjorn Andersson 2015-09-23 177 * @peripheral: peripheral id
f01e90fe34f563 Bjorn Andersson 2015-09-23 178 *
f01e90fe34f563 Bjorn Andersson 2015-09-23 179 * Returns true if PAS is supported for this peripheral, otherwise false.
f01e90fe34f563 Bjorn Andersson 2015-09-23 180 */
f01e90fe34f563 Bjorn Andersson 2015-09-23 181 bool qcom_scm_pas_supported(u32 peripheral)
f01e90fe34f563 Bjorn Andersson 2015-09-23 182 {
f01e90fe34f563 Bjorn Andersson 2015-09-23 @183 int ret;
f01e90fe34f563 Bjorn Andersson 2015-09-23 184
89ff5a158f4ec5 Stephen Boyd 2021-02-23 185 if (!__qcom_scm_is_call_available(__scm->dev, QCOM_SCM_SVC_PIL,
89ff5a158f4ec5 Stephen Boyd 2021-02-23 186 QCOM_SCM_PAS_IS_SUPPORTED_CMD))
f01e90fe34f563 Bjorn Andersson 2015-09-23 187 return false;
f01e90fe34f563 Bjorn Andersson 2015-09-23 188
f01e90fe34f563 Bjorn Andersson 2015-09-23 189 return __qcom_scm_pas_supported(__scm->dev, peripheral);
f01e90fe34f563 Bjorn Andersson 2015-09-23 190 }
f01e90fe34f563 Bjorn Andersson 2015-09-23 191 EXPORT_SYMBOL(qcom_scm_pas_supported);
f01e90fe34f563 Bjorn Andersson 2015-09-23 192
:::::: The code at line 183 was first introduced by commit
:::::: f01e90fe34f563a5e189d4070de4a23948105642 firmware: qcom: scm: Peripheral Authentication Service
:::::: TO: Bjorn Andersson <bjorn.andersson@sonymobile.com>
:::::: CC: Andy Gross <andy.gross@linaro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-06-30 22:41 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=202507010034.kBUah0Ky-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@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.