tree:
https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git queue
head: b1bf66d1d5a8fcb54f0e584db5d196ef015b5172
commit: 9006e3986f6689897c2f1ede2671656b1cb41582 [8/24] scsi: ufs-mediatek: Do not gate
clocks if auto-hibern8 is not entered yet
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.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
git checkout 9006e3986f6689897c2f1ede2671656b1cb41582
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> drivers/scsi/ufs/ufs-mediatek.c:181:5: warning: no previous
prototype for 'ufs_mtk_wait_link_state' [-Wmissing-prototypes]
181 | int
ufs_mtk_wait_link_state(struct ufs_hba *hba, u32 state,
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/ufs_mtk_wait_link_state +181 drivers/scsi/ufs/ufs-mediatek.c
180
181 int ufs_mtk_wait_link_state(struct ufs_hba *hba, u32 state,
182 unsigned long max_wait_ms)
183 {
184 ktime_t timeout, time_checked;
185 u32 val;
186
187 timeout = ktime_add_us(ktime_get(), ms_to_ktime(max_wait_ms));
188 do {
189 time_checked = ktime_get();
190 ufshcd_writel(hba, 0x20, REG_UFS_DEBUG_SEL);
191 val = ufshcd_readl(hba, REG_UFS_PROBE);
192 val = val >> 28;
193
194 if (val == state)
195 return 0;
196
197 /* Sleep for max. 200us */
198 usleep_range(100, 200);
199 } while (ktime_before(time_checked, timeout));
200
201 if (val == state)
202 return 0;
203
204 return -ETIMEDOUT;
205 }
206
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org