[PATCH] staging: fbtft replaced udelay with usleep_range

kernel test robot lkp at intel.com
Fri Feb 5 11:42:45 UTC 2021


Hi Mayank,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]

url:    https://github.com/0day-ci/linux/commits/Mayank-Suman/staging-fbtft-replaced-udelay-with-usleep_range/20210205-171807
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 06b0c0dce88e2aa2f01343db0f26d214d7f264a0
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-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
        # https://github.com/0day-ci/linux/commit/4a777af1cc91dc603b6b92fe06fd94081dc2891e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Mayank-Suman/staging-fbtft-replaced-udelay-with-usleep_range/20210205-171807
        git checkout 4a777af1cc91dc603b6b92fe06fd94081dc2891e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   drivers/staging/fbtft/fb_agm1264k-fl.c: In function 'reset':
>> drivers/staging/fbtft/fb_agm1264k-fl.c:88:2: error: too few arguments to function 'usleep_range'
      88 |  usleep_range(20);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_agm1264k-fl.c:12:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
--
   drivers/staging/fbtft/fb_ra8875.c: In function 'write_reg8_bus8':
>> drivers/staging/fbtft/fb_ra8875.c:220:2: error: too few arguments to function 'usleep_range'
     220 |  usleep_range(100);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_ra8875.c:10:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_ra8875.c:241:2: error: too few arguments to function 'usleep_range'
     241 |  usleep_range(100);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_ra8875.c:10:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
--
   drivers/staging/fbtft/fb_tinylcd.c: In function 'init_display':
>> drivers/staging/fbtft/fb_tinylcd.c:44:2: error: too few arguments to function 'usleep_range'
      44 |  usleep_range(250);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_tinylcd.c:11:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
--
   drivers/staging/fbtft/fb_upd161704.c: In function 'init_display':
>> drivers/staging/fbtft/fb_upd161704.c:39:2: error: too few arguments to function 'usleep_range'
      39 |  usleep_range(100);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:43:2: error: too few arguments to function 'usleep_range'
      43 |  usleep_range(10);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:46:2: error: too few arguments to function 'usleep_range'
      46 |  usleep_range(10);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:49:2: error: too few arguments to function 'usleep_range'
      49 |  usleep_range(10);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:52:2: error: too few arguments to function 'usleep_range'
      52 |  usleep_range(10);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:55:2: error: too few arguments to function 'usleep_range'
      55 |  usleep_range(10);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:57:2: error: too few arguments to function 'usleep_range'
      57 |  usleep_range(10);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:59:2: error: too few arguments to function 'usleep_range'
      59 |  usleep_range(10);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_upd161704.c:67:2: error: too few arguments to function 'usleep_range'
      67 |  usleep_range(200);
         |  ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_upd161704.c:16:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
--
   drivers/staging/fbtft/fb_watterott.c: In function 'write_vmem':
>> drivers/staging/fbtft/fb_watterott.c:87:3: error: too few arguments to function 'usleep_range'
      87 |   usleep_range(300);
         |   ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_watterott.c:12:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~
   drivers/staging/fbtft/fb_watterott.c: In function 'write_vmem_8bit':
   drivers/staging/fbtft/fb_watterott.c:127:3: error: too few arguments to function 'usleep_range'
     127 |   usleep_range(700);
         |   ^~~~~~~~~~~~
   In file included from drivers/staging/fbtft/fb_watterott.c:12:
   include/linux/delay.h:61:6: note: declared here
      61 | void usleep_range(unsigned long min, unsigned long max);
         |      ^~~~~~~~~~~~


vim +/usleep_range +88 drivers/staging/fbtft/fb_agm1264k-fl.c

    79	
    80	static void reset(struct fbtft_par *par)
    81	{
    82		if (!par->gpio.reset)
    83			return;
    84	
    85		dev_dbg(par->info->device, "%s()\n", __func__);
    86	
    87		gpiod_set_value(par->gpio.reset, 0);
  > 88		usleep_range(20);
    89		gpiod_set_value(par->gpio.reset, 1);
    90		mdelay(120);
    91	}
    92	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 67368 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210205/926a0832/attachment-0001.gz>


More information about the dri-devel mailing list