[android-common:android13-5.15 2/2] drivers/scsi/ufs/ufs-mediatek.c:1142:5: warning: no previous prototype for function 'ufs_mtk_system_suspend'
kernel test robot <[email protected]> Sat, 01 Aug 2026 02:55:16 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
Hi Po-Wen, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android13-5.15 head: e64da38e2e7380b65b4bda2884ee5e287656588f commit: 4d6bab8d366a10751b50a8cce88f9b91bf207795 [2/2] scsi: ufs: ufs-mediatek: Fix the timing of configuring device regulators config: arm-randconfig-003-20260731 (https://download.01.org/0day-ci/archive/20260801/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project bacfe2950f8218268fcc0a8765644ea0c15f0360) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): In file included from <built-in>:3: In file included from include/linux/compiler_types.h:80: include/linux/compiler-clang.h:24:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 24 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:370:9: note: previous definition is here 370 | #define __SANITIZE_ADDRESS__ 1 | ^ >> drivers/scsi/ufs/ufs-mediatek.c:1142:5: warning: no previous prototype for function 'ufs_mtk_system_suspend' [-Wmissing-prototypes] 1142 | int ufs_mtk_system_suspend(struct device *dev) | ^ drivers/scsi/ufs/ufs-mediatek.c:1142:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1142 | int ufs_mtk_system_suspend(struct device *dev) | ^ | static >> drivers/scsi/ufs/ufs-mediatek.c:1156:5: warning: no previous prototype for function 'ufs_mtk_system_resume' [-Wmissing-prototypes] 1156 | int ufs_mtk_system_resume(struct device *dev) | ^ drivers/scsi/ufs/ufs-mediatek.c:1156:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1156 | int ufs_mtk_system_resume(struct device *dev) | ^ | static >> drivers/scsi/ufs/ufs-mediatek.c:1165:5: warning: no previous prototype for function 'ufs_mtk_runtime_suspend' [-Wmissing-prototypes] 1165 | int ufs_mtk_runtime_suspend(struct device *dev) | ^ drivers/scsi/ufs/ufs-mediatek.c:1165:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1165 | int ufs_mtk_runtime_suspend(struct device *dev) | ^ | static >> drivers/scsi/ufs/ufs-mediatek.c:1179:5: warning: no previous prototype for function 'ufs_mtk_runtime_resume' [-Wmissing-prototypes] 1179 | int ufs_mtk_runtime_resume(struct device *dev) | ^ drivers/scsi/ufs/ufs-mediatek.c:1179:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1179 | int ufs_mtk_runtime_resume(struct device *dev) | ^ | static 5 warnings generated. vim +/ufs_mtk_system_suspend +1142 drivers/scsi/ufs/ufs-mediatek.c 1141 > 1142 int ufs_mtk_system_suspend(struct device *dev) 1143 { 1144 struct ufs_hba *hba = dev_get_drvdata(dev); 1145 int ret; 1146 1147 ret = ufshcd_system_suspend(dev); 1148 if (ret) 1149 return ret; 1150 1151 ufs_mtk_vreg_set_lpm(hba, true); 1152 1153 return 0; 1154 } 1155 > 1156 int ufs_mtk_system_resume(struct device *dev) 1157 { 1158 struct ufs_hba *hba = dev_get_drvdata(dev); 1159 1160 ufs_mtk_vreg_set_lpm(hba, false); 1161 1162 return ufshcd_system_resume(dev); 1163 } 1164 > 1165 int ufs_mtk_runtime_suspend(struct device *dev) 1166 { 1167 struct ufs_hba *hba = dev_get_drvdata(dev); 1168 int ret = 0; 1169 1170 ret = ufshcd_runtime_suspend(dev); 1171 if (ret) 1172 return ret; 1173 1174 ufs_mtk_vreg_set_lpm(hba, true); 1175 1176 return 0; 1177 } 1178 > 1179 int ufs_mtk_runtime_resume(struct device *dev) 1180 { 1181 struct ufs_hba *hba = dev_get_drvdata(dev); 1182 1183 ufs_mtk_vreg_set_lpm(hba, false); 1184 1185 return ufshcd_runtime_resume(dev); 1186 } 1187 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki