From: Ian Campbell Subject: Re: libxl: build error Date: Wed, 24 Oct 2012 10:58:31 +0100 Message-ID: <1351072711.2237.139.camel@zakaz.uk.xensource.com> References: <5087B6A4.6030203@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5087B6A4.6030203@amd.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: Christoph Egger Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-10-24 at 10:36 +0100, Christoph Egger wrote: > Hi, > > I have this build error: > > xl_cmdimpl.c:3724:40: error: declaration of 'reboot' shadows a global > declaration Did gcc tell you where the other global definition was from? reboot(2) I suppose? > Renaming it to '_reboot' fixes this for me. Can you send a patch? I don't think _reboot is a legal identifier (reserved for the implementation or POSIX or some such). do_reboot would be ok. So would changing main_shutdown_or_reboot to take the function pointer directly I think. Ian.