From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753816AbbKWJxR (ORCPT ); Mon, 23 Nov 2015 04:53:17 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:58406 "EHLO e06smtp13.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754387AbbKWJxM (ORCPT ); Mon, 23 Nov 2015 04:53:12 -0500 X-IBM-Helo: d06dlp03.portsmouth.uk.ibm.com X-IBM-MailFrom: heiko.carstens@de.ibm.com X-IBM-RcptTo: linux-arch@vger.kernel.org;linux-kernel@vger.kernel.org Date: Mon, 23 Nov 2015 10:53:02 +0100 From: Heiko Carstens To: Dan Williams Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Russell King , Kees Cook , Arnd Bergmann , Greg Kroah-Hartman , Catalin Marinas , linux-nvdimm@ml01.01.org, Andrew Morton , Will Deacon , Ingo Molnar , Benjamin Herrenschmidt , "H. Peter Anvin" , Martin Schwidefsky , Thomas Gleixner , "David S. Miller" , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug Message-ID: <20151123095302.GA4436@osiris> References: <20151122035702.9313.52457.stgit@dwillia2-desk3.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151122035702.9313.52457.stgit@dwillia2-desk3.jf.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15112309-0013-0000-0000-000007BB3A3D Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 21, 2015 at 07:57:02PM -0800, Dan Williams wrote: > Let all the archs that implement CONFIG_STRICT_DEVM use a common > definition in lib/Kconfig.debug. > > Note, the 'depends on !SPARC' is due to sparc not implementing > devmem_is_allowed(). > > Cc: Kees Cook > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Benjamin Herrenschmidt > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Andrew Morton > Cc: Greg Kroah-Hartman > Cc: "David S. Miller" > Suggested-by: Arnd Bergmann > Signed-off-by: Dan Williams > --- > arch/arm/Kconfig.debug | 14 -------------- > arch/arm64/Kconfig.debug | 14 -------------- > arch/powerpc/Kconfig.debug | 12 ------------ > arch/s390/Kconfig.debug | 12 ------------ > arch/tile/Kconfig | 3 --- > arch/unicore32/Kconfig.debug | 14 -------------- > arch/x86/Kconfig.debug | 17 ----------------- > lib/Kconfig.debug | 19 +++++++++++++++++++ > 8 files changed, 19 insertions(+), 86 deletions(-) For s390 Acked-by: Heiko Carstens > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 8c15b29d5adc..ad85145d0047 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1853,3 +1853,22 @@ source "samples/Kconfig" > > source "lib/Kconfig.kgdb" > > +config STRICT_DEVMEM > + bool "Filter access to /dev/mem" > + depends on MMU > + depends on !SPARC > + default y if TILE || PPC || S390 I wouldn't mind if you would remove s390 from this list.