Skip to content

Commit a2acad1

Browse files
committed
ipc4: do not declare union/structs with very generic names in headers
gateway.h defines "union flags" and "struct bits" to global namespace, which is not good in a public interface header file. There's no functional need to tag these struct definitions, so make the definitions anonymous. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 631fc30 commit a2acad1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/include/ipc4/gateway.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ struct ipc4_ipc_gateway_config_blob {
162162
uint32_t buffer_size;
163163

164164
/**< Flags */
165-
union flags {
166-
struct bits {
165+
union {
166+
struct {
167167
/**< Activates high threshold notification */
168168
/*!
169169
* Indicates whether notification should be sent to the host

0 commit comments

Comments
 (0)