Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1592832ybe; Wed, 11 Sep 2019 18:05:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz48SnIoqJg/CrBrDC8R3zFMBovN3RDHWJrDzAPI/R0PqfhbwEBgxV9O8C/GQk+/b7KK+B X-Received: by 2002:aa7:d95a:: with SMTP id l26mr39461155eds.297.1568250330753; Wed, 11 Sep 2019 18:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568250330; cv=none; d=google.com; s=arc-20160816; b=kauPeOB5hXFEk7pS+qsSAhFyZz1OXt0WH+vI1ydhaPQaEZb30H7/TwD9Jw8DAK5cGc T3nrVZPFDN7eBrwYBhUudp8JXujBzfXFAujxOc21JuIR1tvfp71hm2304OBDMEw3ravI wjImxOzmfTP6MHRoSTdS8g/0k/+pZMuDpMP8d+6fcboZcHXFUHKQqoPSYpB0vor7yhHp bi8a8fJLURUcPQE7dl3B2N20iXV4vHYyH14JrfL7CEbhF9aaMssmaTpRRHMZGEQ7WKpq jsfs/7UKFOJLYiyIDKGX0ZnsYdqGPq4zqe30EMVWgrltSnbiWEPj53kQh4OPwuXPOWR4 fm4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=NKUMKkNtqrTDWVT1RfLccaVJ+xpM7V6DZTRRz/GPGuw=; b=qLDvzonivG7zT+QHhDNXhpFAN41Kstk6Gua8fsTc9icLZGCyZ6TBuIfLSDeyA8wKhB j9HNb1S9ZvjAMGuegFff6ejENeM30ImoiXdd8xLulItUdDz2UCG5HLFq+w1ephptLm9T 4mUYWl4x3wBRWkOkhV9vtaFggqIoGEPBlAWY+MtbIdl/Ergf+lRcUh8l9ezxQr7C6OJW RElzvcLqin3TSJDfRuPwconyyHIdO4ZWi9nJBk4Ml3bNEd4FAfXHiZw4iQGUEGZetJNk 5jVi8Krj6UwAp9BZ3j9SgrhLQw9jNHpgIedreuAeSM6r6X8WDw1kclfSGlhsFms7d49l bJIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=RzDfyOI5; 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 z2si11806227ejr.360.2019.09.11.18.05.06; Wed, 11 Sep 2019 18:05:30 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=RzDfyOI5; 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 S1728820AbfILAxC (ORCPT + 99 others); Wed, 11 Sep 2019 20:53:02 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:55862 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728762AbfILAxC (ORCPT ); Wed, 11 Sep 2019 20:53:02 -0400 Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x8C0qemV031825; Thu, 12 Sep 2019 09:52:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x8C0qemV031825 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1568249561; bh=NKUMKkNtqrTDWVT1RfLccaVJ+xpM7V6DZTRRz/GPGuw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RzDfyOI55EA7WF2xdjs7tkxM22KbWfvxPD1sifXO1FtLjiIfV65YxTizktZcuyqj8 c2bfyOHKAFI9geummPzJ7TjFboyxopJcSgnprroGE/FobXeHsAqgCtHGvOE3W5gKqe ouH3pFBjTf55YJHAdv5aO85BZMm99/Kh1bb7EpUMjqJFFNSTEhHvUCK9n1dINncUAs N7ocOOdaurLi6hQk9iI51a3SxL8s1el/rqU3nFx6IB7+p+1eqnAqTzXiU+HUV4WrfF s+//lApTUSIifRjGTJ9mfsQmB4qyV4qkwM21WzJKS6sX3dfh4pSIlabRpn2fC40jdT 473stFcb60nhA== X-Nifty-SrcIP: [209.85.217.47] Received: by mail-vs1-f47.google.com with SMTP id m22so15039440vsl.9; Wed, 11 Sep 2019 17:52:41 -0700 (PDT) X-Gm-Message-State: APjAAAWsDqiZ7lUOhv7IfQ3BKSp1ZgXVHWtyRvyHg8/vMDuDt4Y6qXo5 hO3m4R8bIJXclAVVJF7neScH3LyoKWfStb+E7Zs= X-Received: by 2002:a67:1a41:: with SMTP id a62mr22692085vsa.54.1568249560218; Wed, 11 Sep 2019 17:52:40 -0700 (PDT) MIME-Version: 1.0 References: <20190911173453.958-1-cai@lca.pw> <08E1DEDD-D82F-41C1-966B-ECCE445C8FA1@lca.pw> In-Reply-To: <08E1DEDD-D82F-41C1-966B-ECCE445C8FA1@lca.pw> From: Masahiro Yamada Date: Thu, 12 Sep 2019 09:52:03 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] gpu: no need to compile drm/ if CONFIG_DRM=n To: Qian Cai Cc: Maxime Ripard , David Airlie , Daniel Vetter , dri-devel , Emil Velikov , Linux Kbuild mailing list , Linux Kernel Mailing List , maarten.lankhorst@linux.intel.com, Michal Marek , mripard@kernel.org, Sean Paul Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 12, 2019 at 2:41 AM Qian Cai wrote: > > > > > On Sep 11, 2019, at 1:37 PM, Maxime Ripard = wrote: > > > > Hi, > > > > Le mer. 11 sept. 2019 =C3=A0 19:35, Qian Cai a =C3=A9crit = : > > The commit c0e09200dc08 ("drm: reorganise drm tree to be more future > > proof.") changed the behavior from only compiling drm/ if CONFIG_DRM=3D= y > > to always compiling drm/. This restores the behavior, so people don't > > need to waste time compiling stuff they don't need. > > > > Fixes: c0e09200dc08 ("drm: reorganise drm tree to be more future proof.= ") > > > > You are missing your signed-off-by > > That is intentional because this is a RFC patch to gather the feedback as= I am no > expert in DRM and may miss something important. > > Once people are happy with it, I plan to send a formal patch with Signed-= off-by. > CONFIG_DRM is tristate. Your patch requires everything under drivers/gpu/drm/ modular when CONFIG_DRM=3Dm. At least, drivers/gpu/drm/drm_mipi_dsi.c is built-in only. I guess that is the reason why they use 'obj-y +=3D drm/'. In other words, if you are able to make all the drm code modular, your patch is applicable. --=20 Best Regards Masahiro Yamada