Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756153Ab2HFNB0 (ORCPT ); Mon, 6 Aug 2012 09:01:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3286 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416Ab2HFNBY (ORCPT ); Mon, 6 Aug 2012 09:01:24 -0400 Message-ID: <501FC021.5010609@redhat.com> Date: Mon, 06 Aug 2012 16:01:21 +0300 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Xiao Guangrong CC: Marcelo Tosatti , LKML , KVM Subject: Re: [PATCH v2 02/10] KVM: introduce KVM_PFN_ERR_FAULT References: <501B7F94.7090308@linux.vnet.ibm.com> <501B7FD2.4000305@linux.vnet.ibm.com> In-Reply-To: <501B7FD2.4000305@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 683 Lines: 20 On 08/03/2012 10:37 AM, Xiao Guangrong wrote: > After that, the exported and un-inline function, get_fault_pfn, > can be removed > > > +#define KVM_PFN_ERR_FAULT (-EFAULT) > + IMO this symbol isn't needed, just use -EFAULT (and -EHWPOISON etc.) directly. Just document it in hva_to_pfn(), since this isn't an ordinary -EFAULT (and -ENOENT certainly needs describing). -- error compiling committee.c: too many arguments to function -- 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/