Skip to contentSkip to conversation

drivers/staging/fbtft/fbtft-core.c:368:14: error: 'struct fb_info' has no member named 'dev'

PATCH kernel test robot 1 participant 1 message Jan 10

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hi Chintan,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f417b7ffcbef7d76b0d8860518f50dae0e7e5eda
commit: a06d03f9f23820a3cae381f2e82302e7e618190a [2640/5095] staging: fbtft: Make FB_DEVICE dependency optional
config: s390-randconfig-001-20260111 (https://download.01.org/0day-ci/archive/20260111/[email protected]/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260111/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

In file included from include/linux/device.h:15,

                    from include/linux/acpi.h:15,
                    from include/linux/i2c.h:13,
                    from include/uapi/linux/fb.h:6,
                    from include/linux/fb.h:5,
                    from drivers/staging/fbtft/fbtft-core.c:18:
   drivers/staging/fbtft/fbtft-core.c: In function 'fbtft_fb_setcolreg':
>> drivers/staging/fbtft/fbtft-core.c:368:14: error: 'struct fb_info' has no member named 'dev'
     dev_dbg(info->dev,
                 ^~
   include/linux/dev_printk.h:139:23: note: in definition of macro 'dev_no_printk'
       _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
                          ^~~
   drivers/staging/fbtft/fbtft-core.c:368:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(info->dev,
     ^~~~~~~
   drivers/staging/fbtft/fbtft-core.c: In function 'fbtft_fb_blank':
   drivers/staging/fbtft/fbtft-core.c:394:14: error: 'struct fb_info' has no member named 'dev'
     dev_dbg(info->dev, "%s(blank=%d)\n",
                 ^~
   include/linux/dev_printk.h:139:23: note: in definition of macro 'dev_no_printk'
       _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
                          ^~~
   drivers/staging/fbtft/fbtft-core.c:394:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(info->dev, "%s(blank=%d)\n",
     ^~~~~~~
   drivers/staging/fbtft/fbtft-core.c: In function 'fbtft_register_framebuffer':
   drivers/staging/fbtft/fbtft-core.c:796:18: error: 'struct fb_info' has no member named 'dev'
     dev_info(fb_info->dev,
                     ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
              ^~~
   drivers/staging/fbtft/fbtft-core.c:796:2: note: in expansion of macro 'dev_info'
     dev_info(fb_info->dev,
     ^~~~~~~~

vim +368 drivers/staging/fbtft/fbtft-core.c

c296d5f9957c03 Thomas Petazzoni        2014-12-31  360  
1ba539d53b2de2 Bhanusree Pola          2019-02-25  361  static int fbtft_fb_setcolreg(unsigned int regno, unsigned int red,
1ba539d53b2de2 Bhanusree Pola          2019-02-25  362  			      unsigned int green, unsigned int blue,
1ba539d53b2de2 Bhanusree Pola          2019-02-25  363  			      unsigned int transp, struct fb_info *info)
c296d5f9957c03 Thomas Petazzoni        2014-12-31  364  {
1c41494adf7aa6 Ming Yang               2016-07-17  365  	unsigned int val;
c296d5f9957c03 Thomas Petazzoni        2014-12-31  366  	int ret = 1;
c296d5f9957c03 Thomas Petazzoni        2014-12-31  367  
b38c760ab0e1d7 Madhusudhanan Ravindran 2015-06-01 @368  	dev_dbg(info->dev,
c296d5f9957c03 Thomas Petazzoni        2014-12-31  369  		"%s(regno=%u, red=0x%X, green=0x%X, blue=0x%X, trans=0x%X)\n",
c296d5f9957c03 Thomas Petazzoni        2014-12-31  370  		__func__, regno, red, green, blue, transp);
c296d5f9957c03 Thomas Petazzoni        2014-12-31  371  
c296d5f9957c03 Thomas Petazzoni        2014-12-31  372  	switch (info->fix.visual) {
c296d5f9957c03 Thomas Petazzoni        2014-12-31  373  	case FB_VISUAL_TRUECOLOR:
c296d5f9957c03 Thomas Petazzoni        2014-12-31  374  		if (regno < 16) {
c296d5f9957c03 Thomas Petazzoni        2014-12-31  375  			u32 *pal = info->pseudo_palette;
c296d5f9957c03 Thomas Petazzoni        2014-12-31  376  
c296d5f9957c03 Thomas Petazzoni        2014-12-31  377  			val  = chan_to_field(red,   &info->var.red);
c296d5f9957c03 Thomas Petazzoni        2014-12-31  378  			val |= chan_to_field(green, &info->var.green);
c296d5f9957c03 Thomas Petazzoni        2014-12-31  379  			val |= chan_to_field(blue,  &info->var.blue);
c296d5f9957c03 Thomas Petazzoni        2014-12-31  380  
c296d5f9957c03 Thomas Petazzoni        2014-12-31  381  			pal[regno] = val;
c296d5f9957c03 Thomas Petazzoni        2014-12-31  382  			ret = 0;
c296d5f9957c03 Thomas Petazzoni        2014-12-31  383  		}
c296d5f9957c03 Thomas Petazzoni        2014-12-31  384  		break;
c296d5f9957c03 Thomas Petazzoni        2014-12-31  385  	}
c296d5f9957c03 Thomas Petazzoni        2014-12-31  386  	return ret;
c296d5f9957c03 Thomas Petazzoni        2014-12-31  387  }
c296d5f9957c03 Thomas Petazzoni        2014-12-31  388  

:::::: The code at line 368 was first introduced by commit
:::::: b38c760ab0e1d7e051f13e31771514b5809de222 staging: fbtft: replace fbtft_dev_dbg with standard dev_dbg call

:::::: TO: Madhusudhanan Ravindran <[email protected]> :::::: CC: Greg Kroah-Hartman <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki