Skip to content

Commit 81ca405

Browse files
Gustavo F. Padovanholtmann
authored andcommitted
Bluetooth: Use __packed annotation for drivers
Use the __packed annotation instead of the __attribute__((packed)). Signed-off-by: Gustavo F. Padovan <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 66c853c commit 81ca405

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/bluetooth/bpa10x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct hci_vendor_hdr {
6262
__u8 type;
6363
__le16 snum;
6464
__le16 dlen;
65-
} __attribute__ ((packed));
65+
} __packed;
6666

6767
static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count)
6868
{

drivers/bluetooth/btmrvl_drv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ struct btmrvl_cmd {
119119
__le16 ocf_ogf;
120120
u8 length;
121121
u8 data[4];
122-
} __attribute__ ((packed));
122+
} __packed;
123123

124124
struct btmrvl_event {
125125
u8 ec; /* event counter */
126126
u8 length;
127127
u8 data[4];
128-
} __attribute__ ((packed));
128+
} __packed;
129129

130130
/* Prototype of global function */
131131

drivers/bluetooth/dtl1_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ typedef struct {
104104
u8 type;
105105
u8 zero;
106106
u16 len;
107-
} __attribute__ ((packed)) nsh_t; /* Nokia Specific Header */
107+
} __packed nsh_t; /* Nokia Specific Header */
108108

109109
#define NSHL 4 /* Nokia Specific Header Length */
110110

drivers/bluetooth/hci_ll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ enum hcill_states_e {
7474

7575
struct hcill_cmd {
7676
u8 cmd;
77-
} __attribute__((packed));
77+
} __packed;
7878

7979
struct ll_struct {
8080
unsigned long rx_state;

0 commit comments

Comments
 (0)