From: Keir Fraser <keir.xen@gmail.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel@lists.xensource.com
Cc: julien.grall@citrix.com, keir@xen.org, tim@xen.org,
Ian.Campbell@citrix.com, JBeulich@suse.com
Subject: Re: [PATCH v4 03/12] xen: move for_each_set_bit to xen/bitops.h
Date: Fri, 26 Apr 2013 17:16:52 +0100 [thread overview]
Message-ID: <CDA06704.231E9%keir.xen@gmail.com> (raw)
In-Reply-To: <1366990117-8689-3-git-send-email-stefano.stabellini@eu.citrix.com>
On 26/04/2013 16:28, "Stefano Stabellini" <stefano.stabellini@eu.citrix.com>
wrote:
> Move for_each_set_bit from asm-x86/bitops.h to xen/bitops.h.
> Replace #include <asm/bitops.h> with #include <xen/bitops.h> everywhere.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> CC: keir@xen.org
> CC: JBeulich@suse.com
Acked-by: Keir Fraser <keir@xen.org>
> ---
> xen/arch/x86/i8259.c | 2 +-
> xen/arch/x86/mpparse.c | 2 +-
> xen/arch/x86/setup.c | 2 +-
> xen/arch/x86/traps.c | 2 +-
> xen/include/asm-x86/bitops.h | 11 -----------
> xen/include/asm-x86/smp.h | 2 +-
> xen/include/asm-x86/system.h | 2 +-
> xen/include/xen/bitops.h | 11 +++++++++++
> xen/include/xen/event.h | 2 +-
> xen/include/xen/softirq.h | 2 +-
> xen/xsm/xsm_policy.c | 2 +-
> 11 files changed, 20 insertions(+), 20 deletions(-)
>
> diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c
> index b537c5f..6fdcce8 100644
> --- a/xen/arch/x86/i8259.c
> +++ b/xen/arch/x86/i8259.c
> @@ -16,7 +16,7 @@
> #include <asm/system.h>
> #include <asm/io.h>
> #include <asm/desc.h>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
> #include <xen/delay.h>
> #include <asm/apic.h>
> #include <asm/asm_defns.h>
> diff --git a/xen/arch/x86/mpparse.c b/xen/arch/x86/mpparse.c
> index 97ab5d3..97d34bc 100644
> --- a/xen/arch/x86/mpparse.c
> +++ b/xen/arch/x86/mpparse.c
> @@ -22,7 +22,7 @@
> #include <xen/efi.h>
> #include <xen/sched.h>
>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
> #include <asm/smp.h>
> #include <asm/acpi.h>
> #include <asm/mtrr.h>
> diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
> index 43301a5..744335d 100644
> --- a/xen/arch/x86/setup.c
> +++ b/xen/arch/x86/setup.c
> @@ -29,7 +29,7 @@
> #include <public/version.h>
> #include <compat/platform.h>
> #include <compat/xen.h>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
> #include <asm/smp.h>
> #include <asm/processor.h>
> #include <asm/mpspec.h>
> diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
> index d36eddd..5200940 100644
> --- a/xen/arch/x86/traps.c
> +++ b/xen/arch/x86/traps.c
> @@ -52,7 +52,7 @@
> #include <asm/system.h>
> #include <asm/io.h>
> #include <asm/atomic.h>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
> #include <asm/desc.h>
> #include <asm/debugreg.h>
> #include <asm/smp.h>
> diff --git a/xen/include/asm-x86/bitops.h b/xen/include/asm-x86/bitops.h
> index c3cbd26..f5a84ef 100644
> --- a/xen/include/asm-x86/bitops.h
> +++ b/xen/include/asm-x86/bitops.h
> @@ -368,17 +368,6 @@ static inline unsigned int __scanbit(unsigned long val,
> unsigned long max)
> __find_next_zero_bit(addr,size,off)))
>
> /**
> - * for_each_set_bit - iterate over every set bit in a memory region
> - * @bit: The integer iterator
> - * @addr: The address to base the search on
> - * @size: The maximum size to search
> - */
> -#define for_each_set_bit(bit, addr, size) \
> - for ( (bit) = find_first_bit(addr, size); \
> - (bit) < (size); \
> - (bit) = find_next_bit(addr, size, (bit) + 1) )
> -
> -/**
> * find_first_set_bit - find the first set bit in @word
> * @word: the word to search
> *
> diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h
> index 301f8c7..81f8610 100644
> --- a/xen/include/asm-x86/smp.h
> +++ b/xen/include/asm-x86/smp.h
> @@ -12,7 +12,7 @@
> #endif
>
> #ifndef __ASSEMBLY__
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
> #include <asm/mpspec.h>
> #endif
>
> diff --git a/xen/include/asm-x86/system.h b/xen/include/asm-x86/system.h
> index b0876d6..6ab7d56 100644
> --- a/xen/include/asm-x86/system.h
> +++ b/xen/include/asm-x86/system.h
> @@ -2,7 +2,7 @@
> #define __ASM_SYSTEM_H
>
> #include <xen/lib.h>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
>
> #define read_segment_register(name) \
> ({ u16 __sel; \
> diff --git a/xen/include/xen/bitops.h b/xen/include/xen/bitops.h
> index c6a78b6..6054155 100644
> --- a/xen/include/xen/bitops.h
> +++ b/xen/include/xen/bitops.h
> @@ -182,4 +182,15 @@ static inline __u32 ror32(__u32 word, unsigned int shift)
> #define __L16(_x) (((_x) & 0x0000ff00) ? ( 8 + __L8( (_x)>> 8)) : __L8( _x))
> #define LOG_2(_x) (((_x) & 0xffff0000) ? (16 + __L16((_x)>>16)) : __L16(_x))
>
> +/**
> + * for_each_set_bit - iterate over every set bit in a memory region
> + * @bit: The integer iterator
> + * @addr: The address to base the search on
> + * @size: The maximum size to search
> + */
> +#define for_each_set_bit(bit, addr, size) \
> + for ( (bit) = find_first_bit(addr, size); \
> + (bit) < (size); \
> + (bit) = find_next_bit(addr, size, (bit) + 1) )
> +
> #endif
> diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h
> index 71c3e92..4ac39ad 100644
> --- a/xen/include/xen/event.h
> +++ b/xen/include/xen/event.h
> @@ -12,7 +12,7 @@
> #include <xen/sched.h>
> #include <xen/smp.h>
> #include <xen/softirq.h>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
> #include <asm/event.h>
>
> /*
> diff --git a/xen/include/xen/softirq.h b/xen/include/xen/softirq.h
> index 193351d..0c0d481 100644
> --- a/xen/include/xen/softirq.h
> +++ b/xen/include/xen/softirq.h
> @@ -13,7 +13,7 @@ enum {
>
> #include <xen/lib.h>
> #include <xen/smp.h>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
> #include <asm/current.h>
> #include <asm/hardirq.h>
> #include <asm/softirq.h>
> diff --git a/xen/xsm/xsm_policy.c b/xen/xsm/xsm_policy.c
> index 65be61d..cad7964 100644
> --- a/xen/xsm/xsm_policy.c
> +++ b/xen/xsm/xsm_policy.c
> @@ -20,7 +20,7 @@
>
> #include <xsm/xsm.h>
> #include <xen/multiboot.h>
> -#include <asm/bitops.h>
> +#include <xen/bitops.h>
>
> char *__initdata policy_buffer = NULL;
> u32 __initdata policy_size = 0;
next prev parent reply other threads:[~2013-04-26 16:16 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 15:26 [PATCH v4 0/12] xen/arm: guest SMP support Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 01/12] xen/arm: basic PSCI support, implement cpu_on and cpu_off Stefano Stabellini
2013-04-26 15:38 ` Ian Campbell
2013-04-29 9:15 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 02/12] xen/arm: allocate secondaries dom0 vcpus Stefano Stabellini
2013-04-26 16:22 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 03/12] xen: move for_each_set_bit to xen/bitops.h Stefano Stabellini
2013-04-26 16:16 ` Keir Fraser [this message]
2013-04-26 15:28 ` [PATCH v4 04/12] xen/arm: support for guest SGI Stefano Stabellini
2013-04-26 16:34 ` Ian Campbell
2013-04-28 14:26 ` Stefano Stabellini
2013-04-29 9:16 ` Ian Campbell
2013-04-29 15:47 ` Stefano Stabellini
2013-04-29 16:52 ` Ian Campbell
2013-04-29 17:48 ` Stefano Stabellini
2013-04-29 17:51 ` Stefano Stabellini
2013-04-30 8:40 ` Ian Campbell
2013-04-30 15:32 ` Stefano Stabellini
2013-04-30 15:41 ` Ian Campbell
2013-04-30 16:34 ` Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 05/12] xen/arm: implement arch_vmap_virt_end Stefano Stabellini
2013-04-26 16:37 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 06/12] xen/arm: compile and initialize vmap Stefano Stabellini
2013-04-26 16:50 ` Ian Campbell
2013-04-27 14:55 ` Stefano Stabellini
2013-04-29 9:15 ` Ian Campbell
2013-04-29 16:20 ` Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 07/12] xen/arm: implement map_domain_page_global and unmap_domain_page_global Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 08/12] xen: move VCPUOP_register_vcpu_info to common code Stefano Stabellini
2013-04-26 16:17 ` Keir Fraser
2013-04-26 15:28 ` [PATCH v4 09/12] xen/arm: support VCPUOP_register_vcpu_info Stefano Stabellini
2013-04-26 16:17 ` Keir Fraser
2013-04-30 14:59 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 10/12] xen/arm: send IPIs to inject irqs into guest vcpus running on different pcpus Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 11/12] xen/arm: run the vtimer Xen timers on the pcpu the vcpu is running on Stefano Stabellini
2013-04-29 14:06 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 12/12] xen/arm: initialize virt_timer and phys_timer with the same values on all vcpus Stefano Stabellini
2013-04-29 14:17 ` Ian Campbell
2013-04-29 16:14 ` Stefano Stabellini
2013-04-30 8:38 ` Ian Campbell
2013-04-30 16:37 ` Stefano Stabellini
2013-05-01 9:53 ` Ian Campbell
2013-05-01 10:28 ` Stefano Stabellini
2013-05-01 10:36 ` Ian Campbell
2013-05-01 11:15 ` Stefano Stabellini
2013-05-01 11:26 ` Ian Campbell
2013-05-01 13:28 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CDA06704.231E9%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=julien.grall@citrix.com \
--cc=keir@xen.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.