From fde3d28df0078b24c63ab030af1eb2851955d99d Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Sun, 9 Mar 2014 06:13:45 +0530 Subject: [PATCH] staging:nokia_h4p:Replace __attribute__((packed)) by __packed 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/nokia_h4p/hci_h4p.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/nokia_h4p/hci_h4p.h b/drivers/staging/nokia_h4p/hci_h4p.h index fd7a6407f20c..107e1dcfe5e8 100644 --- a/drivers/staging/nokia_h4p/hci_h4p.h +++ b/drivers/staging/nokia_h4p/hci_h4p.h @@ -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); -- 2.20.1