All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qom/object: Remove circular include dependency
@ 2022-05-09  8:46 Philippe Mathieu-Daudé
  2022-05-09  9:36 ` Damien Hedde
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-05-09  8:46 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P. Berrangé,
	Markus Armbruster, qemu-trivial, Paolo Bonzini, Eduardo Habkost,
	Philippe Mathieu-Daudé

From: Philippe Mathieu-Daudé <f4bug@amsat.org>

"qom/object.h" doesn't need to include itself.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 include/qom/object.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/qom/object.h b/include/qom/object.h
index 5f3d5b5bf5..ef7258a5e1 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -16,7 +16,6 @@
 
 #include "qapi/qapi-builtin-types.h"
 #include "qemu/module.h"
-#include "qom/object.h"
 
 struct TypeImpl;
 typedef struct TypeImpl *Type;
-- 
2.35.1



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

* Re: [PATCH] qom/object: Remove circular include dependency
  2022-05-09  8:46 [PATCH] qom/object: Remove circular include dependency Philippe Mathieu-Daudé
@ 2022-05-09  9:36 ` Damien Hedde
  2022-05-09  9:41 ` Peter Maydell
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Damien Hedde @ 2022-05-09  9:36 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: Daniel P. Berrangé,
	Markus Armbruster, qemu-trivial, Paolo Bonzini, Eduardo Habkost,
	Philippe Mathieu-Daudé



On 5/9/22 10:46, Philippe Mathieu-Daudé wrote:
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
> 
> "qom/object.h" doesn't need to include itself.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
> ---
>   include/qom/object.h | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/include/qom/object.h b/include/qom/object.h
> index 5f3d5b5bf5..ef7258a5e1 100644
> --- a/include/qom/object.h
> +++ b/include/qom/object.h
> @@ -16,7 +16,6 @@
>   
>   #include "qapi/qapi-builtin-types.h"
>   #include "qemu/module.h"
> -#include "qom/object.h"
>   
>   struct TypeImpl;
>   typedef struct TypeImpl *Type;


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

* Re: [PATCH] qom/object: Remove circular include dependency
  2022-05-09  8:46 [PATCH] qom/object: Remove circular include dependency Philippe Mathieu-Daudé
  2022-05-09  9:36 ` Damien Hedde
@ 2022-05-09  9:41 ` Peter Maydell
  2022-05-09 12:44   ` Philippe Mathieu-Daudé via
  2022-05-09  9:52 ` Markus Armbruster
  2022-06-28  8:54 ` Laurent Vivier
  3 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2022-05-09  9:41 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: qemu-devel, Daniel P. Berrangé,
	Markus Armbruster, qemu-trivial, Paolo Bonzini, Eduardo Habkost,
	Philippe Mathieu-Daudé

On Mon, 9 May 2022 at 09:53, Philippe Mathieu-Daudé
<philippe.mathieu.daude@gmail.com> wrote:
>
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>
> "qom/object.h" doesn't need to include itself.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  include/qom/object.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/include/qom/object.h b/include/qom/object.h
> index 5f3d5b5bf5..ef7258a5e1 100644
> --- a/include/qom/object.h
> +++ b/include/qom/object.h
> @@ -16,7 +16,6 @@
>
>  #include "qapi/qapi-builtin-types.h"
>  #include "qemu/module.h"
> -#include "qom/object.h"
>
>  struct TypeImpl;
>  typedef struct TypeImpl *Type;

Accidentally (but harmlessly) added in commit db1015e92e0483 by a
change generated by a script.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

Eduardo: is it worth making ./scripts/codeconverter/converter.py
handle this as a special case, so it doesn't add the include line
to qom/object.h itself ? Or do we not really expect that script
to be run on the codebase again in future ?

thanks
-- PMM


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

* Re: [PATCH] qom/object: Remove circular include dependency
  2022-05-09  8:46 [PATCH] qom/object: Remove circular include dependency Philippe Mathieu-Daudé
  2022-05-09  9:36 ` Damien Hedde
  2022-05-09  9:41 ` Peter Maydell
@ 2022-05-09  9:52 ` Markus Armbruster
  2022-06-28  8:54 ` Laurent Vivier
  3 siblings, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2022-05-09  9:52 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: qemu-devel, Daniel P. Berrangé,
	qemu-trivial, Paolo Bonzini, Eduardo Habkost,
	Philippe Mathieu-Daudé

Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> writes:

> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>
> "qom/object.h" doesn't need to include itself.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  include/qom/object.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/include/qom/object.h b/include/qom/object.h
> index 5f3d5b5bf5..ef7258a5e1 100644
> --- a/include/qom/object.h
> +++ b/include/qom/object.h
> @@ -16,7 +16,6 @@
>  
>  #include "qapi/qapi-builtin-types.h"
>  #include "qemu/module.h"
> -#include "qom/object.h"
>  
>  struct TypeImpl;
>  typedef struct TypeImpl *Type;

I figure this is scripts/codeconverter/converter.py's doing, in commit
db1015e92e "Move QOM typedefs and add missing includes".  Probably not
worth fixing there.  Possibly worth mentioning in the commit message.

Reviewed-by: Markus Armbruster <armbru@redhat.com>



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

* Re: [PATCH] qom/object: Remove circular include dependency
  2022-05-09  9:41 ` Peter Maydell
@ 2022-05-09 12:44   ` Philippe Mathieu-Daudé via
  2022-05-09 12:46     ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Philippe Mathieu-Daudé via @ 2022-05-09 12:44 UTC (permalink / raw)
  To: Peter Maydell, Philippe Mathieu-Daudé
  Cc: qemu-devel, Daniel P. Berrangé,
	Markus Armbruster, qemu-trivial, Paolo Bonzini, Eduardo Habkost

On 9/5/22 11:41, Peter Maydell wrote:
> On Mon, 9 May 2022 at 09:53, Philippe Mathieu-Daudé
> <philippe.mathieu.daude@gmail.com> wrote:
>>
>> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>
>> "qom/object.h" doesn't need to include itself.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>   include/qom/object.h | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/include/qom/object.h b/include/qom/object.h
>> index 5f3d5b5bf5..ef7258a5e1 100644
>> --- a/include/qom/object.h
>> +++ b/include/qom/object.h
>> @@ -16,7 +16,6 @@
>>
>>   #include "qapi/qapi-builtin-types.h"
>>   #include "qemu/module.h"
>> -#include "qom/object.h"
>>
>>   struct TypeImpl;
>>   typedef struct TypeImpl *Type;
> 
> Accidentally (but harmlessly) 

This makes crash clang tools such clang-format, I'll amend that
to the description.

> added in commit db1015e92e0483 by a
> change generated by a script.
> 
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> 
> Eduardo: is it worth making ./scripts/codeconverter/converter.py
> handle this as a special case, so it doesn't add the include line
> to qom/object.h itself ? Or do we not really expect that script
> to be run on the codebase again in future ?

Oh, I see required_identifiers() adding this include in
scripts/codeconverter/codeconverter/qom_macros.py.

If we do not expect to use these scripts, we should remove it from
the repository. They are in good shape however, and might be still
valuable, so I'll amend a fix to the script.

Thanks for pointing at these scripts,

Phil.


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

* Re: [PATCH] qom/object: Remove circular include dependency
  2022-05-09 12:44   ` Philippe Mathieu-Daudé via
@ 2022-05-09 12:46     ` Peter Maydell
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2022-05-09 12:46 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Philippe Mathieu-Daudé, qemu-devel, Daniel P. Berrangé,
	Markus Armbruster, qemu-trivial, Paolo Bonzini, Eduardo Habkost

On Mon, 9 May 2022 at 13:44, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> On 9/5/22 11:41, Peter Maydell wrote:
> > Accidentally (but harmlessly)
>
> This makes crash clang tools such clang-format, I'll amend that
> to the description.

That sounds like a bug in clang-format :-)

-- PMM


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

* Re: [PATCH] qom/object: Remove circular include dependency
  2022-05-09  8:46 [PATCH] qom/object: Remove circular include dependency Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2022-05-09  9:52 ` Markus Armbruster
@ 2022-06-28  8:54 ` Laurent Vivier
  3 siblings, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2022-06-28  8:54 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: Daniel P. Berrangé,
	Markus Armbruster, qemu-trivial, Paolo Bonzini, Eduardo Habkost,
	Philippe Mathieu-Daudé

Le 09/05/2022 à 10:46, Philippe Mathieu-Daudé a écrit :
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
> 
> "qom/object.h" doesn't need to include itself.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>   include/qom/object.h | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/include/qom/object.h b/include/qom/object.h
> index 5f3d5b5bf5..ef7258a5e1 100644
> --- a/include/qom/object.h
> +++ b/include/qom/object.h
> @@ -16,7 +16,6 @@
>   
>   #include "qapi/qapi-builtin-types.h"
>   #include "qemu/module.h"
> -#include "qom/object.h"
>   
>   struct TypeImpl;
>   typedef struct TypeImpl *Type;

Applied to my trivial-patches branch.

Thanks,
Laurent



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

end of thread, other threads:[~2022-06-28  9:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09  8:46 [PATCH] qom/object: Remove circular include dependency Philippe Mathieu-Daudé
2022-05-09  9:36 ` Damien Hedde
2022-05-09  9:41 ` Peter Maydell
2022-05-09 12:44   ` Philippe Mathieu-Daudé via
2022-05-09 12:46     ` Peter Maydell
2022-05-09  9:52 ` Markus Armbruster
2022-06-28  8:54 ` Laurent Vivier

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.