On 10/24/12 11:58, Ian Campbell wrote: > 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? No. > reboot(2) I suppose? Yes. has the prototype. >> 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. patch attached. Signed-off-by: Christoph Egger Christoph -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632