All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] typedefs.h cleanup
@ 2018-11-15 21:17 Eric Blake
  2018-11-15 21:17 ` [Qemu-devel] [PATCH 1/2] typedefs: (Re-)sort entries alphabetically Eric Blake
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Eric Blake @ 2018-11-15 21:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, armbru

Prompted by my review of xiezhide's work.  No semantic change, but
not technically a bug fix, so I don't care if it goes in 3.1 or
waits for 4.0.

Eric Blake (2):
  typedefs: (Re-)sort entries alphabetically
  numa: Match struct to typedef name

 include/qemu/typedefs.h | 12 ++++++------
 include/sysemu/numa.h   |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.17.2

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

* [Qemu-devel] [PATCH 1/2] typedefs: (Re-)sort entries alphabetically
  2018-11-15 21:17 [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Eric Blake
@ 2018-11-15 21:17 ` Eric Blake
  2018-12-19  8:23   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2018-11-15 21:17 ` [Qemu-devel] [PATCH 2/2] numa: Match struct to typedef name Eric Blake
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Eric Blake @ 2018-11-15 21:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, armbru

Since the last time we sorted things (2988cbeaf), we've had a
few relapses that were inserted out of order.  Also, we had more
entries that were sorted case-insensitively than not, so let's
document that convention and stick to it.

Signed-off-by: Eric Blake <eblake@redhat.com>
---
 include/qemu/typedefs.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index 3ec0e13a967..45eab4078eb 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -4,7 +4,7 @@
 /* A load of opaque types so that device init declarations don't have to
    pull in all the real definitions.  */

-/* Please keep this list in alphabetical order */
+/* Please keep this list in case-insensitive alphabetical order */
 typedef struct AdapterInfo AdapterInfo;
 typedef struct AddressSpace AddressSpace;
 typedef struct AioContext AioContext;
@@ -40,6 +40,7 @@ typedef struct HCIInfo HCIInfo;
 typedef struct HVFX86EmulatorState HVFX86EmulatorState;
 typedef struct I2CBus I2CBus;
 typedef struct I2SCodec I2SCodec;
+typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
 typedef struct ISABus ISABus;
 typedef struct ISADevice ISADevice;
 typedef struct IsaDma IsaDma;
@@ -49,7 +50,6 @@ typedef struct MachineState MachineState;
 typedef struct MemoryListener MemoryListener;
 typedef struct MemoryMappingList MemoryMappingList;
 typedef struct MemoryRegion MemoryRegion;
-typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
 typedef struct MemoryRegionCache MemoryRegionCache;
 typedef struct MemoryRegionSection MemoryRegionSection;
 typedef struct MigrationIncomingState MigrationIncomingState;
@@ -82,6 +82,8 @@ typedef struct PostcopyDiscardState PostcopyDiscardState;
 typedef struct Property Property;
 typedef struct PropertyInfo PropertyInfo;
 typedef struct PS2State PS2State;
+typedef struct QBool QBool;
+typedef struct QDict QDict;
 typedef struct QEMUBH QEMUBH;
 typedef struct QemuConsole QemuConsole;
 typedef struct QemuDmaBuf QemuDmaBuf;
@@ -91,12 +93,10 @@ typedef struct QemuMutex QemuMutex;
 typedef struct QemuOpt QemuOpt;
 typedef struct QemuOpts QemuOpts;
 typedef struct QemuOptsList QemuOptsList;
-typedef struct QemuSpin QemuSpin;
 typedef struct QEMUSGList QEMUSGList;
+typedef struct QemuSpin QemuSpin;
 typedef struct QEMUTimer QEMUTimer;
 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
-typedef struct QBool QBool;
-typedef struct QDict QDict;
 typedef struct QJSON QJSON;
 typedef struct QList QList;
 typedef struct QNull QNull;
-- 
2.17.2

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

* [Qemu-devel] [PATCH 2/2] numa: Match struct to typedef name
  2018-11-15 21:17 [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Eric Blake
  2018-11-15 21:17 ` [Qemu-devel] [PATCH 1/2] typedefs: (Re-)sort entries alphabetically Eric Blake
@ 2018-11-15 21:17 ` Eric Blake
  2018-11-19 23:20   ` Eduardo Habkost
  2018-11-15 21:28 ` [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Eric Blake @ 2018-11-15 21:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, armbru, Eduardo Habkost

There's no reason to violate our naming conventions by having a
struct with a different name than its typedef.  Messed up since
its introduction in commit 8c85901e, but made more obvious when
commit 3bfe5716 promoted it to typedefs.h.

Signed-off-by: Eric Blake <eblake@redhat.com>
---
 include/qemu/typedefs.h | 2 +-
 include/sysemu/numa.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index 45eab4078eb..a9cfe1b2c2e 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -61,6 +61,7 @@ typedef struct MSIMessage MSIMessage;
 typedef struct NetClientState NetClientState;
 typedef struct NetFilterState NetFilterState;
 typedef struct NICInfo NICInfo;
+typedef struct NodeInfo NodeInfo;
 typedef struct NumaNodeMem NumaNodeMem;
 typedef struct PCIBridge PCIBridge;
 typedef struct PCIBus PCIBus;
@@ -112,7 +113,6 @@ typedef struct SSIBus SSIBus;
 typedef struct uWireSlave uWireSlave;
 typedef struct VirtIODevice VirtIODevice;
 typedef struct Visitor Visitor;
-typedef struct node_info NodeInfo;
 typedef void SaveStateHandler(QEMUFile *f, void *opaque);
 typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);

diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h
index 21713b7e2f6..b6ac7de43ed 100644
--- a/include/sysemu/numa.h
+++ b/include/sysemu/numa.h
@@ -9,7 +9,7 @@
 extern int nb_numa_nodes;   /* Number of NUMA nodes */
 extern bool have_numa_distance;

-struct node_info {
+struct NodeInfo {
     uint64_t node_mem;
     struct HostMemoryBackend *node_memdev;
     bool present;
-- 
2.17.2

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

* Re: [Qemu-devel] [PATCH 0/2] typedefs.h cleanup
  2018-11-15 21:17 [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Eric Blake
  2018-11-15 21:17 ` [Qemu-devel] [PATCH 1/2] typedefs: (Re-)sort entries alphabetically Eric Blake
  2018-11-15 21:17 ` [Qemu-devel] [PATCH 2/2] numa: Match struct to typedef name Eric Blake
@ 2018-11-15 21:28 ` Philippe Mathieu-Daudé
  2018-11-16 10:14 ` Markus Armbruster
  2018-12-18 19:59 ` Eric Blake
  4 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-11-15 21:28 UTC (permalink / raw)
  To: Eric Blake, qemu-devel; +Cc: qemu-trivial, armbru

On 15/11/18 22:17, Eric Blake wrote:
> Prompted by my review of xiezhide's work.  No semantic change, but
> not technically a bug fix, so I don't care if it goes in 3.1 or
> waits for 4.0.
> 
> Eric Blake (2):
>    typedefs: (Re-)sort entries alphabetically
>    numa: Match struct to typedef name

Series:
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

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

* Re: [Qemu-devel] [PATCH 0/2] typedefs.h cleanup
  2018-11-15 21:17 [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Eric Blake
                   ` (2 preceding siblings ...)
  2018-11-15 21:28 ` [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Philippe Mathieu-Daudé
@ 2018-11-16 10:14 ` Markus Armbruster
  2018-12-18 19:59 ` Eric Blake
  4 siblings, 0 replies; 8+ messages in thread
From: Markus Armbruster @ 2018-11-16 10:14 UTC (permalink / raw)
  To: Eric Blake; +Cc: qemu-devel, qemu-trivial

Eric Blake <eblake@redhat.com> writes:

> Prompted by my review of xiezhide's work.  No semantic change, but
> not technically a bug fix, so I don't care if it goes in 3.1 or
> waits for 4.0.

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

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

* Re: [Qemu-devel] [PATCH 2/2] numa: Match struct to typedef name
  2018-11-15 21:17 ` [Qemu-devel] [PATCH 2/2] numa: Match struct to typedef name Eric Blake
@ 2018-11-19 23:20   ` Eduardo Habkost
  0 siblings, 0 replies; 8+ messages in thread
From: Eduardo Habkost @ 2018-11-19 23:20 UTC (permalink / raw)
  To: Eric Blake; +Cc: qemu-devel, qemu-trivial, armbru

On Thu, Nov 15, 2018 at 03:17:52PM -0600, Eric Blake wrote:
> There's no reason to violate our naming conventions by having a
> struct with a different name than its typedef.  Messed up since
> its introduction in commit 8c85901e, but made more obvious when
> commit 3bfe5716 promoted it to typedefs.h.
> 
> Signed-off-by: Eric Blake <eblake@redhat.com>

Queued on numa-next, thanks.

-- 
Eduardo

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

* Re: [Qemu-devel] [PATCH 0/2] typedefs.h cleanup
  2018-11-15 21:17 [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Eric Blake
                   ` (3 preceding siblings ...)
  2018-11-16 10:14 ` Markus Armbruster
@ 2018-12-18 19:59 ` Eric Blake
  4 siblings, 0 replies; 8+ messages in thread
From: Eric Blake @ 2018-12-18 19:59 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, armbru, Laurent Vivier

On 11/15/18 3:17 PM, Eric Blake wrote:
> Prompted by my review of xiezhide's work.  No semantic change, but
> not technically a bug fix, so I don't care if it goes in 3.1 or
> waits for 4.0.
> 
> Eric Blake (2):
>    typedefs: (Re-)sort entries alphabetically
>    numa: Match struct to typedef name
> 

Ping. Patch 2 is now in master (aec90730) via numa, but patch 1 got 
overlooked in the trivial queue, even though it has reviews.

>   include/qemu/typedefs.h | 12 ++++++------
>   include/sysemu/numa.h   |  2 +-
>   2 files changed, 7 insertions(+), 7 deletions(-)
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] typedefs: (Re-)sort entries alphabetically
  2018-11-15 21:17 ` [Qemu-devel] [PATCH 1/2] typedefs: (Re-)sort entries alphabetically Eric Blake
@ 2018-12-19  8:23   ` Laurent Vivier
  0 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2018-12-19  8:23 UTC (permalink / raw)
  To: Eric Blake, qemu-devel; +Cc: qemu-trivial, armbru

On 15/11/2018 22:17, Eric Blake wrote:
> Since the last time we sorted things (2988cbeaf), we've had a
> few relapses that were inserted out of order.  Also, we had more
> entries that were sorted case-insensitively than not, so let's
> document that convention and stick to it.
> 
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
>  include/qemu/typedefs.h | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 

Applied to my trivial-patches branch.

Thanks,
Laurent

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

end of thread, other threads:[~2018-12-19  8:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-15 21:17 [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Eric Blake
2018-11-15 21:17 ` [Qemu-devel] [PATCH 1/2] typedefs: (Re-)sort entries alphabetically Eric Blake
2018-12-19  8:23   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2018-11-15 21:17 ` [Qemu-devel] [PATCH 2/2] numa: Match struct to typedef name Eric Blake
2018-11-19 23:20   ` Eduardo Habkost
2018-11-15 21:28 ` [Qemu-devel] [PATCH 0/2] typedefs.h cleanup Philippe Mathieu-Daudé
2018-11-16 10:14 ` Markus Armbruster
2018-12-18 19:59 ` Eric Blake

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.