Hi Jia-Ju,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net-next/master]
[also build test ERROR on v4.16 next-20180411]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Jia-Ju-Bai/net-samsung-sxgbe-Replace-mdelay-with-usleep_range-in-sxgbe_sw_reset/20180411-225900
config: i386-randconfig-x019-201814 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/net//ethernet/samsung/sxgbe/sxgbe_main.c: In function 
'sxgbe_sw_reset':
>> drivers/net//ethernet/samsung/sxgbe/sxgbe_main.c:2039:3: error: implicit 
>> declaration of function 'usleep'; did you mean 'ssleep'? 
>> [-Werror=implicit-function-declaration]
      usleep(10000, 11000);
      ^~~~~~
      ssleep
   cc1: some warnings being treated as errors

vim +2039 drivers/net//ethernet/samsung/sxgbe/sxgbe_main.c

  2029  
  2030  static int sxgbe_sw_reset(void __iomem *addr)
  2031  {
  2032          int retry_count = 10;
  2033  
  2034          writel(SXGBE_DMA_SOFT_RESET, addr + SXGBE_DMA_MODE_REG);
  2035          while (retry_count--) {
  2036                  if (!(readl(addr + SXGBE_DMA_MODE_REG) &
  2037                        SXGBE_DMA_SOFT_RESET))
  2038                          break;
> 2039                  usleep(10000, 11000);
  2040          }
  2041  
  2042          if (retry_count < 0)
  2043                  return -EBUSY;
  2044  
  2045          return 0;
  2046  }
  2047  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to