lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 22 Aug 2020 15:20:18 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/video/fbdev/wmt_ge_rops.c:41:6: warning: no previous
 prototype for 'wmt_ge_fillrect'

Hi Bartlomiej,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f873db9acd3c92d4741bc3676c9eb511b2f9a6f6
commit: 9e24d63b054ba692129872c1acb9be7536fd1d45 video: fbdev: wm8505fb: add COMPILE_TEST support
date:   6 months ago
config: ia64-randconfig-r035-20200822 (attached as .config)
compiler: ia64-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
        git checkout 9e24d63b054ba692129872c1acb9be7536fd1d45
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

>> drivers/video/fbdev/wmt_ge_rops.c:41:6: warning: no previous prototype for 'wmt_ge_fillrect' [-Wmissing-prototypes]
      41 | void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
         |      ^~~~~~~~~~~~~~~
>> drivers/video/fbdev/wmt_ge_rops.c:77:6: warning: no previous prototype for 'wmt_ge_copyarea' [-Wmissing-prototypes]
      77 | void wmt_ge_copyarea(struct fb_info *p, const struct fb_copyarea *area)
         |      ^~~~~~~~~~~~~~~
>> drivers/video/fbdev/wmt_ge_rops.c:110:5: warning: no previous prototype for 'wmt_ge_sync' [-Wmissing-prototypes]
     110 | int wmt_ge_sync(struct fb_info *p)
         |     ^~~~~~~~~~~

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9e24d63b054ba692129872c1acb9be7536fd1d45
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9e24d63b054ba692129872c1acb9be7536fd1d45
vim +/wmt_ge_fillrect +41 drivers/video/fbdev/wmt_ge_rops.c

d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   40  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  @41  void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   42  {
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   43  	unsigned long fg, pat;
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   44  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   45  	if (p->state != FBINFO_STATE_RUNNING)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   46  		return;
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   47  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   48  	if (p->fix.visual == FB_VISUAL_TRUECOLOR ||
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   49  	    p->fix.visual == FB_VISUAL_DIRECTCOLOR)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   50  		fg = ((u32 *) (p->pseudo_palette))[rect->color];
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   51  	else
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   52  		fg = rect->color;
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   53  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   54  	pat = pixel_to_pat(p->var.bits_per_pixel, fg);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   55  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   56  	if (p->fbops->fb_sync)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   57  		p->fbops->fb_sync(p);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   58  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   59  	writel(p->var.bits_per_pixel == 32 ? 3 :
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   60  	      (p->var.bits_per_pixel == 8 ? 0 : 1), regbase + GE_DEPTH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   61  	writel(p->var.bits_per_pixel == 15 ? 1 : 0, regbase + GE_HIGHCOLOR_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   62  	writel(p->fix.smem_start, regbase + GE_DESTBASE_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   63  	writel(p->var.xres_virtual - 1, regbase + GE_DESTDISPW_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   64  	writel(p->var.yres_virtual - 1, regbase + GE_DESTDISPH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   65  	writel(rect->dx, regbase + GE_DESTAREAX_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   66  	writel(rect->dy, regbase + GE_DESTAREAY_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   67  	writel(rect->width - 1, regbase + GE_DESTAREAW_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   68  	writel(rect->height - 1, regbase + GE_DESTAREAH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   69  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   70  	writel(pat, regbase + GE_PAT0C_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   71  	writel(1, regbase + GE_COMMAND_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   72  	writel(rect->rop == ROP_XOR ? 0x5a : 0xf0, regbase + GE_ROPCODE_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   73  	writel(1, regbase + GE_FIRE_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   74  }
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   75  EXPORT_SYMBOL_GPL(wmt_ge_fillrect);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   76  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  @77  void wmt_ge_copyarea(struct fb_info *p, const struct fb_copyarea *area)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   78  {
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   79  	if (p->state != FBINFO_STATE_RUNNING)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   80  		return;
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   81  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   82  	if (p->fbops->fb_sync)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   83  		p->fbops->fb_sync(p);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   84  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   85  	writel(p->var.bits_per_pixel > 16 ? 3 :
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   86  	      (p->var.bits_per_pixel > 8 ? 1 : 0), regbase + GE_DEPTH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   87  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   88  	writel(p->fix.smem_start, regbase + GE_SRCBASE_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   89  	writel(p->var.xres_virtual - 1, regbase + GE_SRCDISPW_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   90  	writel(p->var.yres_virtual - 1, regbase + GE_SRCDISPH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   91  	writel(area->sx, regbase + GE_SRCAREAX_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   92  	writel(area->sy, regbase + GE_SRCAREAY_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   93  	writel(area->width - 1, regbase + GE_SRCAREAW_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   94  	writel(area->height - 1, regbase + GE_SRCAREAH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   95  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   96  	writel(p->fix.smem_start, regbase + GE_DESTBASE_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   97  	writel(p->var.xres_virtual - 1, regbase + GE_DESTDISPW_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   98  	writel(p->var.yres_virtual - 1, regbase + GE_DESTDISPH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09   99  	writel(area->dx, regbase + GE_DESTAREAX_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  100  	writel(area->dy, regbase + GE_DESTAREAY_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  101  	writel(area->width - 1, regbase + GE_DESTAREAW_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  102  	writel(area->height - 1, regbase + GE_DESTAREAH_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  103  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  104  	writel(0xcc, regbase + GE_ROPCODE_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  105  	writel(1, regbase + GE_COMMAND_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  106  	writel(1, regbase + GE_FIRE_OFF);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  107  }
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  108  EXPORT_SYMBOL_GPL(wmt_ge_copyarea);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  109  
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09 @110  int wmt_ge_sync(struct fb_info *p)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  111  {
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  112  	int loops = 5000000;
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  113  	while ((readl(regbase + GE_STATUS_OFF) & 4) && --loops)
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  114  		cpu_relax();
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  115  	return loops > 0 ? 0 : -EBUSY;
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  116  }
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  117  EXPORT_SYMBOL_GPL(wmt_ge_sync);
d6ff7d0fe22cdf drivers/video/wmt_ge_rops.c Alexey Charkov 2010-11-09  118  

:::::: The code at line 41 was first introduced by commit
:::::: d6ff7d0fe22cdf3ea41c48b50da9a9181500d1bf ARM: Add support for the display controllers in VT8500 and WM8505

:::::: TO: Alexey Charkov <alchark@...il.com>
:::::: CC: Paul Mundt <lethal@...ux-sh.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (34585 bytes)

Powered by blists - more mailing lists