From patchwork Mon Oct 14 14:04:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 11188767 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F136017E6 for ; Mon, 14 Oct 2019 14:04:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D246821721 for ; Mon, 14 Oct 2019 14:04:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732398AbfJNOEW (ORCPT ); Mon, 14 Oct 2019 10:04:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:50720 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732349AbfJNOEW (ORCPT ); Mon, 14 Oct 2019 10:04:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 766B4AF92; Mon, 14 Oct 2019 14:04:20 +0000 (UTC) From: Thomas Zimmermann To: airlied@linux.ie, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, sean@poorly.run, b.zolnierkie@samsung.com, ajax@redhat.com, ville.syrjala@linux.intel.com, malat@debian.org, michel@daenzer.net Cc: corbet@lwn.net, gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Thomas Zimmermann Subject: [PATCH v2 01/15] fbdev: Export fb_check_foreignness() Date: Mon, 14 Oct 2019 16:04:02 +0200 Message-Id: <20191014140416.28517-2-tzimmermann@suse.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191014140416.28517-1-tzimmermann@suse.de> References: <20191014140416.28517-1-tzimmermann@suse.de> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This function is required by DRM's fbdev conversion helpers. Export it from the module. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/core/fbmem.c | 3 ++- include/linux/fb.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c index 95c32952fa8a..e828fcccce40 100644 --- a/drivers/video/fbdev/core/fbmem.c +++ b/drivers/video/fbdev/core/fbmem.c @@ -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) { diff --git a/include/linux/fb.h b/include/linux/fb.h index 41e0069eca0a..372f1f6ae42e 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -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;