Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1830764ybl; Thu, 30 Jan 2020 06:48:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwzPu6f/WfTWELUFSeIZIh0XDFItZIdTu5dtWuYjQ2bXwa5MgrzOTOjgC7+kMDg8KCy5kUm X-Received: by 2002:a05:6830:11:: with SMTP id c17mr3762435otp.360.1580395681209; Thu, 30 Jan 2020 06:48:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580395681; cv=none; d=google.com; s=arc-20160816; b=mLZHnE18N6OxWRvwceGZ5PWOfUW6D1OLlr78sILWam8XerN+5sducuf0shAZKv0pxA dJVRGzMwb8qDzAVwnBBRV1feAynr3Y3pn3cBHD2C9RiJUpvI6ZH3+S4EltQ2rHzyJMqT lULMzREJSPTxfHUIqLGbyT6F3SG5jrRQE9TAQhmxivMCcotoLLV2xFFW+OvP+uqh+LY2 TRlAQXQ/fHyNpjBfu9YySh9l0N/cje6YtRu95aFD1BgzJa1LWzBpce26w8pPtiT7Rrjm aKwaWHwXkWVFDHX8zNCzHKkR8l7xro2KFnOa32/FRZY5vb1DNAvSTK5o9obaJZmLAqtx teIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=9cNhnhwjM/MBcO8xwaYjS1TtkF0u2AaucPCrC7KvAG8=; b=H0ktI8TI7UPhWcyECjHRPTMfKYb0iSiakQG69OJOQd6SC1f/ke+mSPQeEP5UCyj08w 8SPu9Wx98PPYcB2B/YICtdR6Vyw1bsEvt+fp3XEgL+mD6mTGymmzWUdRD/yaX9cuTWwW sjLXYXs1BfIobw9wjlAvkKD06SG3WeInBnx/8T8AJxly5E6+Vv3S3jr4icXVrtf5Uuw/ 1H//xtMAhMfpUn+pNCmLLgeiIQUi3DOhNTqCou30GNBlxq1Zt0iFF3Vpdi+iv0BMqCYW ZFi2w8uE02koXTPCDBd9tNh/bs7fskspAsL5k6nTWsnZ3twfQzKt3YAbXJBJXwmv6EN7 xPog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=aqLJ7rnH; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si3253569otn.323.2020.01.30.06.47.48; Thu, 30 Jan 2020 06:48:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=aqLJ7rnH; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727368AbgA3Orb (ORCPT + 99 others); Thu, 30 Jan 2020 09:47:31 -0500 Received: from nbd.name ([46.4.11.11]:57438 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726948AbgA3OrV (ORCPT ); Thu, 30 Jan 2020 09:47:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9cNhnhwjM/MBcO8xwaYjS1TtkF0u2AaucPCrC7KvAG8=; b=aqLJ7rnHiF5XXW2E07qlgVy04w 7fn8AMDdTmvME403TM60tVLzzcGKtmyKXDMYnXF20MPwXu07RXTwE1JmkMhJnn5JkCueVukjRxVnD jp1GOREu11T+eZCt6P4PlKkSAJAwCxIz7sSV5f5fdAaTjH9mCmICkS8HDAoJYfcE+Q2g=; Received: from [178.162.209.135] (helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ixB6G-0001Vi-HP for linux-wireless@vger.kernel.org; Thu, 30 Jan 2020 15:47:20 +0100 Received: by maeck.local (Postfix, from userid 501) id ED9237AE4691; Thu, 30 Jan 2020 15:47:18 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 02/15] mt76: mt7615: add __aligned(4) to txp structs Date: Thu, 30 Jan 2020 15:47:05 +0100 Message-Id: <20200130144718.14298-2-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200130144718.14298-1-nbd@nbd.name> References: <20200130144718.14298-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The beginning of the struct is guaranteed to be 4-byte aligned, and this attribute allows the compiler to generate more efficient code Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/mac.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.h b/drivers/net/wireless/mediatek/mt76/mt7615/mac.h index 8f053fadd3df..9b7c45bf1ec5 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.h +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.h @@ -243,7 +243,7 @@ struct mt7615_txp { u8 nbuf; __le32 buf[MT_TXP_MAX_BUF_NUM]; __le16 len[MT_TXP_MAX_BUF_NUM]; -} __packed; +} __packed __aligned(4); struct mt7615_tx_free { __le16 rx_byte_cnt; @@ -251,7 +251,7 @@ struct mt7615_tx_free { u8 txd_cnt; u8 rsv[3]; __le16 token[]; -} __packed; +} __packed __aligned(4); #define MT_TX_FREE_MSDU_ID_CNT GENMASK(6, 0) -- 2.24.0