From patchwork Thu Feb 4 16:28:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 376295 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1435210jah; Thu, 4 Feb 2021 08:31:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwodVVWSSSyk7vIdOH5ie2AgOwaSA003U53vDb91JHc57/f9w3Hy1iMFLvOgh4SINUqqs/g X-Received: by 2002:a17:906:7d97:: with SMTP id v23mr6828325ejo.222.1612456300563; Thu, 04 Feb 2021 08:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612456300; cv=none; d=google.com; s=arc-20160816; b=r1JCxV6IlnIsQ9bfcMy/tY0ABmInEbMt9N2bpkr98VvPlOVB6JwBi5OXaoZwhTXI3i +/qde6yhEru7HFKZ7A0ipUaX9BSZRbADyU9AMwzXQx7xmk5CtHPkxNz360ypPNWkr3+5 BXrr1jWcreXKfhcVnvPKQlKgF8tP2aAks4KOzBF8DGNbn9F1ms0xgqj2NYR3H+8ctNo3 fwADhik88+3xTkMUe124wZRt2g6fB+sdEmrFwHsoI9hqdaNbI/tjiSyXIdeBkb1UmBaq cGHtiFBTBbP5BusXFapeSkOzGdn74S1vJsN4IxLoms4kH46KPY/1HlS4RX4ls57kRu/a qStw== 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=EbkIY4nvgX+ldF8iPs9jGDFm2fiLYenVrCxAIJ2exOY=; b=GG5pcX45VsTd3Ogwm7z5iUyBVy9RqmCuoq51ZHxncBPxzMGdAvwUs/iOjW8H3pdh3h TaPLSk756OCasEZGSoeicW2cgq7TtT0g5wLgCkK2Y4fvy+ipgZHB0jW1TIudJ9cz3mmW VyKcmQtEg9fzuMDwfqDTMxXWs47rjxq143tKDYzL/DuIkuYuoZkcXuPhm3IRvyMS0xY+ kcXsEFPAQ6cWFGwwGRTPdWKiILysdN61Th6IwoTE7OdE7MXpvpQjO01+7g+Zju26cEkA BjCfDzISGICGHGcL/FvKJjbvREc5bsgpRlTpSMSCgFSVUXciXhML5eDLLuWZQ9FvJhmX E2gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eKDw/p05"; 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 v5si3397564eji.385.2021.02.04.08.31.40; Thu, 04 Feb 2021 08:31:40 -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="eKDw/p05"; 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 S238056AbhBDQaM (ORCPT + 2 others); Thu, 4 Feb 2021 11:30:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:46276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237048AbhBDQ3j (ORCPT ); Thu, 4 Feb 2021 11:29:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F69664F4E; Thu, 4 Feb 2021 16:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612456138; bh=056fz5EMahpKz5J2AFFhrRZLdav0oksdlYuTWVkGTOE=; h=From:To:Cc:Subject:Date:From; b=eKDw/p05Tk3cZopTI/UO6ecZ5Eykblpe5zL6hLjtrJgK2KMxtbbHgIFoSH7m1tLkS SWq8wSUoO4aAFOQge9zMzhZdh8bC71t68PbkrQcWYf/y7SLaPUTS5hHexHWAjdCDXB GT06EoDJAyCUByYYwNDHVzgRcqcH++MFI8pEKEL0e5Atf8gdYtLzDLTVHQ2ohXkaGc Z3ocjVZY4RsD0g8xA10tDA/v1gRIJw8l2nosngyjXt22BIXmvvN3ZmWHMMxydoYQlu gpYe2L+jeVU2wrCSuq4xsKiDDPmONooL4mTfS9mSR1JUCbHGttZV+whqC0dotR3Tfr E1qjijBZKzP/g== From: Arnd Bergmann To: Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , Kalle Valo , "David S. Miller" , Jakub Kicinski Cc: Arnd Bergmann , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] brcm80211: fix alignment constraints Date: Thu, 4 Feb 2021 17:28:35 +0100 Message-Id: <20210204162852.3219572-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 sturct d11txh contains a ieee80211_rts structure, which is required to have at least two byte alignment, and this conflicts with the __packed attribute: drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h:786:1: warning: alignment 1 of 'struct d11txh' is less than 2 [-Wpacked-not-aligned] Mark d11txh itself as having two-byte alignment to ensure the inner structure is properly aligned. Signed-off-by: Arnd Bergmann --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h index 9035cc4d6ff3..7870093629c3 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h @@ -783,7 +783,7 @@ struct d11txh { u8 RTSPhyHeader[D11_PHY_HDR_LEN]; /* 0x2c - 0x2e */ struct ieee80211_rts rts_frame; /* 0x2f - 0x36 */ u16 PAD; /* 0x37 */ -} __packed; +} __packed __aligned(2); #define D11_TXH_LEN 112 /* bytes */