From: Ian Campbell Subject: Re: [PATCH] ns16550: Use correct #define symbol for HAS_IOPORTS Date: Tue, 24 Sep 2013 10:29:11 +0100 Message-ID: <1380014951.23688.11.camel@kazak.uk.xensource.com> References: <1379957103-3201-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: In-Reply-To: <1379957103-3201-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 Frser , Jan Beulich , Xen-devel List-Id: xen-devel@lists.xenproject.org On Mon, 2013-09-23 at 18:25 +0100, Andrew Cooper wrote: > CID 1091471, Regression caused by 7c1de0038895cbc75ebd0caffc5b0f3f03c5ad51 > > This appears to be a typo which causes check_existence() to unconditionally > return 1 in all cases. > > Signed-off-by: Andrew Cooper > CC: Keir Frser > CC: Jan Beulich Acked-by: Ian Campbell > --- > xen/drivers/char/ns16550.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c > index 5892eb7..9c2cded 100644 > --- a/xen/drivers/char/ns16550.c > +++ b/xen/drivers/char/ns16550.c > @@ -503,7 +503,7 @@ static int __init check_existence(struct ns16550 *uart) > { > unsigned char status, scratch, scratch2, scratch3; > > -#ifdef HAS_IO_PORTS > +#ifdef HAS_IOPORTS > /* > * We can't poke MMIO UARTs until they get I/O remapped later. Assume that > * if we're getting MMIO UARTs, the arch code knows what it's doing.