All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] bulk: Stop forward-declaring enum typedefs
@ 2026-01-30 21:17 Philippe Mathieu-Daudé
  2026-01-30 21:17 ` [PATCH v2 1/2] " Philippe Mathieu-Daudé
  2026-01-30 21:17 ` [PATCH v2 2/2] docs/devel: Mention enum typedefs forward-declaration is not allowed Philippe Mathieu-Daudé
  0 siblings, 2 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-01-30 21:17 UTC (permalink / raw)
  To: qemu-devel
  Cc: jpcottin, Markus Armbruster, Roman Kiryanov, Will Hollins,
	Paolo Bonzini, Peter Maydell, jansene, Eric Blake

v2:
- Fixed QemuClipboardNotifyType typo
- checkpatch regexp
- Pierrick's R-b

The C99 standard chapter §6.7.2.2 point 4 mentions:

  Each enumerated type shall be compatible with char, a signed
  integer type, or an unsigned integer type. The choice of type
  is implementation-defined, but shall be capable of representing
  the values of all the members of the enumeration.

Align with that recommendation by defining the typedef
along with the enum.

Philippe Mathieu-Daudé (2):
  bulk: Stop forward-declaring enum typedefs
  docs/devel: Mention enum typedefs forward-declaration is not allowed

 docs/devel/style.rst                 | 11 +++++++++++
 hw/riscv/riscv-iommu-bits.h          |  4 ++--
 hw/riscv/riscv-iommu.h               |  2 --
 include/hw/misc/auxbus.h             | 11 ++++-------
 include/hw/pci/pci_device.h          |  5 ++---
 include/hw/ssi/ssi.h                 |  6 ++----
 include/hw/xen/interface/io/xenbus.h |  5 ++---
 include/io/channel.h                 | 11 ++++-------
 include/system/replay.h              | 10 ++++------
 include/ui/clipboard.h               | 15 ++++++---------
 include/ui/kbd-state.h               |  6 ++----
 pc-bios/s390-ccw/virtio.h            |  5 ++---
 tests/qtest/libqos/qgraph_internal.h | 10 ++++------
 hw/core/loader.c                     |  5 ++---
 hw/display/xlnx_dp.c                 | 11 ++++-------
 hw/dma/xlnx_dpdma.c                  | 10 ++++------
 qapi/opts-visitor.c                  |  7 ++-----
 qapi/string-output-visitor.c         |  6 ++----
 tests/unit/check-qom-proplist.c      |  6 ++----
 scripts/checkpatch.pl                |  5 +++++
 20 files changed, 66 insertions(+), 85 deletions(-)

-- 
2.52.0



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

end of thread, other threads:[~2026-02-02 13:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30 21:17 [PATCH v2 0/2] bulk: Stop forward-declaring enum typedefs Philippe Mathieu-Daudé
2026-01-30 21:17 ` [PATCH v2 1/2] " Philippe Mathieu-Daudé
2026-02-02 11:19   ` Daniel P. Berrangé
2026-02-02 11:50   ` Alex Bennée
2026-02-02 12:05     ` Philippe Mathieu-Daudé
2026-02-02 13:04       ` Alex Bennée
2026-02-02 13:22       ` Daniel P. Berrangé
2026-01-30 21:17 ` [PATCH v2 2/2] docs/devel: Mention enum typedefs forward-declaration is not allowed Philippe Mathieu-Daudé

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.