[linux-next:master 3156/4834] drivers/ufs/host/ufs-mediatek.c:1284:15: error: implicit declaration of function 'ufshcd_system_suspend'; did you mean '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:   34d1d36073ea4d4c532e8c8345627a9702be799e
commit: 3fd23b8dfb54d9b74eba6dfdd3225db3ac116785 [3156/4834] scsi: ufs: ufs-mediatek: Fix the timing of configuring device regulators
config: arm64-randconfig-s031-20220622 (https://download.01.org/0day-ci/archive/20220622/202206220736.sR4QzQcp-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-31-g4880bd19-dirty
        # 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 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/ufs/host/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (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: In function 'ufs_mtk_system_suspend':
>> drivers/ufs/host/ufs-mediatek.c:1284:15: error: implicit declaration of function 'ufshcd_system_suspend'; did you mean 'ufs_mtk_system_suspend'? [-Werror=implicit-function-declaration]
    1284 |         ret = ufshcd_system_suspend(dev);
         |               ^~~~~~~~~~~~~~~~~~~~~
         |               ufs_mtk_system_suspend
   drivers/ufs/host/ufs-mediatek.c: At top level:
   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: In function 'ufs_mtk_system_resume':
>> drivers/ufs/host/ufs-mediatek.c:1299:16: error: implicit declaration of function 'ufshcd_system_resume'; did you mean 'ufs_mtk_system_resume'? [-Werror=implicit-function-declaration]
    1299 |         return ufshcd_system_resume(dev);
         |                ^~~~~~~~~~~~~~~~~~~~
         |                ufs_mtk_system_resume
   drivers/ufs/host/ufs-mediatek.c: At top level:
   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)
         |     ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +1284 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	

-- 
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