staging:nokia_h4p:Replace __attribute__((packed)) by __packed
authorHimangi Saraogi <himangi774@gmail.com>
Sun, 9 Mar 2014 00:43:45 +0000 (06:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 04:35:16 +0000 (20:35 -0800)
This patch fixes the checkpatch.pl warning:
WARNING: __packed is preferred over __attribute__((packed)).
As the macro: #define __packed __attribute__((packed)) is defined
in compiler-gcc.h, __attribute__((packed)) is replaced by __packed.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nokia_h4p/hci_h4p.h

index fd7a6407f20ce9823e2f6fde1745b157d1342d65..107e1dcfe5e8da92de5b29e7513429f0a7d5d1da 100644 (file)
@@ -108,11 +108,11 @@ struct hci_h4p_info {
 struct hci_h4p_radio_hdr {
        __u8 evt;
        __u8 dlen;
-} __attribute__ ((packed));
+} __packed;
 
 struct hci_h4p_neg_hdr {
        __u8 dlen;
-} __attribute__ ((packed));
+} __packed;
 #define H4P_NEG_HDR_SIZE 1
 
 #define H4P_NEG_REQ    0x00
@@ -133,7 +133,7 @@ struct hci_h4p_neg_cmd {
        __u8    proto;
        __u16   sys_clk;
        __u16   unused2;
-} __attribute__ ((packed));
+} __packed;
 
 struct hci_h4p_neg_evt {
        __u8    ack;
@@ -144,20 +144,20 @@ struct hci_h4p_neg_evt {
        __u16   unused2;
        __u8    man_id;
        __u8    ver_id;
-} __attribute__ ((packed));
+} __packed;
 
 #define H4P_ALIVE_REQ  0x55
 #define H4P_ALIVE_RESP 0xcc
 
 struct hci_h4p_alive_hdr {
        __u8    dlen;
-} __attribute__ ((packed));
+} __packed;
 #define H4P_ALIVE_HDR_SIZE 1
 
 struct hci_h4p_alive_pkt {
        __u8    mid;
        __u8    unused;
-} __attribute__ ((packed));
+} __packed;
 
 #define MAX_BAUD_RATE          921600
 #define BC4_MAX_BAUD_RATE      3692300
@@ -188,7 +188,7 @@ struct hci_fw_event {
        struct hci_event_hdr hev;
        struct hci_ev_cmd_complete cmd;
        u8 status;
-} __attribute__ ((packed));
+} __packed;
 
 int hci_h4p_send_alive_packet(struct hci_h4p_info *info);
 
This page took 0.029507 seconds and 5 git commands to generate.