include missing headers
PATCH 1/1 include missing headers
sched.h uses test_and_clear_bit, so needs bitops.h. softirq.h uses softirq_pending, so needs irq_cpustat.h.
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center
===== xen/include/xen/sched.h 1.162 vs edited =====
xen/include/xen/sched.h +1 -0
@@ -22,6 +22,7 @@#include <xen/grant_table.h> #include <asm/hardirq.h> #include <asm/domain.h> +#include <asm/bitops.h> extern unsigned long volatile jiffies;extern rwlock_t domlist_lock;
===== xen/include/xen/softirq.h 1.23 vs edited =====
xen/include/xen/softirq.h +1 -0
@@ -14,6 +14,7 @@#include <xen/config.h> #include <xen/lib.h> #include <xen/smp.h> +#include <xen/irq_cpustat.h> #include <asm/bitops.h> #include <asm/hardirq.h>
Quoted 4 lines · Hollis Blanchard
sched.husestest_and_clear_bit, so needsbitops.h.softirq.husessoftirq_pending, so needsirq_cpustat.h.Signed-off-by Hollis Blanchard <[email protected]>
These headers are included indirectly already, or Xen wouldn't build.
-- Keir
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 7 lines · Keir Fraser
Quoted 4 lines · Hollis Blanchard
sched.husestest_and_clear_bit, so needsbitops.h.softirq.husessoftirq_pending, so needsirq_cpustat.h.Signed-off-by Hollis Blanchard <[email protected]>These headers are included indirectly already, or Xen wouldn't build.
Agreed. However they are not included indirectly in the PPC headers I'm working on, so Xen does not build.
Isn't it a good idea to directly include the headers you need?
Signature · 9 lines
Hollis Blanchard IBM Linux Technology Center ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 4 lines · Hollis Blanchard
Agreed. However they are not included indirectly in the PPC headers I'm working on, so Xen does not build.
Isn't it a good idea to directly include the headers you need?
Okay. I checked that in and a fix for irq_cpustat.h.
-- Keir
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click