From patchwork Mon Feb 11 15:09:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 10806073 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5995413A4 for ; Mon, 11 Feb 2019 15:10:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48ED02A9AE for ; Mon, 11 Feb 2019 15:10:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4368E2A9F0; Mon, 11 Feb 2019 15:10:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DFE4D2A9AE for ; Mon, 11 Feb 2019 15:10:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=E7+wiaEpT5XzYaROD44zBzQMAWhY06/uX4cMMc9QccY=; b=NQQdBOdGSpAOfY+6zHfJIjMYA5 bhG/oeKcLQcSOoqAlDFWN14jIiNSTig1mXaTw/ggKdYGNDQiFWg6oMk+6IaqoqcfJJ8JT2/dOzhvT TEYqqUfLLEBxMmb0vG+f16oCRUY61064THnUaLI+ciPCN2jm0s2f35CR32DXekUWDAWsGjiaE0HzJ 8usUVoGYuCzB6A1iNjvrlNwYNjkZcpviykyzkEM/BfIR9AmnEnngK2uVdk8IvuoUrWIj09G+AvTy8 I3vPGP/yAGgiaLZo+o7FqZ/qGUKJja6tCMAvOjzHPoOvnFtRdtMmP9B5Qcm+55DwFBqfDzQAmJoiC fHJy/TJQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtDDp-0005BS-VA; Mon, 11 Feb 2019 15:10:13 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtDDa-0004Rc-OE for ath10k@lists.infradead.org; Mon, 11 Feb 2019 15:10:00 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4F9B661A00; Mon, 11 Feb 2019 15:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1549897798; bh=MZEcwysdfdD/1wpOHcY3EIBmucsz7ud7wY2EzfG1424=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gtv0/VYcTPWkJCZsJFyXJEiKRGuncP7G8y9UAaddzLxDwPSvWSiNKiPWNt2T9eBwb Bxg30jor0XSDxwhkR+5mCytGRDrnrbGcVvgi4wqjfodLkRoxaU7KTKOzaDfIA7jQA5 qA1xc1PwMH3AapDL9vvnSGzpT/xLkxE2PnwYb2jc= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 792696198C; Mon, 11 Feb 2019 15:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1549897797; bh=MZEcwysdfdD/1wpOHcY3EIBmucsz7ud7wY2EzfG1424=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SLYCQ7ETpttouTmUnJv6pvfujY92qS5/m1wA0lOi5lKBNbA3jVRpeszYKdYz/ZVYj 4QPZSogaks3CRNjBUN4KSQJ88V04WKurn9sknbOGG6mC9pvKaKCWLhILd9WCYs0Vcq /0hvMOBhArwlimGgopbAK+p0THEIUyYV2KXistzY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 792696198C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: ath10k@lists.infradead.org Subject: [PATCH 4/6] ath10k: align ath10k_htt_txbuf structures Date: Mon, 11 Feb 2019 17:09:45 +0200 Message-Id: <1549897787-28537-4-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549897787-28537-1-git-send-email-kvalo@codeaurora.org> References: <1549897787-28537-1-git-send-email-kvalo@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_070959_092301_418D666D X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With W=1 GCC warns: drivers/net/wireless/ath/ath10k/htt.h:1746:1: warning: alignment 1 of 'struct ath10k_htt_txbuf_32' is less than 4 [-Wpacked-not-aligned] drivers/net/wireless/ath/ath10k/htt.h:1753:1: warning: alignment 1 of 'struct ath10k_htt_txbuf_64' is less than 4 [-Wpacked-not-aligned] Fix that by using __align(4). Compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/htt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h index 005fad94edad..d194bbe18fc3 100644 --- a/drivers/net/wireless/ath/ath10k/htt.h +++ b/drivers/net/wireless/ath/ath10k/htt.h @@ -1743,14 +1743,14 @@ struct ath10k_htt_txbuf_32 { struct ath10k_htc_hdr htc_hdr; struct htt_cmd_hdr cmd_hdr; struct htt_data_tx_desc cmd_tx; -} __packed; +} __packed __aligned(4); struct ath10k_htt_txbuf_64 { struct htt_data_tx_desc_frag frags[2]; struct ath10k_htc_hdr htc_hdr; struct htt_cmd_hdr cmd_hdr; struct htt_data_tx_desc_64 cmd_tx; -} __packed; +} __packed __aligned(4); struct ath10k_htt { struct ath10k *ar;