Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev/cyber2000fb: Unexport symbols

Fix the compile-time warning

drivers/video/fbdev/cyber2000fb.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing

The affected symbols are not used anywhere, so remove the functions
entirely.

v2:
- remove unused functions (Helge)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Helge Deller <deller@gmx.de>
Fixes: a934a57a42f6 ("scripts/misc-check: check missing #include <linux/export.h> when W=1")
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20250612081738.197826-5-tzimmermann@suse.de

-38
-36
drivers/video/fbdev/cyber2000fb.c
··· 1089 1089 cyber2000_grphw(EXT_FUNC_CTL, old, cfb); 1090 1090 } 1091 1091 } 1092 - EXPORT_SYMBOL(cyber2000fb_enable_extregs); 1093 1092 1094 1093 /* 1095 1094 * Disable access to the extended registers ··· 1108 1109 else 1109 1110 cfb->func_use_count -= 1; 1110 1111 } 1111 - EXPORT_SYMBOL(cyber2000fb_disable_extregs); 1112 - 1113 - /* 1114 - * Attach a capture/tv driver to the core CyberX0X0 driver. 1115 - */ 1116 - int cyber2000fb_attach(struct cyberpro_info *info, int idx) 1117 - { 1118 - if (int_cfb_info != NULL) { 1119 - info->dev = int_cfb_info->fb.device; 1120 - #ifdef CONFIG_FB_CYBER2000_I2C 1121 - info->i2c = &int_cfb_info->i2c_adapter; 1122 - #else 1123 - info->i2c = NULL; 1124 - #endif 1125 - info->regs = int_cfb_info->regs; 1126 - info->irq = int_cfb_info->irq; 1127 - info->fb = int_cfb_info->fb.screen_base; 1128 - info->fb_size = int_cfb_info->fb.fix.smem_len; 1129 - info->info = int_cfb_info; 1130 - 1131 - strscpy(info->dev_name, int_cfb_info->fb.fix.id, 1132 - sizeof(info->dev_name)); 1133 - } 1134 - 1135 - return int_cfb_info != NULL; 1136 - } 1137 - EXPORT_SYMBOL(cyber2000fb_attach); 1138 - 1139 - /* 1140 - * Detach a capture/tv driver from the core CyberX0X0 driver. 1141 - */ 1142 - void cyber2000fb_detach(int idx) 1143 - { 1144 - } 1145 - EXPORT_SYMBOL(cyber2000fb_detach); 1146 1112 1147 1113 #ifdef CONFIG_FB_CYBER2000_DDC 1148 1114
-2
drivers/video/fbdev/cyber2000fb.h
··· 488 488 * Note! Writing to the Cyber20x0 registers from an interrupt 489 489 * routine is definitely a bad idea atm. 490 490 */ 491 - int cyber2000fb_attach(struct cyberpro_info *info, int idx); 492 - void cyber2000fb_detach(int idx); 493 491 void cyber2000fb_enable_extregs(struct cfb_info *cfb); 494 492 void cyber2000fb_disable_extregs(struct cfb_info *cfb);