linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 4629/8237] drivers/video/fbdev/omap/hwa742.c:492:5: warning: no previous prototype for 'hwa742_update_window_async'
Date: Wed, 4 May 2022 13:07:30 +0800	[thread overview]
Message-ID: <202205041248.WgCwPcEV-lkp@intel.com> (raw)

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@intel.com/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@intel.com>

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@solidboot.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

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


                 reply	other threads:[~2022-05-04  5:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202205041248.WgCwPcEV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).