From: Tim Deegan Subject: Re: [PATCH] xen/shadow: Clean up use of assertions in multi.c Date: Thu, 24 Apr 2014 13:40:18 +0200 Message-ID: <20140424114018.GD48969@deinos.phlegethon.org> References: <1397673321-18726-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1397673321-18726-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Jan Beulich , Xen-devel List-Id: xen-devel@lists.xenproject.org At 19:35 +0100 on 16 Apr (1397673321), Andrew Cooper wrote: > Use BUILD_BUG_ON()s in preference to ASSERT(sizeof(foo) == sizeof (bar)). > > sh_map_domain_page() is just a thin wrapper around map_domain_page(), which > cannot fail. Asserting its success is redundant. > > Signed-off-by: Andrew Cooper Applied, thanks. Tim.