* [android-common:android12-5.4 1/1] drivers/firmware/qcom_scm.c:183:13: warning: unused variable 'ret'
@ 2025-06-30 22:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-30 22:40 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-30 22:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 22:40 [android-common:android12-5.4 1/1] drivers/firmware/qcom_scm.c:183:13: warning: unused variable 'ret' kernel test robot
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.