Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752183AbcJFFM1 (ORCPT ); Thu, 6 Oct 2016 01:12:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36344 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751722AbcJFFM0 (ORCPT ); Thu, 6 Oct 2016 01:12:26 -0400 Date: Thu, 6 Oct 2016 13:12:17 +0800 From: Dave Young To: Andrew Morton , linux-kernel@vger.kernel.org Cc: Kees Cook , Ingo Molnar , Dan Williams , paulmck@linux.vnet.ibm.com, Josh Poimboeuf , Tejun Heo , Andrey Ryabinin , Nikolay Aleksandrov , Dmitry Vyukov Subject: [PATCH] Let CONFIG_STRICT_DEVMEM depends on CONFIG_DEVMEM Message-ID: <20161006051217.GA31027@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.0 (2016-08-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 06 Oct 2016 05:12:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 568 Lines: 19 With CONFIG_DEVMEM not set, CONFIG_STRICT_DEVMEM will be useless even if it is set =y, thus let's update the dependency in Kconfig. Signed-off-by: Dave Young --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-x86.orig/lib/Kconfig.debug +++ linux-x86/lib/Kconfig.debug @@ -1980,7 +1980,7 @@ config ARCH_HAS_DEVMEM_IS_ALLOWED config STRICT_DEVMEM bool "Filter access to /dev/mem" - depends on MMU + depends on MMU && DEVMEM depends on ARCH_HAS_DEVMEM_IS_ALLOWED default y if TILE || PPC ---help---