From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android13-5.15 2/2] drivers/scsi/ufs/ufs-mediatek.c:1142:5: sparse: sparse: symbol 'ufs_mtk_system_suspend' was not declared. Should it be static?
Date: Sat, 19 Sep 2026 22:52:10 +0800 [thread overview]
Message-ID: <202609192203.gZu2j2nJ-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android13-5.15
head: 77804d3596695c7b85fe038c81d9580283ffd2ca
commit: 4d6bab8d366a10751b50a8cce88f9b91bf207795 [2/2] scsi: ufs: ufs-mediatek: Fix the timing of configuring device regulators
config: arm64-randconfig-r1305-20260919 (https://download.01.org/0day-ci/archive/20260919/202609192203.gZu2j2nJ-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 05d706e9a816dbf9eff31f47869f53d6fe796089)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260919/202609192203.gZu2j2nJ-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/202609192203.gZu2j2nJ-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/scsi/ufs/ufs-mediatek.c:1142:5: sparse: sparse: symbol 'ufs_mtk_system_suspend' was not declared. Should it be static?
>> drivers/scsi/ufs/ufs-mediatek.c:1156:5: sparse: sparse: symbol 'ufs_mtk_system_resume' was not declared. Should it be static?
>> drivers/scsi/ufs/ufs-mediatek.c:1165:5: sparse: sparse: symbol 'ufs_mtk_runtime_suspend' was not declared. Should it be static?
>> drivers/scsi/ufs/ufs-mediatek.c:1179:5: sparse: sparse: symbol 'ufs_mtk_runtime_resume' was not declared. Should it be static?
vim +/ufs_mtk_system_suspend +1142 drivers/scsi/ufs/ufs-mediatek.c
1141
> 1142 int ufs_mtk_system_suspend(struct device *dev)
1143 {
1144 struct ufs_hba *hba = dev_get_drvdata(dev);
1145 int ret;
1146
1147 ret = ufshcd_system_suspend(dev);
1148 if (ret)
1149 return ret;
1150
1151 ufs_mtk_vreg_set_lpm(hba, true);
1152
1153 return 0;
1154 }
1155
> 1156 int ufs_mtk_system_resume(struct device *dev)
1157 {
1158 struct ufs_hba *hba = dev_get_drvdata(dev);
1159
1160 ufs_mtk_vreg_set_lpm(hba, false);
1161
1162 return ufshcd_system_resume(dev);
1163 }
1164
> 1165 int ufs_mtk_runtime_suspend(struct device *dev)
1166 {
1167 struct ufs_hba *hba = dev_get_drvdata(dev);
1168 int ret = 0;
1169
1170 ret = ufshcd_runtime_suspend(dev);
1171 if (ret)
1172 return ret;
1173
1174 ufs_mtk_vreg_set_lpm(hba, true);
1175
1176 return 0;
1177 }
1178
> 1179 int ufs_mtk_runtime_resume(struct device *dev)
1180 {
1181 struct ufs_hba *hba = dev_get_drvdata(dev);
1182
1183 ufs_mtk_vreg_set_lpm(hba, false);
1184
1185 return ufshcd_runtime_resume(dev);
1186 }
1187
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-09-19 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-19 14:52 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-20 0:08 [android-common:android13-5.15 2/2] drivers/scsi/ufs/ufs-mediatek.c:1142:5: sparse: sparse: symbol 'ufs_mtk_system_suspend' was not declared. Should it be static? kernel test robot
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=202609192203.gZu2j2nJ-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.