From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EB6AC433EF for ; Tue, 28 Jun 2022 09:25:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B43028E000D; Tue, 28 Jun 2022 05:25:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AF39C8E0001; Tue, 28 Jun 2022 05:25:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 96F368E000D; Tue, 28 Jun 2022 05:25:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 885648E0001 for ; Tue, 28 Jun 2022 05:25:48 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 66D7133EA7 for ; Tue, 28 Jun 2022 09:25:48 +0000 (UTC) X-FDA: 79627112376.18.BAE4928 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf19.hostedemail.com (Postfix) with ESMTP id 6F0BA1A0031 for ; Tue, 28 Jun 2022 09:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656408347; x=1687944347; h=date:from:to:cc:subject:message-id:mime-version; bh=TwEJfSMOLAAzM/QSpv5PiVhtJ8bfzjz434VJy4avZKo=; b=l5huAy9AwoRNmX3S/r5GedXAEVmKfrNgHqo5JfOdwyaG39rk8VsFkONc eBZVWA8BpIQ2o/43qfoWkO7t60fCLanPCbtWucDHKX8ML4mQK3Tp00uxs DcxlzTfPEjgE5TsuXtyFB6ELUglBeB/tE0nR9z8XtZlUDIUUhT7yiOnCv 94Xh0NPk6HDX1SJkQPEULxLIGs+AJaY+xmc5ZvvZ73A90meQEKpP62YOK +5Wo5wXPzODlLQqIxHYZxk3QsVV9am6g00JNx6ULU0MyRWTaHIn9kuItS JBQLHnBJswIsdB6if070spfmRORNP3BwelrwzSSRLx6tgPA254I2YEbRh A==; X-IronPort-AV: E=McAfee;i="6400,9594,10391"; a="282425625" X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="282425625" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 02:25:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="594715223" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 28 Jun 2022 02:25:22 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o67TF-0009pI-RO; Tue, 28 Jun 2022 09:25:21 +0000 Date: Tue, 28 Jun 2022 17:24:53 +0800 From: kernel test robot To: Po-Wen Kao Cc: kbuild-all@lists.01.org, Linux Memory Management List , "Martin K. Petersen" , Stanley Chu Subject: [linux-next:master 3044/6195] drivers/ufs/host/ufs-mediatek.c:1279:5: warning: no previous prototype for 'ufs_mtk_system_suspend' Message-ID: <202206281729.36F7KmiT-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656408348; a=rsa-sha256; cv=none; b=QarHrDqpe3Yl3a39/8E5151rcUqVrVltZa7dKaowxtKWUPWK3yDhcli5MZ9oIVEI4/Ljx2 6fIUZPFhFMCIyW/eBVUi1ECThfFza0T3H1QOAuUl1lUQek4ywN/UGBJvmqq0NkLG4NsUDZ 2J+87RHnOZw46S275l8oXKClBZ0iVds= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=l5huAy9A; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf19.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656408348; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=qe5mydJeRH8EGRxPrkuZ9Pzmay88i0MZhABEtSv4T3A=; b=LLwLNDusDcdje8zcEgNo5l3OYeo/HD+/Fw0xh8Taqa5CwUBsSaxoO+jy5F2qevGGpP57FK 2ZrylDl4IJV+mt7nh4r5BALbMbA7BGM0Z6RGPPzAwmG194ybIHFvYsGTQudrYWjksyj01C ieLX2nE4Mz5Gg7pYuaHXBy830dNbbUA= X-Stat-Signature: 66ejonbqjkde8smi9cqddcb98mafir5z X-Rspamd-Queue-Id: 6F0BA1A0031 Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=l5huAy9A; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf19.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam10 X-Rspam-User: X-HE-Tag: 1656408346-578322 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 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