Hi Chintan, kernel test robot noticed the following build errors:
[auto build test ERROR on staging/staging-testing] url: https://github.com/intel-lab-lkp/linux/commits/Chintan-Patel/staging-fbtft-use-dev_of_fbinfo-instead-of-info-dev/20260112-091221 base: staging/staging-testing patch link: https://lore.kernel.org/r/20260112010740.186248-1-chintanlike%40gmail.com patch subject: [PATCH v5] staging: fbtft: use dev_of_fbinfo() instead of info->dev config: x86_64-randconfig-005-20260112 (https://download.01.org/0day-ci/archive/20260112/[email protected]/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) rustc: rustc 1.88.0 (6b00bc388 2025-06-23) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260112/[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 >>): >> drivers/staging/fbtft/fbtft-core.c:367:23: error: call to undeclared >> function 'dev_of_fbinfo'; ISO C99 and later do not support implicit function >> declarations [-Wimplicit-function-declaration] 367 | struct device *dev = dev_of_fbinfo(info); | ^ >> drivers/staging/fbtft/fbtft-core.c:367:17: error: incompatible integer to >> pointer conversion initializing 'struct device *' with an expression of type >> 'int' [-Wint-conversion] 367 | struct device *dev = dev_of_fbinfo(info); | ^ ~~~~~~~~~~~~~~~~~~~ drivers/staging/fbtft/fbtft-core.c:393:23: error: call to undeclared function 'dev_of_fbinfo'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 393 | struct device *dev = dev_of_fbinfo(info); | ^ drivers/staging/fbtft/fbtft-core.c:393:17: error: incompatible integer to pointer conversion initializing 'struct device *' with an expression of type 'int' [-Wint-conversion] 393 | struct device *dev = dev_of_fbinfo(info); | ^ ~~~~~~~~~~~~~~~~~~~ drivers/staging/fbtft/fbtft-core.c:744:23: error: call to undeclared function 'dev_of_fbinfo'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 744 | struct device *dev = dev_of_fbinfo(fb_info); | ^ drivers/staging/fbtft/fbtft-core.c:744:17: error: incompatible integer to pointer conversion initializing 'struct device *' with an expression of type 'int' [-Wint-conversion] 744 | struct device *dev = dev_of_fbinfo(fb_info); | ^ ~~~~~~~~~~~~~~~~~~~~~~ 6 errors generated. vim +/dev_of_fbinfo +367 drivers/staging/fbtft/fbtft-core.c 360 361 static int fbtft_fb_setcolreg(unsigned int regno, unsigned int red, 362 unsigned int green, unsigned int blue, 363 unsigned int transp, struct fb_info *info) 364 { 365 unsigned int val; 366 int ret = 1; > 367 struct device *dev = dev_of_fbinfo(info); 368 369 dev_dbg(dev, 370 "%s(regno=%u, red=0x%X, green=0x%X, blue=0x%X, trans=0x%X)\n", 371 __func__, regno, red, green, blue, transp); 372 373 switch (info->fix.visual) { 374 case FB_VISUAL_TRUECOLOR: 375 if (regno < 16) { 376 u32 *pal = info->pseudo_palette; 377 378 val = chan_to_field(red, &info->var.red); 379 val |= chan_to_field(green, &info->var.green); 380 val |= chan_to_field(blue, &info->var.blue); 381 382 pal[regno] = val; 383 ret = 0; 384 } 385 break; 386 } 387 return ret; 388 } 389 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
