Bluetooth: Use __packed annotation for drivers
authorGustavo F. Padovan <padovan@profusion.mobi>
Mon, 19 Jul 2010 16:54:05 +0000 (13:54 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:13 +0000 (10:39 -0700)
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>
drivers/bluetooth/bpa10x.c
drivers/bluetooth/btmrvl_drv.h
drivers/bluetooth/dtl1_cs.c
drivers/bluetooth/hci_ll.c

index d945cd12433a709c1c002533e418a2771988005d..751b338d904a7530dba3ba901cf81c75e0a9d198 100644 (file)
@@ -62,7 +62,7 @@ struct hci_vendor_hdr {
        __u8    type;
        __le16  snum;
        __le16  dlen;
-} __attribute__ ((packed));
+} __packed;
 
 static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count)
 {
index 872cb6cfcd0d6ea82306b66c18943fcfa023da55..90bda50dc4465757d2f8431f7bdc64295ba8bf88 100644 (file)
@@ -119,13 +119,13 @@ struct btmrvl_cmd {
        __le16 ocf_ogf;
        u8 length;
        u8 data[4];
-} __attribute__ ((packed));
+} __packed;
 
 struct btmrvl_event {
        u8 ec;          /* event counter */
        u8 length;
        u8 data[4];
-} __attribute__ ((packed));
+} __packed;
 
 /* Prototype of global function */
 
index ef044d55cb257d59bedf61575058213675dc3895..cbe9e44a42e96d44bfb4224d284838f90b919060 100644 (file)
@@ -104,7 +104,7 @@ typedef struct {
        u8 type;
        u8 zero;
        u16 len;
-} __attribute__ ((packed)) nsh_t;      /* Nokia Specific Header */
+} __packed nsh_t;      /* Nokia Specific Header */
 
 #define NSHL  4                                /* Nokia Specific Header Length */
 
index fb8445c7365ee0052fbd10284d0a895c12259fdf..5744aba8272eaeddb0fa81d530eb7ef6d3dd598e 100644 (file)
@@ -74,7 +74,7 @@ enum hcill_states_e {
 
 struct hcill_cmd {
        u8 cmd;
-} __attribute__((packed));
+} __packed;
 
 struct ll_struct {
        unsigned long rx_state;