Commit fdbe0f20 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: pcm: Replace with __packed attribute

Replace the old __attribute__((packed)) with the new __packed.
Only cleanup, no functional changes.

Link: https://lore.kernel.org/r/20231025132314.5878-3-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b7cbd9c9
...@@ -3089,7 +3089,7 @@ struct snd_pcm_mmap_status32 { ...@@ -3089,7 +3089,7 @@ struct snd_pcm_mmap_status32 {
snd_pcm_state_t suspended_state; snd_pcm_state_t suspended_state;
s32 audio_tstamp_sec; s32 audio_tstamp_sec;
s32 audio_tstamp_nsec; s32 audio_tstamp_nsec;
} __attribute__((packed)); } __packed;
struct snd_pcm_mmap_control32 { struct snd_pcm_mmap_control32 {
u32 appl_ptr; u32 appl_ptr;
...@@ -3106,7 +3106,7 @@ struct snd_pcm_sync_ptr32 { ...@@ -3106,7 +3106,7 @@ struct snd_pcm_sync_ptr32 {
struct snd_pcm_mmap_control32 control; struct snd_pcm_mmap_control32 control;
unsigned char reserved[64]; unsigned char reserved[64];
} c; } c;
} __attribute__((packed)); } __packed;
/* recalcuate the boundary within 32bit */ /* recalcuate the boundary within 32bit */
static snd_pcm_uframes_t recalculate_boundary(struct snd_pcm_runtime *runtime) static snd_pcm_uframes_t recalculate_boundary(struct snd_pcm_runtime *runtime)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment