Skip to content

Commit 2fb203d

Browse files
committed
ALSA: rawmidi: 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-4-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent fdbe0f2 commit 2fb203d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/core/rawmidi_compat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct snd_rawmidi_params32 {
1515
unsigned int no_active_sensing; /* avoid bit-field */
1616
unsigned int mode;
1717
unsigned char reserved[12];
18-
} __attribute__((packed));
18+
} __packed;
1919

2020
static int snd_rawmidi_ioctl_params_compat(struct snd_rawmidi_file *rfile,
2121
struct snd_rawmidi_params32 __user *src)
@@ -51,7 +51,7 @@ struct compat_snd_rawmidi_status64 {
5151
u32 avail;
5252
u32 xruns;
5353
unsigned char reserved[16];
54-
} __attribute__((packed));
54+
} __packed;
5555

5656
static int snd_rawmidi_ioctl_status_compat64(struct snd_rawmidi_file *rfile,
5757
struct compat_snd_rawmidi_status64 __user *src)

0 commit comments

Comments
 (0)