Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839AbdCHQJ2 (ORCPT ); Wed, 8 Mar 2017 11:09:28 -0500 Received: from mail-vk0-f43.google.com ([209.85.213.43]:35064 "EHLO mail-vk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbdCHQJZ (ORCPT ); Wed, 8 Mar 2017 11:09:25 -0500 MIME-Version: 1.0 In-Reply-To: <20170308003254.27833-16-ricardo.neri-calderon@linux.intel.com> References: <20170308003254.27833-1-ricardo.neri-calderon@linux.intel.com> <20170308003254.27833-16-ricardo.neri-calderon@linux.intel.com> From: Andy Lutomirski Date: Wed, 8 Mar 2017 08:08:37 -0800 Message-ID: Subject: Re: [v6 PATCH 15/21] x86/mm: Relocate page fault error codes to traps.h To: Ricardo Neri Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andy Lutomirski , Borislav Petkov , Peter Zijlstra , Andrew Morton , Brian Gerst , Chris Metcalf , Dave Hansen , Paolo Bonzini , Liang Z Li , Masami Hiramatsu , Huang Rui , Jiri Slaby , Jonathan Corbet , "Michael S. Tsirkin" , Paul Gortmaker , Vlastimil Babka , Chen Yucong , Alexandre Julliard , Stas Sergeev , Fenghua Yu , "Ravi V. Shankar" , Shuah Khan , "linux-kernel@vger.kernel.org" , X86 ML , linux-msdos@vger.kernel.org, wine-devel@winehq.org, "Kirill A. Shutemov" , Josh Poimboeuf Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 818 Lines: 16 On Tue, Mar 7, 2017 at 4:32 PM, Ricardo Neri wrote: > Up to this point, only fault.c used the definitions of the page fault error > codes. Thus, it made sense to keep them within such file. Other portions of > code might be interested in those definitions too. For instance, the User- > Mode Instruction Prevention emulation code will use such definitions to > emulate a page fault when it is unable to successfully copy the results > of the emulated instructions to user space. > > While relocating the error code enumeration, the prefix X86_ is used to > make it consistent with the rest of the definitions in traps.h. Of course, > code using the enumeration had to be updated as well. No functional changes > were performed. > Reviewed-by: Andy Lutomirski