Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1763467imm; Fri, 7 Sep 2018 05:54:58 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb9PsHTgc3Cc+vHJCykBwMlHtjRd3V+FaKPNLQdVTz6ZgS9yH75TTQnz6Dy1MlUWidSX1t0 X-Received: by 2002:a17:902:7c0a:: with SMTP id x10-v6mr7778747pll.77.1536324898927; Fri, 07 Sep 2018 05:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536324898; cv=none; d=google.com; s=arc-20160816; b=C73OFomo2Z3XxAf17C9ql1y8TFD8maeYfMrmpmqUkstE8z3rXIxDBJwOOrZ4tYMPeH m7ve8FkgUdCcjH+NXdPO25atpJQNKzMtaAs4Yc0G0mvoH/5mkqntFZwxyZit47A9NeGG m4s5/qVwLGYqmMMxfZTbrH8GH3gr3NGGttP4iRhXmaHZ/zqd83sg8I3hie86f2yOyHjO VWRmv2zt5DRGXIy+sPyN5y9Q+nTUWByJZ4p8IJLq32d7WqZuNbngXQ/ao0Nh3t05ZL2j NmXbOv9ZT+bfWQ+xzP81svt5oOiS6UZygzPBmOcBfxI/0FUMAo1WSsmNf/XV6MeVMR/u 8tfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=e31LJ64CoqiFm20TRpYH1iGAbLuyF+mw9E9PK52/Iyg=; b=Y16lacaMJcKCQgtOE4AVnmb+0B3bGGhuv7flijppWUaSmS+mrAdw123/2KjDWGVfob 7J64io16fluCMrPnYlZj/QC4ts69P4S2gGuIxGui+1zxc42wzRJJgJDjqOEGTaUCT3Ad DQLUxhEbKdm1CJdYHj52CyqfX25F8zHV5zp3iv0Q9HLXwmFBYlkSSty39I8oPOGUsGRe O68YnEmQW9ocfLAJmeUiSvM5s33zw59Q2/2818h4ZObvHWrqfQPmnYycTLZrseOghhgl X6J9qu4ydquUWP4dz/6KwD9XoLI1UFEm5lekIJ5pITlhhtdxaHObk6eTzbLI6cKIaPoo gxwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24-v6si8595435pgh.295.2018.09.07.05.54.42; Fri, 07 Sep 2018 05:54:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728153AbeIGQHR (ORCPT + 99 others); Fri, 7 Sep 2018 12:07:17 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46686 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727987AbeIGQHR (ORCPT ); Fri, 7 Sep 2018 12:07:17 -0400 Received: by mail-qk1-f193.google.com with SMTP id j7-v6so9423250qkd.13 for ; Fri, 07 Sep 2018 04:26:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e31LJ64CoqiFm20TRpYH1iGAbLuyF+mw9E9PK52/Iyg=; b=Mqtk36nyDWqBUNU7pCws/OvBXRneFOeQrZjV6VOZ0YkQrS3/o320kbQgh4ecCYB4gH FZgHK9ZuqfDwKeY95nbv/7KX7fO4JGojpjjEUAWFpfzBViTIQdz4P75bAbJVXd1S+eNv l+DNmL3/dEtlGcK238h6ubpUYlZ71w8WNdilNhejyOudTCSpasE88WZYQrk/7eqmupaD jyCjB/aiYHPA+sOHpqRSbrJjl26xfqzr26rBhiUGimpvfbFCldlCKYifAo0o4xrotBgQ SeY9cLvllwy27BfHvnhkc+grvglfB+HiUXLHd/9BdrQAw740X0RvIlJzFo1HNSb8biFK 7cyw== X-Gm-Message-State: APzg51CWo53b0Vj0XOiQwh1USUrd+XSfE2jdFpjZ1frddQycEUrCvKQk CqoLvutjzNbo1NPtNse8GMpc0ffVhn5xtX/vWO4= X-Received: by 2002:a37:1b91:: with SMTP id m17-v6mr5472433qkh.173.1536319606035; Fri, 07 Sep 2018 04:26:46 -0700 (PDT) MIME-Version: 1.0 References: <20180711144403.1022829-1-arnd@arndb.de> <105cb1cf-577a-043a-9b50-248a37090bdd@nvidia.com> In-Reply-To: <105cb1cf-577a-043a-9b50-248a37090bdd@nvidia.com> From: Arnd Bergmann Date: Fri, 7 Sep 2018 13:26:30 +0200 Message-ID: Subject: Re: [PATCH] [v3] drm/sun4i: fix build failure with CONFIG_DRM_SUN8I_MIXER=m To: Jonathan Hunter Cc: Maxime Ripard , Chen-Yu Tsai , dri-devel , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 7, 2018 at 11:41 AM Jon Hunter wrote: > > > On 11/07/18 15:43, Arnd Bergmann wrote: > > Having DRM_SUN4I built-in but DRM_SUN8I_MIXER as a loadable module results in > > a link error, as we try to access a symbol from the sun8i_tcon_top.ko module: > > > > ERROR: "sun8i_tcon_top_of_table" [drivers/gpu/drm/sun4i/sun8i-drm-hdmi.ko] undefined! > > ERROR: "sun8i_tcon_top_of_table" [drivers/gpu/drm/sun4i/sun4i-drm.ko] undefined! > > > > This solves the problem by adding a silent symbol for the tcon_top module, > > building it as a separate module in exactly the cases that we need it, > > but in a way that it is reachable by the other modules. > > > > Fixes: 57e23de02f48 ("drm/sun4i: DW HDMI: Expand algorithm for possible crtcs") > > Fixes: ef0cf6441fbb ("drm/sun4i: Add support for traversing graph with TCON TOP") > > Signed-off-by: Arnd Bergmann > I am seeing the following on today's -next (20180907) as well the last > few -next versions for that matter ... > > ERROR: "sun8i_tcon_top_de_config" [drivers/gpu/drm/sun4i/sun4i-tcon.ko] undefined! > ERROR: "sun8i_tcon_top_set_hdmi_src" [drivers/gpu/drm/sun4i/sun4i-tcon.ko] undefined! > ERROR: "sun8i_tcon_top_of_table" [drivers/gpu/drm/sun4i/sun4i-tcon.ko] undefined! > > Seems like this issue has cropped up again as Arnd's fix is present. I > am seeing this on ARM64 builds. I have not started build testing on linux-next since the merge window, but looking at the changes that got queued up, I find commits cf77d79b4e29 ("drm/sun4i: tcon: Add another way for matching mixers with tcon") and 0305189afb32 ("drm/sun4i: tcon: Add support for R40 TCON") that both introduced a reference to the tcon_top file from sun4i_tcon.c. More IS_ENABLED(CONFIG_DRM_SUN8I_TCON_TOP) checks in the caller like I did in my patch would help, or alternatively one could decide to give up and just always include the TCON_TOP. Arnd