Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp613387imu; Fri, 25 Jan 2019 07:57:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4QZX1tF8cqBqpA9DaFeqN2eUwj2TEoIgJ76U0nz0Vjpwn5Cwi/3Gsu0QS2HWrl3wfQ3CNe X-Received: by 2002:a63:f552:: with SMTP id e18mr10509392pgk.239.1548431860971; Fri, 25 Jan 2019 07:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548431860; cv=none; d=google.com; s=arc-20160816; b=1Gf8H3dQhEU6WL4qD9Hi2B8ME8PuiEBKNbRg9BQ+L+kdVtB7qncEcZacLhKx/ODK8F M4VGtrXrD9Tu/SzGHt//fGtmSzdrH6hXxcqYR5fCwzRHSkXU9g3f0eHQ3QVBfAJBRzte UEV2uJ8vlhBQbmYQPQ20by5xahbQaP+7BpptCkCSS6i8ojhSxeGZMKGg0n99IMNJzfIP x0fi/rOYPNHxGyZyDBlzJqpDiBUYFFUT0ggpoKdbtIZG36LphuuP06iNKsXmor0hIt61 moUzgquEV24OStPvXo+r++R4WXSiM6UsuuNdg8cAwwROZ7vZpzuHEg1uTYjiWo5bCwSM OAeA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=ZZDKli7DaGLye6x0lQs1kA+kZvtaRz+ircptLJ584H8=; b=E48YlyA3O0nsR9aOf0mLqSYTcqZAzYi+7XzDPCfEDnN0Uw0GVwGUU3B3ordOkK3dIz reJ+P9vofxdxLGNeePG9Q/vK8/vq7W7F48wOldFpcFVo2QoJgF65ntmbZyhqtE796HFR n2S4j2pPVnwOz/wPbBcZDxW0CxO/bTi+BqxL19Y4HVhaEGrrh7+M+CH4qnmH++v/k1p2 KAQM9xazcNThRYQ3AuLWxoVaKDcc/q+uNlF9ZKhg6S5agrY3MxvE7EtDLmPtHFJ4xOVF XgUdwWhjGFOGvwX+HyG8K7yGCjaX6beCenOm9sbhfOHjSkTZTiYxTqCLaVjvLm/SvwR+ Ndyg== 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 c8si26216378pfe.243.2019.01.25.07.57.25; Fri, 25 Jan 2019 07:57:40 -0800 (PST) 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 S1729027AbfAYP5O (ORCPT + 99 others); Fri, 25 Jan 2019 10:57:14 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:37431 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728503AbfAYP5N (ORCPT ); Fri, 25 Jan 2019 10:57:13 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1gn3qv-0001w3-QD; Fri, 25 Jan 2019 16:57:09 +0100 Message-ID: <1548431829.28802.50.camel@pengutronix.de> Subject: Re: [PATCH] arm64: Kconfig.platforms: fix warning unmet direct dependencies From: Lucas Stach To: Catalin Marinas , Anders Roxell Cc: will.deacon@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Fri, 25 Jan 2019 16:57:09 +0100 In-Reply-To: <20190125143215.GE25901@arrakis.emea.arm.com> References: <20190115191839.13823-1-anders.roxell@linaro.org> <20190125143215.GE25901@arrakis.emea.arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, den 25.01.2019, 14:32 +0000 schrieb Catalin Marinas: > On Tue, Jan 15, 2019 at 08:18:39PM +0100, Anders Roxell wrote: > > When ARCH_MXC get enabled, ARM64_ERRATUM_845719 will be selected and > > this warning will happen when COMPAT isn't set. > > > > WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 > >   Depends on [n]: COMPAT [=n] > >   Selected by [y]: > >   - ARCH_MXC [=y] > > > > Rework to add 'if COMPAT' before ARM64_ERRATUM_845719 gets selected, > > since ARM64_ERRATUM_845719 depends on COMPAT. > > > > > > Signed-off-by: Anders Roxell > > --- > >  arch/arm64/Kconfig.platforms | 2 +- > >  1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms > > index 251ecf34cb02..d4faca775d9c 100644 > > --- a/arch/arm64/Kconfig.platforms > > +++ b/arch/arm64/Kconfig.platforms > > @@ -145,7 +145,7 @@ config ARCH_MVEBU > >  config ARCH_MXC > > > >   bool "ARMv8 based NXP i.MX SoC family" > > > >   select ARM64_ERRATUM_843419 > > > > - select ARM64_ERRATUM_845719 > > > > + select ARM64_ERRATUM_845719 if COMPAT > > > >   help > > > >     This enables support for the ARMv8 based SoCs in the > >     NXP i.MX family. > > Actually, do we need to select the errata workarounds explicitly? That > seems to be the only case where we do it (commit 930507c18304, "arm64: > add basic Kconfig symbols for i.MX8"). They are default y, so we > shouldn't need to force them on. This is based on past experience. We've had a lot of cases were people did not enable the necessary CPU errata workaround, which then usually lead to very hard to debug system failures. It is on our list of things to look out for now, but I would feel much better if there is just no chance for a user to misconfigure the kernel in this way. Regards, Lucas