drivers/gpu/drm/bridge/of-display-mode-bridge.c:54:25: sparse: sparse: symbol 'of_display_mode_bridge_funcs' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4fa3f5fabb30bf00d7475d5a33459ea83d639bf9 commit: ba2db93cf3d569a4525a02cd0ed5ec5f979e3afd [226/14321] drm/bridge: Move legacy bridge driver out of imx directory for multi-platform use config: sparc64-randconfig-r133-20260617 (https://download.01.org/0day-ci/archive/20260617/[email protected]/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e19d1f51a2c80b63cd8ca95bcc757b7077112808) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260617/[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]/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/bridge/of-display-mode-bridge.c:54:25: sparse: sparse: symbol 'of_display_mode_bridge_funcs' was not declared. Should it be static?
vim +/of_display_mode_bridge_funcs +54 drivers/gpu/drm/bridge/of-display-mode-bridge.c
53
> 54 struct drm_bridge_funcs of_display_mode_bridge_funcs = {
55 .attach = of_display_mode_bridge_attach,
56 .get_modes = of_display_mode_bridge_get_modes,
57 };
58 --
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hello Damon,
Quoted 16 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4fa3f5fabb30bf00d7475d5a33459ea83d639bf9 commit: ba2db93cf3d569a4525a02cd0ed5ec5f979e3afd [226/14321] drm/bridge: Move legacy bridge driver out of imx directory for multi-platform use config: sparc64-randconfig-r133-20260617 (https://download.01.org/0day-ci/archive/20260617/[email protected]/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e19d1f51a2c80b63cd8ca95bcc757b7077112808) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260617/[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]/sparse warnings: (new ones prefixed by >>)
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/bridge/of-display-mode-bridge.c:54:25: sparse: sparse: symbol 'of_display_mode_bridge_funcs' was not declared. Should it be static?
Quoted 8 lines
vim +/of_display_mode_bridge_funcs +54
drivers/gpu/drm/bridge/of-display-mode-bridge.c53Quoted 1 line
54 struct
drm_bridge_funcsof_display_mode_bridge_funcs= {55 .attach = of_display_mode_bridge_attach, 56 .get_modes = of_display_mode_bridge_get_modes, 57 }; 58
This had been reported already (Message-ID:
<[email protected]>). Indeed this should be static const.
Do you plan to send a patch fixing it? Otherwise let me know and I can do it.
Thanks,
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Hi Luca,
Quoted 28 lines · Luca Ceresoli
Hello Damon,
Quoted 16 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4fa3f5fabb30bf00d7475d5a33459ea83d639bf9 commit: ba2db93cf3d569a4525a02cd0ed5ec5f979e3afd [226/14321] drm/bridge: Move legacy bridge driver out of imx directory for multi-platform use config: sparc64-randconfig-r133-20260617 (https://download.01.org/0day-ci/archive/20260617/[email protected]/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e19d1f51a2c80b63cd8ca95bcc757b7077112808) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260617/[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]/sparse warnings: (new ones prefixed by >>)
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/bridge/of-display-mode-bridge.c:54:25: sparse: sparse: symbol 'of_display_mode_bridge_funcs' was not declared. Should it be static?Quoted 8 lines
vim +/of_display_mode_bridge_funcs +54
drivers/gpu/drm/bridge/of-display-mode-bridge.c53Quoted 1 line
54 struct
drm_bridge_funcsof_display_mode_bridge_funcs= {55 .attach = of_display_mode_bridge_attach, 56 .get_modes = of_display_mode_bridge_get_modes, 57 }; 58
Quoted 6 lines
This had been reported already (Message-ID:
<[email protected]>). Indeed this should be static const.Do you plan to send a patch fixing it? Otherwise let me know and I can do it.
Thanks for the heads-up. I'll send a fix patch soon.
Best regards,
Damon