[linux-next:master 4629/8237] drivers/video/fbdev/omap/hwa742.c:492:5: warning: no previous prototype for 'hwa742_update_window_async'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   44a2f39e611ac0bc1f17c288a583d7f2e5684aa7
commit: 804f7f19c2e2928aeb8eafef8379fe8b8d13f98b [4629/8237] fbdev: omap: avoid using mach/*.h files
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20220504/202205041248.WgCwPcEV-lkp@xxxxxxxxx/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=804f7f19c2e2928aeb8eafef8379fe8b8d13f98b
        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 804f7f19c2e2928aeb8eafef8379fe8b8d13f98b
        # 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/video/fbdev/omap/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/video/fbdev/omap/hwa742.c:492:5: warning: no previous prototype for 'hwa742_update_window_async' [-Wmissing-prototypes]
     492 | int hwa742_update_window_async(struct fb_info *fbi,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/video/fbdev/omap/hwa742.c: In function 'setup_tearsync':
   drivers/video/fbdev/omap/hwa742.c:791:20: warning: variable 'vdisp' set but not used [-Wunused-but-set-variable]
     791 |         int hdisp, vdisp;
         |                    ^~~~~
   drivers/video/fbdev/omap/hwa742.c: In function 'hwa742_init':
   drivers/video/fbdev/omap/hwa742.c:943:38: warning: variable 'omapfb_conf' set but not used [-Wunused-but-set-variable]
     943 |         struct omapfb_platform_data *omapfb_conf;
         |                                      ^~~~~~~~~~~


vim +/hwa742_update_window_async +492 drivers/video/fbdev/omap/hwa742.c

6e4863dbb5612f drivers/video/fbdev/omap/hwa742.c Ahmed S. Darwish 2021-02-08  491  
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26 @492  int hwa742_update_window_async(struct fb_info *fbi,
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  493  				 struct omapfb_update_window *win,
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  494  				 void (*complete_callback)(void *arg),
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  495  				 void *complete_callback_data)
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  496  {
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  497  	LIST_HEAD(req_list);
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  498  	struct hwa742_request *last;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  499  	int r = 0;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  500  
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  501  	if (hwa742.update_mode != OMAPFB_MANUAL_UPDATE) {
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  502  		dev_dbg(hwa742.fbdev->dev, "invalid update mode\n");
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  503  		r = -EINVAL;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  504  		goto out;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  505  	}
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  506  	if (unlikely(win->format &
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  507  	    ~(0x03 | OMAPFB_FORMAT_FLAG_DOUBLE |
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  508  	    OMAPFB_FORMAT_FLAG_TEARSYNC | OMAPFB_FORMAT_FLAG_FORCE_VSYNC))) {
898eb71cb17644 drivers/video/omap/hwa742.c       Joe Perches      2007-10-18  509  		dev_dbg(hwa742.fbdev->dev, "invalid window flag\n");
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  510  		r = -EINVAL;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  511  		goto out;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  512  	}
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  513  
6e4863dbb5612f drivers/video/fbdev/omap/hwa742.c Ahmed S. Darwish 2021-02-08  514  	create_req_list(win, &req_list, true);
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  515  	last = list_entry(req_list.prev, struct hwa742_request, entry);
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  516  
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  517  	last->complete = complete_callback;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  518  	last->complete_data = (void *)complete_callback_data;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  519  
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  520  	submit_req_list(&req_list);
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  521  
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  522  out:
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  523  	return r;
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  524  }
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  525  EXPORT_SYMBOL(hwa742_update_window_async);
aae76ef13e348c drivers/video/omap/hwa742.c       Imre Deak        2007-05-26  526  

:::::: The code at line 492 was first introduced by commit
:::::: aae76ef13e348cebac225407ea2c452f8d0ff862 OMAP: add external Epson HWA742 LCD controller support

:::::: TO: Imre Deak <imre.deak@xxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux