From: kernel test robot <lkp@intel.com>
To: Po-Wen Kao <powen.kao@mediatek.com>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Stanley Chu <stanley.chu@mediatek.com>
Subject: [linux-next:master 3044/6195] drivers/ufs/host/ufs-mediatek.c:1279:5: warning: no previous prototype for 'ufs_mtk_system_suspend'
Date: Tue, 28 Jun 2022 17:24:53 +0800 [thread overview]
Message-ID: <202206281729.36F7KmiT-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: aab35c3d5112df6e329a1a5a5a1881e5c4ca3821
commit: 3fd23b8dfb54d9b74eba6dfdd3225db3ac116785 [3044/6195] scsi: ufs: ufs-mediatek: Fix the timing of configuring device regulators
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20220628/202206281729.36F7KmiT-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3fd23b8dfb54d9b74eba6dfdd3225db3ac116785
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 3fd23b8dfb54d9b74eba6dfdd3225db3ac116785
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/pinctrl/qcom/ drivers/ufs/host/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/ufs/host/ufs-mediatek.c:1279:5: warning: no previous prototype for 'ufs_mtk_system_suspend' [-Wmissing-prototypes]
1279 | int ufs_mtk_system_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/ufs/host/ufs-mediatek.c:1293:5: warning: no previous prototype for 'ufs_mtk_system_resume' [-Wmissing-prototypes]
1293 | int ufs_mtk_system_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/ufs/host/ufs-mediatek.c:1302:5: warning: no previous prototype for 'ufs_mtk_runtime_suspend' [-Wmissing-prototypes]
1302 | int ufs_mtk_runtime_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/ufs/host/ufs-mediatek.c:1316:5: warning: no previous prototype for 'ufs_mtk_runtime_resume' [-Wmissing-prototypes]
1316 | int ufs_mtk_runtime_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/ufs_mtk_system_suspend +1279 drivers/ufs/host/ufs-mediatek.c
1278
> 1279 int ufs_mtk_system_suspend(struct device *dev)
1280 {
1281 struct ufs_hba *hba = dev_get_drvdata(dev);
1282 int ret;
1283
1284 ret = ufshcd_system_suspend(dev);
1285 if (ret)
1286 return ret;
1287
1288 ufs_mtk_vreg_set_lpm(hba, true);
1289
1290 return 0;
1291 }
1292
> 1293 int ufs_mtk_system_resume(struct device *dev)
1294 {
1295 struct ufs_hba *hba = dev_get_drvdata(dev);
1296
1297 ufs_mtk_vreg_set_lpm(hba, false);
1298
1299 return ufshcd_system_resume(dev);
1300 }
1301
> 1302 int ufs_mtk_runtime_suspend(struct device *dev)
1303 {
1304 struct ufs_hba *hba = dev_get_drvdata(dev);
1305 int ret = 0;
1306
1307 ret = ufshcd_runtime_suspend(dev);
1308 if (ret)
1309 return ret;
1310
1311 ufs_mtk_vreg_set_lpm(hba, true);
1312
1313 return 0;
1314 }
1315
> 1316 int ufs_mtk_runtime_resume(struct device *dev)
1317 {
1318 struct ufs_hba *hba = dev_get_drvdata(dev);
1319
1320 ufs_mtk_vreg_set_lpm(hba, false);
1321
1322 return ufshcd_runtime_resume(dev);
1323 }
1324
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-06-28 9:25 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=202206281729.36F7KmiT-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=martin.petersen@oracle.com \
--cc=powen.kao@mediatek.com \
--cc=stanley.chu@mediatek.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox