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

fbdev/pxafb: Unexport symbol

Fix the compile-time warning

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

The affected symbol is not used anywhere, so remove the function
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-12-tzimmermann@suse.de

+2 -16
+2 -15
drivers/video/fbdev/pxafb.c
··· 1030 1030 1031 1031 /* 1032 1032 * Some touchscreens need hsync information from the video driver to 1033 - * function correctly. We export it here. Note that 'hsync_time' and 1034 - * the value returned from pxafb_get_hsync_time() is the *reciprocal* 1035 - * of the hsync period in seconds. 1033 + * function correctly. We export it here. Note that 'hsync_time' is 1034 + * the *reciprocal* of the hsync period in seconds. 1036 1035 */ 1037 1036 static inline void set_hsync_time(struct pxafb_info *fbi, unsigned int pcd) 1038 1037 { ··· 1046 1047 1047 1048 fbi->hsync_time = htime; 1048 1049 } 1049 - 1050 - unsigned long pxafb_get_hsync_time(struct device *dev) 1051 - { 1052 - struct pxafb_info *fbi = dev_get_drvdata(dev); 1053 - 1054 - /* If display is blanked/suspended, hsync isn't active */ 1055 - if (!fbi || (fbi->state != C_ENABLE)) 1056 - return 0; 1057 - 1058 - return fbi->hsync_time; 1059 - } 1060 - EXPORT_SYMBOL(pxafb_get_hsync_time); 1061 1050 1062 1051 static int setup_frame_dma(struct pxafb_info *fbi, int dma, int pal, 1063 1052 unsigned long start, size_t size)
-1
include/linux/platform_data/video-pxafb.h
··· 150 150 }; 151 151 152 152 void pxa_set_fb_info(struct device *, struct pxafb_mach_info *); 153 - unsigned long pxafb_get_hsync_time(struct device *dev); 154 153 155 154 /* smartpanel related */ 156 155 #define SMART_CMD_A0 (0x1 << 8)