Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751657AbbEFX2M (ORCPT ); Wed, 6 May 2015 19:28:12 -0400 Received: from g4t3426.houston.hp.com ([15.201.208.54]:35275 "EHLO g4t3426.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbbEFX2I (ORCPT ); Wed, 6 May 2015 19:28:08 -0400 Message-ID: <1430953738.23761.330.camel@misato.fc.hp.com> Subject: Re: [PATCH v4 4/7] mtrr, x86: Fix MTRR state checks in mtrr_type_lookup() From: Toshi Kani To: Borislav Petkov Cc: akpm@linux-foundation.org, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, linux-mm@kvack.org, x86@kernel.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, Elliott@hp.com, pebolle@tiscali.nl Date: Wed, 06 May 2015 17:08:58 -0600 In-Reply-To: <20150506223917.GK22949@pd.tnic> References: <1427234921-19737-1-git-send-email-toshi.kani@hp.com> <1427234921-19737-5-git-send-email-toshi.kani@hp.com> <20150506114705.GD22949@pd.tnic> <1430925811.23761.303.camel@misato.fc.hp.com> <20150506223917.GK22949@pd.tnic> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 876 Lines: 21 On Thu, 2015-05-07 at 00:39 +0200, Borislav Petkov wrote: > On Wed, May 06, 2015 at 09:23:31AM -0600, Toshi Kani wrote: > > I have a question. Those bits define the bit field of enabled in struct > > mtrr_state_type, which is defined in this header. Is it OK to only move > > those definitions to other header? > > I think we shouldn't expose stuff to userspace if we don't have to > because then we're stuck with it. Userspace has managed so far without > those defines so I don't see why we should export them now. OK, I will move those bits definition to arch/x86/include/asm/mtrr.h. Thanks for the clarification, -Toshi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/