From patchwork Thu Feb 4 16:28:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 376294 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1433745jah; Thu, 4 Feb 2021 08:30:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJz58pXRcAgpHxGVBsGTYVaicNlv/E4vaG8GDXiM+Ntp+6WcnY6aoQy3OoN+TGmanmFh7fEE X-Received: by 2002:a17:906:fc4:: with SMTP id c4mr8960934ejk.143.1612456205742; Thu, 04 Feb 2021 08:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612456205; cv=none; d=google.com; s=arc-20160816; b=itrk5GHAyS9c6Hfaxrew3R4dbcVV/jI87ambTjiiDWZyM56Yju1h7epncPxXRW9e0X CTMmwvX4C4aKNRPviTyuAVqR+jgSjiEvFaI8PxERlqzh8Pc2jXRegNYX9XPfBxjw9k9b XwKUOpWKSpL4djL5t8gm6WBjJnC7Ae25H9HWMIV/R27hFa+ULgrLFTISVn5+E7R5IqwZ EUhi5F68mT7E36kT+gfWo/ggg9/oxecyNoTf2xgutHZGc4uPucTp8QxLMTjNb0cxxkZX L5hrnByZTy0zzjp2Z+nP93KCDZqCQDGKcsgPYbp9kMb9cFBPaeH+xYokmzM4Ya0fiWqw c4Lg== 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=6IhHe/ob9+QBxte3AirVplKQ6Oydi26pHBRjOONBb3I=; b=Hfb4tYaL2LZX0d0sWH3Kq+Q0fpYfdcyQWEO5ROM4O8AS0iRUI3H/nkqHINe0hrKfVc ab3rTN4PQEVsJDVR7rZ0GtOlKXrfyylXYxOjqtLR5+jUSJby5ND149Wkq+5+re2cqNW+ oxSzpWeLDyLcoVkJ7Os843z++kKAW1SjyRVFkwsXPbqRUgYI81JjjEGKEgaXvVwhZUKi lpVKLTuYgCGuptMfc5AgMFbU/OLzJoUY/ryK4QhtKCCt4mREEH8XgTTXLevVOeEPJqW6 YCZ2CMuNZRuMv00IgKWS94k3JA++GdZpIbdxf2CA3P2ZtOcS/py21KId7f+UApf089bN zIvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XhN5ISGW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 r23si4072049edy.455.2021.02.04.08.30.05; Thu, 04 Feb 2021 08:30:05 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=XhN5ISGW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S238026AbhBDQ3M (ORCPT + 7 others); Thu, 4 Feb 2021 11:29:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:46048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237087AbhBDQ26 (ORCPT ); Thu, 4 Feb 2021 11:28:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E24A664F53; Thu, 4 Feb 2021 16:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612456098; bh=ytHJevR+zzgmOSRx6kpqUi3lL5tHgTyXFrb/w6GcbzM=; h=From:To:Cc:Subject:Date:From; b=XhN5ISGWyafpPs2enUgZVpXm4zoHkJUl3m57WK4TQXlYDlXQakC/EE45ItKpGRoI0 8jkXw0LehmGi2vqhtkiOKG/t9ZZb/0hk/ymjcKz6vwZ6OsCxlRfbzyrJQFPZIISCCk +Ktuk2PtXZLRDBnOkXp3gOpekw0U18MVL3NhndpAMu/Uc4GvtJjpS+FggRjHG4nc0y yRCHtbJ3hU4xz7+QH0MKPKlx4oFrjD4H4jggYp6DxQW3mX/Pb9/kFMNHER+HAuOMid HMaBg4AuIPf8IpT9XQRRo8+i/VAjoZ1PeCRO8lCBpDLSuONnnpCkrC2Uo0UIdjfnGB QjhhXrKfgbJXQ== From: Arnd Bergmann To: Lennert Buytenhek , Kalle Valo , "David S. Miller" , Jakub Kicinski Cc: Arnd Bergmann , "Gustavo A. R. Silva" , Romain Perier , Christophe JAILLET , Allen Pais , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cwmwl8k: fix alignment constraints Date: Thu, 4 Feb 2021 17:28:04 +0100 Message-Id: <20210204162813.3159319-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann sturct mwl8k_dma_data contains a ieee80211_hdr structure, which is required to have at least two byte alignment, and this conflicts with the __packed attribute: vers/net/wireless/marvell/mwl8k.c:811:1: warning: alignment 1 of 'struct mwl8k_dma_data' is less than 2 [-Wpacked-not-aligned] Mark mwl8k_dma_data itself as having two-byte alignment to ensure the inner structure is properly aligned. Signed-off-by: Arnd Bergmann --- drivers/net/wireless/marvell/mwl8k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/net/wireless/marvell/mwl8k.c b/drivers/net/wireless/marvell/mwl8k.c index abf3b0233ccc..38eeab6369f7 100644 --- a/drivers/net/wireless/marvell/mwl8k.c +++ b/drivers/net/wireless/marvell/mwl8k.c @@ -808,7 +808,7 @@ struct mwl8k_dma_data { __le16 fwlen; struct ieee80211_hdr wh; char data[]; -} __packed; +} __packed __aligned(2); /* Routines to add/remove DMA header from skb. */ static inline void mwl8k_remove_dma_header(struct sk_buff *skb, __le16 qos)