From patchwork Thu Feb 4 16:26:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 376292 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1432485jah; Thu, 4 Feb 2021 08:28:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyvoW7tGaSMiSxIQA08Zm/0CmT56dbw/SFxjZzslqwwXPGlUa+LQB5ol5cyHK/qiA7zWfg X-Received: by 2002:aa7:c58e:: with SMTP id g14mr8883080edq.318.1612456114736; Thu, 04 Feb 2021 08:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612456114; cv=none; d=google.com; s=arc-20160816; b=a/LCAEYILgfdW//q+qWkJIeJdkz0fO9n5a0LkuRzij9GUz4XCQWyFzqgRSIchQkl0l iT8x6aMZcaRyX/SdoTPYExkMdbkoo3qyyoiWER3hLQvL3u7t8T+zrOPhGUaBLuNkZnvE 8KTa7YU4odXYohHbsR7iRQcgPAp/w1aDduoBG06GmJIGgVmDPKJOBIPilIxHx2gSttvo VfNLgNHB+TkfJPQ6XDvrH4c+VnFPVng4Z2eUFdaS7Ht7OYd0kwRq18Qc+1M5lmE+gifi DmTOciqGpwOynTQtKodFZmoaE66wwJUqjxca1TgpiV4KkoIU7PtLtJoSTWriTKr4QDKk vKBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Q15VpbJ5le2iAtTa8Of7/jJyfCi1KA4SMh2+FzuprCE=; b=txBwQei8jqL4nFJW/ok4thQLLyBPHBIL5LGNHsPSTR5HCAW3MTSolTb6mH881ennOC qNUcG7yEI+GgAmLFKjj14+iso/YEZ3zpzzNEh0xaQp0QTv2z9rHZh+X8KAlWMbZaGmfh /fUWl8yYwff9jVihnX0VIC+fDsGDkdimMSQDl3n96tTmhRPFpPelCjbhivHpRcSvFxxX GTJii2Z0AqWSDN1qlhMW/06z5QRSr0Nxvjt5+zSpRFeUBCiQfHRJ+Mv5+fYMkABLfUbj twrMf6WauHmGjGWlNTd9JlsBdZPWlcM0WxhUmdoc8q/xV0l5Kk6XQknrq7WPS/lc5xdS TIcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SxZKtfgu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj18si3400045ejb.161.2021.02.04.08.28.33; Thu, 04 Feb 2021 08:28:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SxZKtfgu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238011AbhBDQ1w (ORCPT + 2 others); Thu, 4 Feb 2021 11:27:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:45770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238005AbhBDQ1i (ORCPT ); Thu, 4 Feb 2021 11:27:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A93C264F5E; Thu, 4 Feb 2021 16:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612456018; bh=7eAiSz3uE3FQW/p1sk6252RS2WSyjN+zC03YW782E9A=; h=From:To:Cc:Subject:Date:From; b=SxZKtfguKoH120d6TpQXaM8tCwTmuuOA6F4aQMGgqaXaCZs1C0FGyjTq7GIE4qVLB qs+Z8AycXKCdGFuMrRAkUfFyVV4R6u/TbcW7XhJU8HjAm6CmJ1QLDd4M2hLiHTWJVB Cw05TNJnn4tc0LDhoZSceXwIOyvMyujk2ZJmYuh6mgOx0UYBP2Rb1yGNK2RoNDM86q uUgpABq1ViGZ47a4l+PjznlIzbe+Iy7pWKWAhlCaedMQ+Nsyn4aR6bZAKkhJJxc28t VMK+Wk6UvauACffreNkMHjYN1GS7fDuRPYCs1nHpyrk4YCZ7UZbEMLouG+ofgpPDX/ P6wg2H0ApP0pQ== From: Arnd Bergmann To: Kalle Valo , "David S. Miller" , Jakub Kicinski Cc: Arnd Bergmann , "Gustavo A. R. Silva" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wl3501: fix alignment constraints Date: Thu, 4 Feb 2021 17:26:43 +0100 Message-Id: <20210204162653.3113749-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Arnd Bergmann struct wl3501_80211_tx_hdr contains a ieee80211_hdr structure, which is required to have at least two byte alignment, and this conflicts with the __packed attribute: wireless/wl3501.h:553:1: warning: alignment 1 of 'struct wl3501_80211_tx_hdr' is less than 2 [-Wpacked-not-aligned] Mark wl3501_80211_tx_hdr itself as having two-byte alignment to ensure the inner structure is properly aligned. Signed-off-by: Arnd Bergmann --- drivers/net/wireless/wl3501.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/net/wireless/wl3501.h b/drivers/net/wireless/wl3501.h index b446cb369557..e98e04ee9a2c 100644 --- a/drivers/net/wireless/wl3501.h +++ b/drivers/net/wireless/wl3501.h @@ -550,7 +550,7 @@ struct wl3501_80211_tx_plcp_hdr { struct wl3501_80211_tx_hdr { struct wl3501_80211_tx_plcp_hdr pclp_hdr; struct ieee80211_hdr mac_hdr; -} __packed; +} __packed __aligned(2); /* Reserve the beginning Tx space for descriptor use.