[linux-next:master 3044/6195] drivers/ufs/host/ufs-mediatek.c:1279:5: warning: no previous prototype for 'ufs_mtk_system_suspend'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux