From patchwork Mon Jun 24 08:32:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 11012623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 02CBA1398 for ; Mon, 24 Jun 2019 08:33:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3D88212D8 for ; Mon, 24 Jun 2019 08:33:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D73A628B45; Mon, 24 Jun 2019 08:33:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D190212D8 for ; Mon, 24 Jun 2019 08:33:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbfFXIdD (ORCPT ); Mon, 24 Jun 2019 04:33:03 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37208 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbfFXIdD (ORCPT ); Mon, 24 Jun 2019 04:33:03 -0400 Received: by mail-ed1-f65.google.com with SMTP id w13so20569894eds.4 for ; Mon, 24 Jun 2019 01:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rhq/A+Wmeu0M0xpQ5ggr38wrWajMw16Fcl2eXJ2cqCM=; b=Xl/UEKe4ZlQUG9JziPsm9bJPu2EwUbCisCgv19ADkWt/skBEuSaOrDxTyNaRZz7YyX 4T1ON3POCGbrp06bokoC9KhzKCaNrCKtOjDsn0kqroRsiAqSl9aCec7I50oZT34BhC36 2Nw5U0uZUXfzcDRYP5lBEypT/89qU86eBX/7w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rhq/A+Wmeu0M0xpQ5ggr38wrWajMw16Fcl2eXJ2cqCM=; b=ipKCk6jxYi3hFZe+Z7N5JEa0kmOwccDbnVgP+DZb+dU38cWjIh7/p9Ta0/kBQ+LQlY gmBGw/XUDMNVDW26t6ZnRuIo4lAnB+T3GSEip22gy1Tkqk8lHCWPZ91kyiZgDIN+hyq8 i2hB/q5V7+8aXPTZjVgYgItVsQ7pAi04cgtKi+1AqxigbtQ8ZJ/Bw+Ga6an8ElmPrIyp omf8CtIniK/khLYb/5kIMf5Pmv8xO3Co28P9WrObOgcNSfzTFQHTA96N0AjEIdu0R9Md cKkBzVDYN3OJdHjOGksc6jBPcC4HZYevjyVLGPxXK8AYQKtLFQ5EDnt0ZzRh7uxC2sBM bneQ== X-Gm-Message-State: APjAAAXdwJBxw5bOsus5X5dUGPmMsXGHEUlrpV5zW1IaOwpxpM4Hwt4/ qsch6K/GGoGvQyreFsgR0Z440Q== X-Google-Smtp-Source: APXvYqyxQqcCOaClByMhs9zg429dU19NX8iT7BNkF349mthFHC5Eqv9G8GiIgew05iugGCQJDye1Bg== X-Received: by 2002:a50:e612:: with SMTP id y18mr160702738edm.143.1561365181654; Mon, 24 Jun 2019 01:33:01 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id s5sm3431668edh.3.2019.06.24.01.33.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 01:33:00 -0700 (PDT) From: Daniel Vetter To: DRI Development Cc: Daniel Vetter , Stephen Rothwell , kbuild test robot , Lukas Wunner , Daniel Vetter , Sam Ravnborg , Maarten Lankhorst , David Airlie , Daniel Vetter , Maxime Ripard , Sean Paul , Bartlomiej Zolnierkiewicz , Hans de Goede , Yisheng Xie , linux-fbdev@vger.kernel.org, Daniel Thompson , Lee Jones Subject: [PATCH] fbcon: Export fbcon_remap_all Date: Mon, 24 Jun 2019 10:32:55 +0200 Message-Id: <20190624083255.13235-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes linking fail when fbcon/fbdev is moduler and vgaswitcheroo is enabled: x86_64-linux-gnu-ld: drivers/gpu/vga/vga_switcheroo.o: in function `vga_switchto_stage2': vga_switcheroo.c:(.text+0x997): undefined reference to `fbcon_remap_all' Reported-by: Stephen Rothwell Reported-by: kbuild test robot Fixes: 1cd51b5d200d ("vgaswitcheroo: call fbcon_remap_all directly") Cc: Stephen Rothwell Cc: Lukas Wunner Cc: Daniel Vetter Cc: Sam Ravnborg Cc: Maarten Lankhorst Cc: David Airlie Cc: Daniel Vetter Cc: Maxime Ripard Cc: Sean Paul Cc: Bartlomiej Zolnierkiewicz Cc: Hans de Goede Cc: Yisheng Xie Cc: linux-fbdev@vger.kernel.org Cc: Daniel Thompson Cc: Lee Jones Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org --- wrt merging probably best if Maarten adds this to the topic branch we have already and sends out an updated pull request. Apologies for the mess. -Daniel --- drivers/video/fbdev/core/fbcon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index c9235a2f42f8..199ca723c768 100644 --- a/drivers/video/fbdev/core/fbcon.c +++ b/drivers/video/fbdev/core/fbcon.c @@ -3194,6 +3194,7 @@ void fbcon_remap_all(struct fb_info *info) } console_unlock(); } +EXPORT_SYMBOL(fbcon_remap_all); #ifdef CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY static void fbcon_select_primary(struct fb_info *info)