Received: by 10.213.65.68 with SMTP id h4csp3135178imn; Mon, 2 Apr 2018 22:36:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/r0re4SrvM2B8I9MbiKSHclts6VhszOHZ/0Y+3djES4aLQ9wnq1hee/fiPlcZ60HU+1eCW X-Received: by 10.98.76.68 with SMTP id z65mr9556556pfa.181.1522733808247; Mon, 02 Apr 2018 22:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522733808; cv=none; d=google.com; s=arc-20160816; b=tjbTad5JueF2qETZCXSkp3aezIW4CiLtwObTSuBYiOkTEyLupPT5C8UJvq7ccyhr0O /KooojSTOS+O5VJD4JWPjjZtpM7DqOG9NMzOuYkqvfYeFMSA2sLrzoFX9vwWMq5y/W78 Gvdyd5o8WtNx5x1S7JYN+M7YVCtrZ8LXgGcimXU5WUJntUHKfu+PHJfxLpDwzse3UtSC PpZ1QeMf4AVd4JYY6HXYmc6kyCyf2M6LU6/R7k1JA57+n8vuII+96yf0VvsEx3wO9Jsr EHZq8XlaAH+ACHHqHGIrWyYt4whE7mbXELDMwtMbbJNbSqXE/JNUbPj8txgJpo9Ttsz0 dHpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=aLCHMgxOVzcAwAmBbtuqB7XxxPvXmbV0TESDH3ZtYIg=; b=o2CNEZcZYhv8NeHeMTGDSKyN3SrLMkQS8ROdYLz8H2NUhaXYjPZOk5GqPLbtqZzS/k mghGzWZz6tBMWGPzbDjcrxCq2xWmk0KTk2sDSaXbygKtXdguVemwTaSLqkoc2DxjZquT oyKZATsn+ktEsImmYoOUC0F9EycJOmuYaV0Pjnl3ruy4dHo3MAPkJiWZR1OnNi5Q8ptK AKwVjts20Mkpz4uqdmg9qp1clSjx8JA730l2Ljnr5wFARfFe+im86uqvtinPEU/baRM2 hMQmCMsgLn/v+j3qmL3EDoqUzOmDftPEyZvbrCkPeiwaa6Vz2/BUtQ5sqi93tJyeuzFk +prg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rG419eeg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si1385869pgu.352.2018.04.02.22.36.23; Mon, 02 Apr 2018 22:36:48 -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=@gmail.com header.s=20161025 header.b=rG419eeg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754762AbeDCFeZ (ORCPT + 99 others); Tue, 3 Apr 2018 01:34:25 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:41844 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754583AbeDCFeX (ORCPT ); Tue, 3 Apr 2018 01:34:23 -0400 Received: by mail-pl0-f67.google.com with SMTP id bj1-v6so4974261plb.8; Mon, 02 Apr 2018 22:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=aLCHMgxOVzcAwAmBbtuqB7XxxPvXmbV0TESDH3ZtYIg=; b=rG419eegaQ+SYGTZ3nNb4LTmJhMw59Gear1z1d9vN6U/O3FlO27Bu+PjXp3xnDMBDk XdvufxQVULEH9E0tVTelwHb/Yc3ZJm3TIfzTULfA9JOyjPWA/YY6PgnvKOebaDaKWlgo ZzxnZYeMD0WZ0S++F6YbT7++VN0lnEjM2c/yhnzztGql90MukFG+QaaRb2XtrSJq/+AG Ox4Bdt7VEfPaldPye5hupMcfNVe6pxEoVkRvH2aC9hH3gMVYU/9izErSqAgfG0JH8AlY qWa/fbCStHLCDB3NODtpFKtwJ4vUqEE+ciZkc3qHiYq155U+SU0zkjx+Bxgkm0X5zfUR ahsw== 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; bh=aLCHMgxOVzcAwAmBbtuqB7XxxPvXmbV0TESDH3ZtYIg=; b=B6xOCXu6at4yOdqrvMmuzCGN52XsD6YU8lQs4F086KGNFNvqtQK/i/6PiPR0jjDLhK 4/N5HN3cl/2YPPTh6YwwRDtyZrfxZv8KKOrnffRQOAgM7u+dy6fXEM0umM17/eZx/Kr/ 0uDYRKG12c9wJke/zy1pinb9KfzUjiTuTeoeSTtOaYpjHy37vRxNNdKSzFxCxPC8AWur 817ai8sLOSW8OduQSheMmWOfVsRvNMUR2igji1+IizzVABmPNbKZaGpRo8hT+B67c3Xi V1BcyPU+2Fyjml4uNkSk8iAG+ggLEHvwhf9xrQtINBO4fismHbSIdTIrVR6pB2QkRmYN WjCQ== X-Gm-Message-State: AElRT7E5i+ZcvO4h8POk/FRsxqWq0miV0Wc0GHKavNe+L9IIY1+izouA LQUllarzyTtAx85vKkyH0ENLZQ== X-Received: by 2002:a17:902:8646:: with SMTP id y6-v6mr12912165plt.182.1522733662460; Mon, 02 Apr 2018 22:34:22 -0700 (PDT) Received: from flat-canetoad.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id r20sm3602424pff.165.2018.04.02.22.34.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 22:34:21 -0700 (PDT) From: Oliver O'Halloran To: linux-kernel@vger.kernel.org Cc: Oliver O'Halloran , Benjamin Gaignard , Vincent Abriou , David Airlie , dri-devel@lists.freedesktop.org, linux-ia64@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] drm/sti: Depend on OF rather than selecting it Date: Tue, 3 Apr 2018 15:34:01 +1000 Message-Id: <20180403053401.30045-1-oohall@gmail.com> X-Mailer: git-send-email 2.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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