Skip to content

Commit

Permalink
module: use __attribute_ for unkonw reason
Browse files Browse the repository at this point in the history
Signed-off-by: Rander Wang <rander.wang@intel.com>
  • Loading branch information
RanderWang committed Feb 1, 2024
1 parent 2320de7 commit 6f0e144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/include/ipc4/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ union ipc4_extended_param_id {
uint32_t parameter_type : 8;
uint32_t parameter_instance : 24;
} part;
} __packed __aligned(4);
} __attribute__((packed, aligned(4)));

/*
* Host Driver sends this message to create a new module instance.
Expand Down Expand Up @@ -360,7 +360,7 @@ struct ipc4_dx_state_info {
* bit[core_id] = 1 -> put core_id to D0
*/
uint32_t dx_mask;
} __packed __aligned(4);
} __attribute__((packed, aligned(4)));

struct ipc4_module_set_dx {
union {
Expand Down Expand Up @@ -420,7 +420,7 @@ struct ipc4_module_load_library {
uint32_t _reserved_2 : 2;
} r;
} data;
} __packed __aligned(4);
} __attribute__((packed, aligned(4)));

#define IPC4_COMP_ID(x, y) ((y) << 16 | (x))
#define IPC4_MOD_ID(x) (IS_ENABLED(CONFIG_IPC_MAJOR_4) ? ((x) & 0xffff) : 0)
Expand Down

0 comments on commit 6f0e144

Please sign in to comment.