@@ -1481,7 +1481,7 @@ static const struct file_operations fb_fops = {
struct class *fb_class;
EXPORT_SYMBOL(fb_class);
-static int fb_check_foreignness(struct fb_info *fi)
+int fb_check_foreignness(struct fb_info *fi)
{
const bool foreign_endian = fi->flags & FBINFO_FOREIGN_ENDIAN;
@@ -1505,6 +1505,7 @@ static int fb_check_foreignness(struct fb_info *fi)
return 0;
}
+EXPORT_SYMBOL(fb_check_foreignness);
static bool apertures_overlap(struct aperture *gen, struct aperture *hw)
{
@@ -622,6 +622,7 @@ extern int fb_get_color_depth(struct fb_var_screeninfo *var,
struct fb_fix_screeninfo *fix);
extern int fb_get_options(const char *name, char **option);
extern int fb_new_modelist(struct fb_info *info);
+extern int fb_check_foreignness(struct fb_info *fi);
extern struct fb_info *registered_fb[FB_MAX];
extern int num_registered_fb;
This function is required by DRM's fbdev conversion helpers. Export it from the module. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> --- drivers/video/fbdev/core/fbmem.c | 3 ++- include/linux/fb.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)