From patchwork Mon Jul 26 19:12:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "John W. Linville" X-Patchwork-Id: 114326 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6QJEfWD018320 for ; Mon, 26 Jul 2010 19:15:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752284Ab0GZTPO (ORCPT ); Mon, 26 Jul 2010 15:15:14 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:52953 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706Ab0GZTPN (ORCPT ); Mon, 26 Jul 2010 15:15:13 -0400 Received: from uucp by smtp.tuxdriver.com with local-rmail (Exim 4.63) (envelope-from ) id 1OdT8p-0001b4-7k; Mon, 26 Jul 2010 15:15:11 -0400 Received: from linville-t400.local (linville-t400.local [127.0.0.1]) by linville-t400.local (8.14.4/8.14.3) with ESMTP id o6QJCpU3012175; Mon, 26 Jul 2010 15:12:51 -0400 Received: (from linville@localhost) by linville-t400.local (8.14.4/8.14.4/Submit) id o6QJCpil012173; Mon, 26 Jul 2010 15:12:51 -0400 From: "John W. Linville" To: linux-wireless@vger.kernel.org Cc: wey-yi.w.guy@intel.com, "John W. Linville" Subject: [PATCH] iwlagn: use __packed on new structure definitions Date: Mon, 26 Jul 2010 15:12:50 -0400 Message-Id: <1280171570-12141-1-git-send-email-linville@tuxdriver.com> X-Mailer: git-send-email 1.7.1.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 26 Jul 2010 19:15:15 +0000 (UTC) diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 798bf9e..9c44ab5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h @@ -3132,7 +3132,7 @@ struct statistics_rx_non_phy_bt { /* additional stats for bt */ __le32 num_bt_kills; __le32 reserved[2]; -} __attribute__ ((packed)); +} __packed; struct statistics_rx { struct statistics_rx_phy ofdm; @@ -3146,7 +3146,7 @@ struct statistics_rx_bt { struct statistics_rx_phy cck; struct statistics_rx_non_phy_bt general; struct statistics_rx_ht_phy ofdm_ht; -} __attribute__ ((packed)); +} __packed; /** * struct statistics_tx_power - current tx power @@ -3226,7 +3226,7 @@ struct statistics_general_common { * in order to get out of bad PHY status */ __le32 num_of_sos_states; -} __attribute__ ((packed)); +} __packed; struct statistics_bt_activity { /* Tx statistics */ @@ -3239,13 +3239,13 @@ struct statistics_bt_activity { __le32 hi_priority_rx_denied_cnt; __le32 lo_priority_rx_req_cnt; __le32 lo_priority_rx_denied_cnt; -} __attribute__ ((packed)); +} __packed; struct statistics_general { struct statistics_general_common common; __le32 reserved2; __le32 reserved3; -} __attribute__ ((packed)); +} __packed; struct statistics_general_bt { struct statistics_general_common common; @@ -3316,7 +3316,7 @@ struct iwl_bt_notif_statistics { struct statistics_rx_bt rx; struct statistics_tx tx; struct statistics_general_bt general; -} __attribute__ ((packed)); +} __packed; /* * MISSED_BEACONS_NOTIFICATION = 0xa2 (notification only, not a command)