From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 1/2] introduce gprintk() Date: Tue, 24 Mar 2015 15:42:23 +0000 Message-ID: <1427211743.21742.445.camel@citrix.com> References: <550C44F1020000780006C1A5@mail.emea.novell.com> <550C46F0020000780006C1C1@mail.emea.novell.com> <1427206853.21742.402.camel@citrix.com> <55117ED0.30509@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaR1S-0007m8-TS for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:45:43 +0000 In-Reply-To: <55117ED0.30509@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Keir Fraser , Stefano Stabellini , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Andrew Cooper , xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2015-03-24 at 15:12 +0000, Julien Grall wrote: > Hi Ian, > > On 24/03/2015 14:20, Ian Campbell wrote: > > @@ -1709,7 +1707,6 @@ static void do_cp15_64(struct cpu_user_regs *regs, > > break; > > default: > > { > > -#ifndef NDEBUG > > struct hsr_cp64 cp64 = hsr.cp64; > > > > gdprintk(XENLOG_ERR, > > @@ -1718,7 +1715,6 @@ static void do_cp15_64(struct cpu_user_regs *regs, > > cp64.op1, cp64.reg1, cp64.reg2, cp64.crm, regs->pc); > > gdprintk(XENLOG_ERR, "unhandled 64-bit CP15 access %#x\n", > > hsr.bits & HSR_CP64_REGS_MASK); > > -#endif > > Did you try to build with debug=n ? I suspect that GCC will warn about > the unused cp64. I did, and it didn't. Ian.