lkml.org 
[lkml]   [2022]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[deller-fbdev:sti-fixes 1/3] drivers/video/console/sticore.c:1132:5: error: redefinition of 'fb_is_primary_device'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git sti-fixes
head: 8f37351b420207e71968a48f12dfd7502b0ccb04
commit: 5e57f5568087c724e2cdaf3e38a96d109f40235b [1/3] parisc/stifb: Implement fb_is_primary_device()
config: parisc-buildonly-randconfig-r005-20220531 (https://download.01.org/0day-ci/archive/20220604/202206042154.K6D7MXNw-lkp@intel.com/config)
compiler: hppa-linux-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/deller/linux-fbdev.git/commit/?id=5e57f5568087c724e2cdaf3e38a96d109f40235b
git remote add deller-fbdev git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git
git fetch --no-tags deller-fbdev sti-fixes
git checkout 5e57f5568087c724e2cdaf3e38a96d109f40235b
# 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=parisc SHELL=/bin/bash drivers/video/console/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/video/console/sticore.c:1132:5: error: redefinition of 'fb_is_primary_device'
1132 | int fb_is_primary_device(struct fb_info *info)
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/video/console/sticore.c:33:
arch/parisc/include/asm/fb.h:18:19: note: previous definition of 'fb_is_primary_device' with type 'int(struct fb_info *)'
18 | static inline int fb_is_primary_device(struct fb_info *info)
| ^~~~~~~~~~~~~~~~~~~~


vim +/fb_is_primary_device +1132 drivers/video/console/sticore.c

1130
1131 /* check if given fb_info is the primary device */
> 1132 int fb_is_primary_device(struct fb_info *info)
1133 {
1134 struct sti_struct *sti;
1135
1136 sti = sti_get_rom(0);
1137
1138 /* if no built-in graphics card found, allow any fb driver as default */
1139 if (!sti)
1140 return true;
1141
1142 /* return true if it's the default built-in framebuffer driver */
1143 return (sti->info == info);
1144 }
1145 EXPORT_SYMBOL(fb_is_primary_device);
1146

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

\
 
 \ /
  Last update: 2022-06-04 15:26    [W:0.323 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site