[PATCH i-g-t 14/15] cleanup typedefs

Petri Latvala petri.latvala at intel.com
Mon Mar 1 11:32:57 UTC 2021


---
 lib/runnercomms.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/runnercomms.h b/lib/runnercomms.h
index b4ecfed6..d9cd66b4 100644
--- a/lib/runnercomms.h
+++ b/lib/runnercomms.h
@@ -33,7 +33,7 @@
  */
 struct runnerpacket {
 	uint32_t size; /* Full size of the packet in octets */
-	uint32_t type; /* runnerpacket_type_t, but fixed width */
+	uint32_t type; /* runnerpacket_type, but fixed width */
 	int32_t senderpid;
 	int32_t sendertid;
 
@@ -136,7 +136,7 @@ union runnerpacket_read_helper read_runnerpacket(const struct runnerpacket *pack
  * The type "cstring" can be used to denote that the content is a
  * nul-terminated string.
  */
-typedef enum runnerpacket_type {
+enum runnerpacket_type {
       PACKETTYPE_INVALID,
       /* No data. This type is only used on parse failures and such. */
 
@@ -202,7 +202,9 @@ typedef enum runnerpacket_type {
        * cstring: The result to use, as text. All lowercase.
        */
 
-} runnerpacket_type_t;
+
+      PACKETTYPE_NUM_TYPES /* must be last */
+};
 
 struct runnerpacket *runnerpacket_log(uint8_t stream, const char *text);
 struct runnerpacket *runnerpacket_exec(char **argv);
-- 
2.29.2



More information about the Intel-gfx-trybot mailing list