Received: by 10.213.65.68 with SMTP id h4csp1798377imn; Thu, 5 Apr 2018 04:06:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx482+LBvXdkOqW45+mVwrSdMalc222hYNNlJ1+jVYi/4HBw7vrwdJdxwZqHic0AME9/6GYo5 X-Received: by 10.99.140.14 with SMTP id m14mr14876505pgd.320.1522926390083; Thu, 05 Apr 2018 04:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522926390; cv=none; d=google.com; s=arc-20160816; b=0AI7HHBQNiyrWrVoPrilki3grR/0YirUPWtYVPzAowE6lkyTP22uaw/F5Ir3HqmlfE QkzMkMkwytcSAl1R1o41HX0L8y0ANA02TGH+S1udqJeLT6N2wJLYrlEALGTW0DrAD+zR L6pl09QsRhjR4S5pnyNWuYJ88Kc0YWB4f3ApBFTsrNX6ktp4n64YBtVZrupQoq9ONepZ s0oqysPIjPHyoJ0FAasXVrSPDy2C89StacfKYRjW+Nzt8Ww1zeyM0CWlzrpqrM3pbk6y aBjIL7yXypDfU/yNEvRTIIjWLnaUSyH5khsu4duIYJGip9MUBLeXOCjbuB6QfvTkLTwz NmlA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kJiaqLwrUx3EghUyqkRo91UafKNesvpM1yPGuHiF8lM=; b=0IDlmNziPxEIDCC3uGkooRESqrkJIAKV1k+n8Wt5wUPFM7gXTjgoVP73ALtJitw7yO zGD+uQ7P5i8OHqJVbu/2eGBhaw2o8CqH8hTVmw/P/O0zHO0KjN8FjPRckGLDNR/slLzB H+WGbN4VodXNXhDyA2nHHYagwQE9BQ73ehTruzLHSFeSYAt4O3ZtrdGomckZEnDTrrvv M6ygLMQ+iO/D1MaYMvxIOZe9CT8jfaKzjJaEb592emSlhUH/ZF+G3Ju3aQQkSQmzrzqM VAQ/cI+LlbMyQF6WppxjouBddPcGi8KC1eeBCJuuQ+BRHZOp/JAavlU3xsPRYbY3OInU FxIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jhEkymJh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si3945780pff.214.2018.04.05.04.06.14; Thu, 05 Apr 2018 04:06: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=@linaro.org header.s=google header.b=jhEkymJh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751298AbeDELFK (ORCPT + 99 others); Thu, 5 Apr 2018 07:05:10 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:37814 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbeDELFH (ORCPT ); Thu, 5 Apr 2018 07:05:07 -0400 Received: by mail-oi0-f65.google.com with SMTP id f63-v6so10297878oic.4 for ; Thu, 05 Apr 2018 04:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kJiaqLwrUx3EghUyqkRo91UafKNesvpM1yPGuHiF8lM=; b=jhEkymJhy4SeTeqi6nqyxxYgkOPlzQ3Dy8WnHiNR2cH88JT1fF7RZeIIraxuQyV/L5 Rcp4lCGlGVWnxKWw6/hDt/sphZRGj95JagE3FTKTonqoAJHPyYMonzXKs7Gr0t0qpcFd XGx5+8ZlVFpv9daqNRirlMZ0/3oGlaNDVTi60= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kJiaqLwrUx3EghUyqkRo91UafKNesvpM1yPGuHiF8lM=; b=Iy858Xu7zAOKovEtWrhScYzdTs17z6Xhwe2hoijgDv1EvB4vo7qoEp6ZAbCTXy72KA kdfLlq85RFjY0QTJ9VrJPycqP25XIO8RSGg/P06cGd7s0d6YtlFjVhlPAJBuoAw3qRq8 l/9LneKw+PYwIVQOGRRJMfE+A2XpRiq50VhTzybBgCfLxe0KebOIL4sJ6fgU7/2Jqyoa +QPso1Ukn7ufDzyPNyu4jxzywp41DTcw0uOQR62pl9wXj8DMDwLrA/7HAWE6Ru4WOXs0 L1nHg+WYAhQhR/fZ3Gqdtx5sXknkZu6qe/CVBh5x0pTvbFTZbg29I3wep9cfyVwc9+Y0 nEGw== X-Gm-Message-State: ALQs6tBPfjhB7U/gGlYSxYk4Onk4yi9Znut1XsHXFnGaFzLi35LH8ZTq acnh9QBL4yLvB7owd+MbXl97q99d8JRxSKU0HB1y0/iT X-Received: by 2002:aca:fd8d:: with SMTP id b135-v6mr12940767oii.312.1522926306348; Thu, 05 Apr 2018 04:05:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:5c89:0:0:0:0:0 with HTTP; Thu, 5 Apr 2018 04:05:05 -0700 (PDT) In-Reply-To: <20180403053401.30045-1-oohall@gmail.com> References: <20180403053401.30045-1-oohall@gmail.com> From: Benjamin Gaignard Date: Thu, 5 Apr 2018 13:05:05 +0200 Message-ID: Subject: Re: [PATCH] drm/sti: Depend on OF rather than selecting it To: "Oliver O'Halloran" Cc: Linux Kernel Mailing List , Vincent Abriou , David Airlie , dri-devel@lists.freedesktop.org, linux-ia64@vger.kernel.org, stable@vger.kernel.org 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 2018-04-03 7:34 GMT+02:00 Oliver O'Halloran : > Commit cc6b741c6f63 ("drm: sti: remove useless fields from vtg > structure") reworked some code inside of this driver and made it select > CONFIG_OF. This results in the entire OF layer being enabled when > building an allmodconfig on ia64. OF on ia64 is completely unsupported > so this isn't a great state of affairs. > > The 0day robot noticed a link-time failure on ia64 caused by > using of_node_to_nid() in an otherwise unrelated driver. The > generic fallback for of_node_to_nid() only exists when: > > defined(CONFIG_OF) && defined(CONFIG_NUMA) == false > > Since CONFIG_NUMA is usually selected for IA64 we get the link failure. > Fix this by making the driver depend on OF rather than selecting it, > odds are that was the original intent. > > Link: https://lists.01.org/pipermail/kbuild-all/2018-March/045172.html > Fixes: cc6b741c6f63 ("drm: sti: remove useless fields from vtg structure") > Cc: Benjamin Gaignard > Cc: Vincent Abriou > Cc: David Airlie > Cc: dri-devel@lists.freedesktop.org > Cc: linux-ia64@vger.kernel.org > Cc: stable@vger.kernel.org > Signed-off-by: Oliver O'Halloran Reviewed-by: Benjamin Gaignard > --- > Cc`ed to stable since the ia64 guys might want it backported. I'm not > bothered if it just goes into mainline. > --- > drivers/gpu/drm/sti/Kconfig | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/sti/Kconfig b/drivers/gpu/drm/sti/Kconfig > index cca4b3c9aeb5..1963cc1b1cc5 100644 > --- a/drivers/gpu/drm/sti/Kconfig > +++ b/drivers/gpu/drm/sti/Kconfig > @@ -1,6 +1,6 @@ > config DRM_STI > tristate "DRM Support for STMicroelectronics SoC stiH4xx Series" > - depends on DRM && (ARCH_STI || ARCH_MULTIPLATFORM) > + depends on OF && DRM && (ARCH_STI || ARCH_MULTIPLATFORM) > select RESET_CONTROLLER > select DRM_KMS_HELPER > select DRM_GEM_CMA_HELPER > @@ -8,6 +8,5 @@ config DRM_STI > select DRM_PANEL > select FW_LOADER > select SND_SOC_HDMI_CODEC if SND_SOC > - select OF > help > Choose this option to enable DRM on STM stiH4xx chipset > -- > 2.9.5 >