linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
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 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: Wed, 22 Jun 2022 07:58:45 +0800	[thread overview]
Message-ID: <202206220736.sR4QzQcp-lkp@intel.com> (raw)

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@intel.com/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@intel.com>

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


                 reply	other threads:[~2022-06-21 23:59 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=202206220736.sR4QzQcp-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