Skip to content

Commit 66c853c

Browse files
Gustavo F. Padovanholtmann
authored andcommitted
Bluetooth: Use __packed annotation
To make net/ and include/net/ code consistent use __packed instead of __attribute__ ((packed)). Bluetooth subsystem was one of the last net subsys still using __attribute__ ((packed)). Signed-off-by: Gustavo F. Padovan <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent d1c4a17 commit 66c853c

File tree

4 files changed

+113
-113
lines changed

4 files changed

+113
-113
lines changed

include/net/bluetooth/bluetooth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ enum {
8484
/* BD Address */
8585
typedef struct {
8686
__u8 b[6];
87-
} __attribute__((packed)) bdaddr_t;
87+
} __packed bdaddr_t;
8888

8989
#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
9090
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})

0 commit comments

Comments
 (0)