All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] memory_mapping: Use qemu_common.h include
@ 2015-05-26  6:38 ` Peter Crosthwaite
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Crosthwaite @ 2015-05-26  6:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, pbonzini, Peter Crosthwaite

Rather than an explicit inclusion of cpu.h. This maked it more
consistent with other core code files, which either just rely on
qemu-common.h inclusion or preceed cpu.h with qemu-common.h anyway.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
---
Picked up by my multi arch WIP where target-multi/cpu.h cant handle
random core code inclusion without preceeded qemu-common.h. I guess
this is the only one in tree?
---
 memory_mapping.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/memory_mapping.c b/memory_mapping.c
index 7b69801..7cf5548 100644
--- a/memory_mapping.c
+++ b/memory_mapping.c
@@ -13,8 +13,7 @@
 
 #include <glib.h>
 
-#include "cpu.h"
-#include "exec/cpu-all.h"
+#include "qemu-common.h"
 #include "sysemu/memory_mapping.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"
-- 
1.9.1



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

* [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
@ 2015-05-26  6:38 ` Peter Crosthwaite
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Crosthwaite @ 2015-05-26  6:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, pbonzini, Peter Crosthwaite

Rather than an explicit inclusion of cpu.h. This maked it more
consistent with other core code files, which either just rely on
qemu-common.h inclusion or preceed cpu.h with qemu-common.h anyway.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
---
Picked up by my multi arch WIP where target-multi/cpu.h cant handle
random core code inclusion without preceeded qemu-common.h. I guess
this is the only one in tree?
---
 memory_mapping.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/memory_mapping.c b/memory_mapping.c
index 7b69801..7cf5548 100644
--- a/memory_mapping.c
+++ b/memory_mapping.c
@@ -13,8 +13,7 @@
 
 #include <glib.h>
 
-#include "cpu.h"
-#include "exec/cpu-all.h"
+#include "qemu-common.h"
 #include "sysemu/memory_mapping.h"
 #include "exec/memory.h"
 #include "exec/address-spaces.h"
-- 
1.9.1

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

* Re: [Qemu-trivial] [PATCH] memory_mapping: Use qemu_common.h include
  2015-05-26  6:38 ` [Qemu-devel] " Peter Crosthwaite
@ 2015-05-26  8:12   ` Paolo Bonzini
  -1 siblings, 0 replies; 10+ messages in thread
From: Paolo Bonzini @ 2015-05-26  8:12 UTC (permalink / raw)
  To: Peter Crosthwaite, qemu-devel; +Cc: qemu-trivial, Peter Crosthwaite



On 26/05/2015 08:38, Peter Crosthwaite wrote:
> Rather than an explicit inclusion of cpu.h. This maked it more
> consistent with other core code files, which either just rely on
> qemu-common.h inclusion or preceed cpu.h with qemu-common.h anyway.

I'd rather keep the cpu.h inclusion.  It would be nice to get rid of the
automagic inclusion of cpu.h from qemu-common.h.

Paolo

> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
> ---
> Picked up by my multi arch WIP where target-multi/cpu.h cant handle
> random core code inclusion without preceeded qemu-common.h. I guess
> this is the only one in tree?
> ---
>  memory_mapping.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/memory_mapping.c b/memory_mapping.c
> index 7b69801..7cf5548 100644
> --- a/memory_mapping.c
> +++ b/memory_mapping.c
> @@ -13,8 +13,7 @@
>  
>  #include <glib.h>
>  
> -#include "cpu.h"
> -#include "exec/cpu-all.h"
> +#include "qemu-common.h"
>  #include "sysemu/memory_mapping.h"
>  #include "exec/memory.h"
>  #include "exec/address-spaces.h"
> -- 1.9.1


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

* Re: [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
@ 2015-05-26  8:12   ` Paolo Bonzini
  0 siblings, 0 replies; 10+ messages in thread
From: Paolo Bonzini @ 2015-05-26  8:12 UTC (permalink / raw)
  To: Peter Crosthwaite, qemu-devel; +Cc: qemu-trivial, Peter Crosthwaite



On 26/05/2015 08:38, Peter Crosthwaite wrote:
> Rather than an explicit inclusion of cpu.h. This maked it more
> consistent with other core code files, which either just rely on
> qemu-common.h inclusion or preceed cpu.h with qemu-common.h anyway.

I'd rather keep the cpu.h inclusion.  It would be nice to get rid of the
automagic inclusion of cpu.h from qemu-common.h.

Paolo

> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
> ---
> Picked up by my multi arch WIP where target-multi/cpu.h cant handle
> random core code inclusion without preceeded qemu-common.h. I guess
> this is the only one in tree?
> ---
>  memory_mapping.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/memory_mapping.c b/memory_mapping.c
> index 7b69801..7cf5548 100644
> --- a/memory_mapping.c
> +++ b/memory_mapping.c
> @@ -13,8 +13,7 @@
>  
>  #include <glib.h>
>  
> -#include "cpu.h"
> -#include "exec/cpu-all.h"
> +#include "qemu-common.h"
>  #include "sysemu/memory_mapping.h"
>  #include "exec/memory.h"
>  #include "exec/address-spaces.h"
> -- 1.9.1

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

* Re: [Qemu-trivial] [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
  2015-05-26  8:12   ` [Qemu-devel] " Paolo Bonzini
@ 2015-05-26 17:05     ` Peter Crosthwaite
  -1 siblings, 0 replies; 10+ messages in thread
From: Peter Crosthwaite @ 2015-05-26 17:05 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: qemu-trivial, Peter Crosthwaite, qemu-devel@nongnu.org Developers,
	Peter Crosthwaite

On Tue, May 26, 2015 at 1:12 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 26/05/2015 08:38, Peter Crosthwaite wrote:
>> Rather than an explicit inclusion of cpu.h. This maked it more
>> consistent with other core code files, which either just rely on
>> qemu-common.h inclusion or preceed cpu.h with qemu-common.h anyway.
>
> I'd rather keep the cpu.h inclusion.  It would be nice to get rid of the
> automagic inclusion of cpu.h from qemu-common.h.
>

OK, but it is an odd one out, would you be willing to accept
the double include that seems to be widespread?

+#include "qemu_common.h"
 #include "cpu.h"
-#include "exec/cpu-all.h"

Regards,
Peter

> Paolo
>
>> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
>> ---
>> Picked up by my multi arch WIP where target-multi/cpu.h cant handle
>> random core code inclusion without preceeded qemu-common.h. I guess
>> this is the only one in tree?
>> ---
>>  memory_mapping.c | 3 +--
>>  1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/memory_mapping.c b/memory_mapping.c
>> index 7b69801..7cf5548 100644
>> --- a/memory_mapping.c
>> +++ b/memory_mapping.c
>> @@ -13,8 +13,7 @@
>>
>>  #include <glib.h>
>>
>> -#include "cpu.h"
>> -#include "exec/cpu-all.h"
>> +#include "qemu-common.h"
>>  #include "sysemu/memory_mapping.h"
>>  #include "exec/memory.h"
>>  #include "exec/address-spaces.h"
>> -- 1.9.1
>


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

* Re: [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
@ 2015-05-26 17:05     ` Peter Crosthwaite
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Crosthwaite @ 2015-05-26 17:05 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: qemu-trivial, Peter Crosthwaite, qemu-devel@nongnu.org Developers,
	Peter Crosthwaite

On Tue, May 26, 2015 at 1:12 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 26/05/2015 08:38, Peter Crosthwaite wrote:
>> Rather than an explicit inclusion of cpu.h. This maked it more
>> consistent with other core code files, which either just rely on
>> qemu-common.h inclusion or preceed cpu.h with qemu-common.h anyway.
>
> I'd rather keep the cpu.h inclusion.  It would be nice to get rid of the
> automagic inclusion of cpu.h from qemu-common.h.
>

OK, but it is an odd one out, would you be willing to accept
the double include that seems to be widespread?

+#include "qemu_common.h"
 #include "cpu.h"
-#include "exec/cpu-all.h"

Regards,
Peter

> Paolo
>
>> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
>> ---
>> Picked up by my multi arch WIP where target-multi/cpu.h cant handle
>> random core code inclusion without preceeded qemu-common.h. I guess
>> this is the only one in tree?
>> ---
>>  memory_mapping.c | 3 +--
>>  1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/memory_mapping.c b/memory_mapping.c
>> index 7b69801..7cf5548 100644
>> --- a/memory_mapping.c
>> +++ b/memory_mapping.c
>> @@ -13,8 +13,7 @@
>>
>>  #include <glib.h>
>>
>> -#include "cpu.h"
>> -#include "exec/cpu-all.h"
>> +#include "qemu-common.h"
>>  #include "sysemu/memory_mapping.h"
>>  #include "exec/memory.h"
>>  #include "exec/address-spaces.h"
>> -- 1.9.1
>

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

* Re: [Qemu-trivial] [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
  2015-05-26 17:05     ` Peter Crosthwaite
@ 2015-05-26 17:18       ` Paolo Bonzini
  -1 siblings, 0 replies; 10+ messages in thread
From: Paolo Bonzini @ 2015-05-26 17:18 UTC (permalink / raw)
  To: Peter Crosthwaite
  Cc: qemu-trivial, Peter Crosthwaite, qemu-devel@nongnu.org Developers,
	Peter Crosthwaite



On 26/05/2015 19:05, Peter Crosthwaite wrote:
> OK, but it is an odd one out, would you be willing to accept
> the double include that seems to be widespread?
> 
> +#include "qemu_common.h"
>  #include "cpu.h"
> -#include "exec/cpu-all.h"

This is exactly what I meant.  What is odd about it?

In fact, including exec/cpu-all.h outside cpu.h is definitely odd.

Paolo


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

* Re: [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
@ 2015-05-26 17:18       ` Paolo Bonzini
  0 siblings, 0 replies; 10+ messages in thread
From: Paolo Bonzini @ 2015-05-26 17:18 UTC (permalink / raw)
  To: Peter Crosthwaite
  Cc: qemu-trivial, Peter Crosthwaite, qemu-devel@nongnu.org Developers,
	Peter Crosthwaite



On 26/05/2015 19:05, Peter Crosthwaite wrote:
> OK, but it is an odd one out, would you be willing to accept
> the double include that seems to be widespread?
> 
> +#include "qemu_common.h"
>  #include "cpu.h"
> -#include "exec/cpu-all.h"

This is exactly what I meant.  What is odd about it?

In fact, including exec/cpu-all.h outside cpu.h is definitely odd.

Paolo

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

* Re: [Qemu-trivial] [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
  2015-05-26 17:18       ` Paolo Bonzini
@ 2015-05-26 17:31         ` Peter Crosthwaite
  -1 siblings, 0 replies; 10+ messages in thread
From: Peter Crosthwaite @ 2015-05-26 17:31 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: qemu-trivial, Peter Crosthwaite, qemu-devel@nongnu.org Developers,
	Peter Crosthwaite

On Tue, May 26, 2015 at 10:18 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 26/05/2015 19:05, Peter Crosthwaite wrote:
>> OK, but it is an odd one out, would you be willing to accept
>> the double include that seems to be widespread?
>>
>> +#include "qemu_common.h"
>>  #include "cpu.h"
>> -#include "exec/cpu-all.h"
>
> This is exactly what I meant.  What is odd about it?
>

Nothing at all. It's just the other of the two valid resolutions to my
problem. I lost the coinflip when I wrote the patch :) Will respin
tonight.

Regards,
Peter

> In fact, including exec/cpu-all.h outside cpu.h is definitely odd.
>
> Paolo
>


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

* Re: [Qemu-devel] [PATCH] memory_mapping: Use qemu_common.h include
@ 2015-05-26 17:31         ` Peter Crosthwaite
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Crosthwaite @ 2015-05-26 17:31 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: qemu-trivial, Peter Crosthwaite, qemu-devel@nongnu.org Developers,
	Peter Crosthwaite

On Tue, May 26, 2015 at 10:18 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 26/05/2015 19:05, Peter Crosthwaite wrote:
>> OK, but it is an odd one out, would you be willing to accept
>> the double include that seems to be widespread?
>>
>> +#include "qemu_common.h"
>>  #include "cpu.h"
>> -#include "exec/cpu-all.h"
>
> This is exactly what I meant.  What is odd about it?
>

Nothing at all. It's just the other of the two valid resolutions to my
problem. I lost the coinflip when I wrote the patch :) Will respin
tonight.

Regards,
Peter

> In fact, including exec/cpu-all.h outside cpu.h is definitely odd.
>
> Paolo
>

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

end of thread, other threads:[~2015-05-26 17:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-26  6:38 [Qemu-trivial] [PATCH] memory_mapping: Use qemu_common.h include Peter Crosthwaite
2015-05-26  6:38 ` [Qemu-devel] " Peter Crosthwaite
2015-05-26  8:12 ` [Qemu-trivial] " Paolo Bonzini
2015-05-26  8:12   ` [Qemu-devel] " Paolo Bonzini
2015-05-26 17:05   ` [Qemu-trivial] " Peter Crosthwaite
2015-05-26 17:05     ` Peter Crosthwaite
2015-05-26 17:18     ` [Qemu-trivial] " Paolo Bonzini
2015-05-26 17:18       ` Paolo Bonzini
2015-05-26 17:31       ` [Qemu-trivial] " Peter Crosthwaite
2015-05-26 17:31         ` Peter Crosthwaite

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.