2022-06-25 03:25:33

by kernel test robot

[permalink] [raw]
Subject: [linux-stable-rc:linux-5.15.y 6925/7971] drivers/video/console/sticore.c:1132:5: error: redefinition of 'fb_is_primary_device'

tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
head: add0aacf730e0bba8de6382b896a9a55b022cb59
commit: 8b8fe78cae1d09229f544f4129b8c87ca7a8f367 [6925/7971] parisc/stifb: Implement fb_is_primary_device()
config: parisc-buildonly-randconfig-r006-20220624
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/stable/linux-stable-rc.git/commit/?id=8b8fe78cae1d09229f544f4129b8c87ca7a8f367
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.15.y
git checkout 8b8fe78cae1d09229f544f4129b8c87ca7a8f367
# 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 <[email protected]>

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


Attachments:
(No filename) (2.38 kB)
config (126.43 kB)
Download all attachments

2022-06-26 00:00:16

by Helge Deller

[permalink] [raw]
Subject: Re: [linux-stable-rc:linux-5.15.y 6925/7971] drivers/video/console/sticore.c:1132:5: error: redefinition of 'fb_is_primary_device'

On 6/25/22 04:58, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
> head: add0aacf730e0bba8de6382b896a9a55b022cb59
> commit: 8b8fe78cae1d09229f544f4129b8c87ca7a8f367 [6925/7971] parisc/stifb: Implement fb_is_primary_device()
> config: parisc-buildonly-randconfig-r006-20220624
> 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/stable/linux-stable-rc.git/commit/?id=8b8fe78cae1d09229f544f4129b8c87ca7a8f367
> git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
> git fetch --no-tags linux-stable-rc linux-5.15.y
> git checkout 8b8fe78cae1d09229f544f4129b8c87ca7a8f367
> # 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 <[email protected]>
>
> 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)
> | ^~~~~~~~~~~~~~~~~~~~
>

I've queued up a fix for this in my for-next tree. It will reach v5.10+ at some point...

Helge