Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: Use __packed annotation for drivers

Use the __packed annotation instead of the __attribute__((packed)).

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Gustavo F. Padovan and committed by
Marcel Holtmann
81ca405a 66c853cc

+5 -5
+1 -1
drivers/bluetooth/bpa10x.c
··· 62 62 __u8 type; 63 63 __le16 snum; 64 64 __le16 dlen; 65 - } __attribute__ ((packed)); 65 + } __packed; 66 66 67 67 static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count) 68 68 {
+2 -2
drivers/bluetooth/btmrvl_drv.h
··· 119 119 __le16 ocf_ogf; 120 120 u8 length; 121 121 u8 data[4]; 122 - } __attribute__ ((packed)); 122 + } __packed; 123 123 124 124 struct btmrvl_event { 125 125 u8 ec; /* event counter */ 126 126 u8 length; 127 127 u8 data[4]; 128 - } __attribute__ ((packed)); 128 + } __packed; 129 129 130 130 /* Prototype of global function */ 131 131
+1 -1
drivers/bluetooth/dtl1_cs.c
··· 104 104 u8 type; 105 105 u8 zero; 106 106 u16 len; 107 - } __attribute__ ((packed)) nsh_t; /* Nokia Specific Header */ 107 + } __packed nsh_t; /* Nokia Specific Header */ 108 108 109 109 #define NSHL 4 /* Nokia Specific Header Length */ 110 110
+1 -1
drivers/bluetooth/hci_ll.c
··· 74 74 75 75 struct hcill_cmd { 76 76 u8 cmd; 77 - } __attribute__((packed)); 77 + } __packed; 78 78 79 79 struct ll_struct { 80 80 unsigned long rx_state;