Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1213611pxf; Fri, 9 Apr 2021 02:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd2fxWG/2tXJo6z45tgal+1NgyqO9INxsmaIM8hrny0euP3pI5JRMWieeOiwGcgzeWMohg X-Received: by 2002:a17:902:e84e:b029:e6:cbe6:34b5 with SMTP id t14-20020a170902e84eb02900e6cbe634b5mr12576039plg.42.1617962355141; Fri, 09 Apr 2021 02:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617962355; cv=none; d=google.com; s=arc-20160816; b=pOGFpaq3rSWwUC6Oy7omT3bkSUzIrOG85Vl1hbdVR3nHRoTFkZTY+IOlgWBuHJ+TuW +2oWNq14b2pbWrWCKpmpXZ2WE+Bq/Co2jPI7eSG1eDFnKDIuIiSp2hpFl9KETKre77EL ule/R2cSdZphnZ2UBBure5NTrBV3mjhfGdtvLGmj9+YUwes53Erf+8wS9pmh5AzpWlJS 1pa4UtL/JDgSLySc0e/Hmq2Z+Jac2NPfprkf2XyoDaRYyHQDyMLlN3CUbdFr1NP6RP/o XDvMvHlF9du9A6xS+RqGCNzwoPEulsJV/8fiYfA9umUl81t1ib2ztdXevuleZaPYstAg XEIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=efOe8kk6PJFe3s90ZiKSptxSFkLOkM0l9JIYGe+b858=; b=G6qc3sB65wJuqzX/Ve0OFwPzfNvVhNdyzz2O0YSnuGpFDsVFmvytpBUMzJjtIAN46P 0Z3vMlDbgdS8gwuFmtGKoT150pc8MkEeGHSLlS2A840Qf+6+GKbl7QRwfXNIoJWvVsdY Mlqhw2s5hJjUextLb7wAmuq88TJrR7yeD8EiNXf1LpvxCWOLj81ioI2jKfkIe61iVzTQ Ucjcc7uBmyjG7la5x0O+RPbAkHrGFGXxxMgZiYGmpQe3b6wXfHZkk8nyaaYI9nMsywDv iKlFdoP8WYWmZaHfUW9UrPh+5mjEhLDepn/BYQZN82wMCEqOir6GNCwM7RODbcgX0Gk6 Aurw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qfyqxgXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si2436367plh.233.2021.04.09.02.59.03; Fri, 09 Apr 2021 02:59:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qfyqxgXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233671AbhDIJ5d (ORCPT + 99 others); Fri, 9 Apr 2021 05:57:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:44438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233528AbhDIJ4U (ORCPT ); Fri, 9 Apr 2021 05:56:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B892E61205; Fri, 9 Apr 2021 09:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617962168; bh=aasq1UfykmEKZrVsIOCgwB7zHlTo7HeqhamPExmYheM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qfyqxgXaOFPKyaBJ8AF2POk+4YVNCye0SDIvBcE77Qp7Vk8G8Luxn8fK7pSkvDQ+F id33MMbZYIP+Fpfh21gtXrYRBE7rL8WmZo//GA63RT3y4c4uGtMFoOVr7P4xk/H2tg LQSgUAF3UDfH+WHocfnAp+qLa/WQbDSBSRjNYR/4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Heiko Carstens , Guenter Roeck , Arnd Bergmann , Kees Cook , Daniel Borkmann , Johannes Weiner , KP Singh , Nathan Chancellor , Nick Terrell , Quentin Perret , Valentin Schneider , "Enrico Weigelt, metux IT consult" , Andrew Morton , Linus Torvalds Subject: [PATCH 4.14 14/14] init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM Date: Fri, 9 Apr 2021 11:53:39 +0200 Message-Id: <20210409095300.855935965@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210409095300.391558233@linuxfoundation.org> References: <20210409095300.391558233@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada commit ea29b20a828511de3348334e529a3d046a180416 upstream. I read the commit log of the following two: - bc083a64b6c0 ("init/Kconfig: make COMPILE_TEST depend on !UML") - 334ef6ed06fa ("init/Kconfig: make COMPILE_TEST depend on !S390") Both are talking about HAS_IOMEM dependency missing in many drivers. So, 'depends on HAS_IOMEM' seems the direct, sensible solution to me. This does not change the behavior of UML. UML still cannot enable COMPILE_TEST because it does not provide HAS_IOMEM. The current dependency for S390 is too strong. Under the condition of CONFIG_PCI=y, S390 provides HAS_IOMEM, hence can enable COMPILE_TEST. I also removed the meaningless 'default n'. Link: https://lkml.kernel.org/r/20210224140809.1067582-1-masahiroy@kernel.org Signed-off-by: Masahiro Yamada Cc: Heiko Carstens Cc: Guenter Roeck Cc: Arnd Bergmann Cc: Kees Cook Cc: Daniel Borkmann Cc: Johannes Weiner Cc: KP Singh Cc: Nathan Chancellor Cc: Nick Terrell Cc: Quentin Perret Cc: Valentin Schneider Cc: "Enrico Weigelt, metux IT consult" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Cc: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- init/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/init/Kconfig +++ b/init/Kconfig @@ -65,8 +65,7 @@ config CROSS_COMPILE config COMPILE_TEST bool "Compile also drivers which will not load" - depends on !UML && !S390 - default n + depends on HAS_IOMEM help Some drivers can be compiled on a different platform than they are intended to be run on. Despite they cannot be loaded there (or even