All of lore.kernel.org
 help / color / mirror / Atom feed
* irq_enter/irq_exit undeclared in efi/runtime.c
@ 2011-07-14 10:28 Olaf Hering
  2011-07-14 11:19 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2011-07-14 10:28 UTC (permalink / raw)
  To: Jan Beulich; +Cc: xen-devel


Current xen-unstable fails to compile with gcc 4.6:

runtime.c: In function 'efi_rs_enter':
runtime.c:45:5: error: implicit declaration of function 'irq_enter' [-Werror=implicit-function-declaration]
runtime.c:45:5: error: nested extern declaration of 'irq_enter' [-Werror=nested-externs]
runtime.c: In function 'efi_rs_leave':
runtime.c:75:5: error: implicit declaration of function 'irq_exit' [-Werror=implicit-function-declaration]
runtime.c:75:5: error: nested extern declaration of 'irq_exit' [-Werror=nested-externs]

Olaf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: irq_enter/irq_exit undeclared in efi/runtime.c
  2011-07-14 10:28 irq_enter/irq_exit undeclared in efi/runtime.c Olaf Hering
@ 2011-07-14 11:19 ` Keir Fraser
  2011-07-14 12:04   ` Olaf Hering
  0 siblings, 1 reply; 4+ messages in thread
From: Keir Fraser @ 2011-07-14 11:19 UTC (permalink / raw)
  To: Olaf Hering, Jan Beulich; +Cc: xen-devel

On 14/07/2011 11:28, "Olaf Hering" <olaf@aepfle.de> wrote:

> 
> Current xen-unstable fails to compile with gcc 4.6:

Builds for me with 4.6.

 -- Keir

> runtime.c: In function 'efi_rs_enter':
> runtime.c:45:5: error: implicit declaration of function 'irq_enter'
> [-Werror=implicit-function-declaration]
> runtime.c:45:5: error: nested extern declaration of 'irq_enter'
> [-Werror=nested-externs]
> runtime.c: In function 'efi_rs_leave':
> runtime.c:75:5: error: implicit declaration of function 'irq_exit'
> [-Werror=implicit-function-declaration]
> runtime.c:75:5: error: nested extern declaration of 'irq_exit'
> [-Werror=nested-externs]
> 
> Olaf
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: irq_enter/irq_exit undeclared in efi/runtime.c
  2011-07-14 11:19 ` Keir Fraser
@ 2011-07-14 12:04   ` Olaf Hering
  2011-07-14 13:32     ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2011-07-14 12:04 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

On Thu, Jul 14, Keir Fraser wrote:

> On 14/07/2011 11:28, "Olaf Hering" <olaf@aepfle.de> wrote:
> 
> > 
> > Current xen-unstable fails to compile with gcc 4.6:
> 
> Builds for me with 4.6.

Does your build have -Wall? The xen.spec I use has this before the make
call:

export 'CFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'

Olaf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: irq_enter/irq_exit undeclared in efi/runtime.c
  2011-07-14 12:04   ` Olaf Hering
@ 2011-07-14 13:32     ` Keir Fraser
  0 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2011-07-14 13:32 UTC (permalink / raw)
  To: Olaf Hering; +Cc: xen-devel, Jan Beulich

On 14/07/2011 13:04, "Olaf Hering" <olaf@aepfle.de> wrote:

> On Thu, Jul 14, Keir Fraser wrote:
> 
>> On 14/07/2011 11:28, "Olaf Hering" <olaf@aepfle.de> wrote:
>> 
>>> 
>>> Current xen-unstable fails to compile with gcc 4.6:
>> 
>> Builds for me with 4.6.
> 
> Does your build have -Wall? The xen.spec I use has this before the make
> call:
> 
> export 'CFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
> -fstack-protector -funwind-tables -fasynchronous-unwind-tables'

Yes, we always build -Wall. It could be the _FORTIFY_SOURCE=2? I think
that's caused warnings/errors before.

Anyway, in short I think you'll have to send us a sensible-looking patch
that works for you, and we'll apply it.

 -- Keir

> Olaf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-14 13:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-14 10:28 irq_enter/irq_exit undeclared in efi/runtime.c Olaf Hering
2011-07-14 11:19 ` Keir Fraser
2011-07-14 12:04   ` Olaf Hering
2011-07-14 13:32     ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.