From: Keir Fraser Subject: Re: [PATCH 07 of 14] Trivial fix for rc val in hap track dirty vram Date: Thu, 24 Nov 2011 15:38:50 +0000 Message-ID: References: <4ECE237B0200007800062EB5@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4ECE237B0200007800062EB5@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Andres Lagar-Cavilla Cc: andres@gridcentric.ca, xen-devel@lists.xensource.com, tim@xen.org, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org On 24/11/2011 09:59, "Jan Beulich" wrote: >>>> On 23.11.11 at 22:11, Andres Lagar-Cavilla wrote: >> xen/arch/x86/mm/hap/hap.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> >> Signed-off-by: Andres Lagar-Cavilla >> >> diff -r e22610ef339a -r 25d27decfdcc xen/arch/x86/mm/hap/hap.c >> --- a/xen/arch/x86/mm/hap/hap.c >> +++ b/xen/arch/x86/mm/hap/hap.c >> @@ -141,7 +141,7 @@ int hap_track_dirty_vram(struct domain * >> } >> else if ( !paging_mode_log_dirty(d) && !dirty_vram ) >> { >> - rc -ENOMEM; >> + rc = -ENOMEM; >> if ( (dirty_vram = xmalloc(struct sh_dirty_vram)) == NULL ) >> goto param_fail; >> > > This would have been caught by the compiler if we weren't forcing > -Wno-unused-value. Keir, shouldn't we revisit this 5 year old decision > (c/s 11762:db3d58d30e9d)? Fine with me to allow the warnings now. -- Keir > Jan >