Cancel the optimization of compiler for struct snd_compr_avail which size will be 0x1c in 32bit kernel while 0x20 in 64bit kernel under the optimizer. That will make compaction between 32bit and 64bit. So add packed to fix the size of struct snd_compr_avail to 0x1c for all platform.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -80,7 +80,7 @@ struct snd_compr_tstamp { · 79 unmodified lines | ||
| 80 | 80 | struct snd_compr_avail { |
| 81 | 81 | __u64 avail; |
| 82 | 82 | struct snd_compr_tstamp tstamp; |
| 83 | −}; | |
| 83 | +} __attribute__((packed)); | |
| 84 | 84 | |
| 85 | 85 | enum snd_compr_direction { |
| 86 | 86 | SND_COMPRESS_PLAYBACK = 0, |