From: "Jan Beulich" Subject: Re: [PATCH 1/2] introduce gprintk() Date: Tue, 24 Mar 2015 15:31:14 +0000 Message-ID: <55119152020000780006D129@mail.emea.novell.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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaQnV-0005hE-GF for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:31:17 +0000 In-Reply-To: <55117ED0.30509@linaro.org> Content-Disposition: inline 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 , Ian Campbell , Stefano Stabellini , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 24.03.15 at 16:12, 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 don't think so - gdprintk() in the NDEBUG case is specifically an inline function instead of a macro, to avoid this very issue. Jan