Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2051693pxb; Mon, 12 Apr 2021 13:03:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHccz+4UNoFHW39SOZmWdtMy8C55u/5eK46igFc26VKex6AeI7f/tjv3D3P9TcPr4Ut7N8 X-Received: by 2002:a17:90b:4c0c:: with SMTP id na12mr849407pjb.117.1618257788696; Mon, 12 Apr 2021 13:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618257788; cv=none; d=google.com; s=arc-20160816; b=iR2wzFXfbPA28Ivzh9HilfMJWxvLbB6VhimOZqrZmg/7qHGyxQ4T1EcXwjWS4/5KkX agiAyPmeMPESCYfMYlcWlgzsuUXlCy9cpIF2voe8a3+FFb8LN4CXUFq9eIomd/TeAxjX mKW/PkpnMRT84UCu43+Uwn6ugHZBvHN+9G2+IqXZ4zaFo6/GyYkvZoh4T2X1D1kX9CEC tMbEGht7y2/IjuakMIFXiYmuS27LsXMV1SzkY6eQfRy+xuvaDw7ZswF6vxt/GQTRMGSV ciWcTbwa3CuwFiwsW5X9EHfqFYEEDAwXdrmBJpwrUkkb3i9s+61XZwQp9LwdtttMhitC dz8w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L3T8bOwraGHDq3Cd6T4+569/zyWalvE0BWVqecKJ20Y=; b=p6FnFlk00ZaUrHsjXK5UyaUiHKL6G5j4dVbRcdUK15+TktWTFgH5ZA4X5+EhO5u8vn qDWm62h3CxVwOZq8GKyUhLMR+OBlvyuYOUnGqoDUj8B9JJ+frdwoOXQ4dFOHvKYTkYEq STXSeOIqNZO9Z6IA9y/nZ65usFaP8Z/nyL8wZ6WBicjaEIHv+1IkAvFBAjHL/E3Ms1ha hCfwIC1YyHQy77KChgIHXfZMDQCMXBtNYgQ4SUAV4QN8mTz1UEtZv40yE+JBXa/+hpGL l+2hDE17kkOhhlAdntGgUTjaTXhZOrn2pbb3osWs7L07LVqcrOYV8vtC/2x2zdSKjQ5C hRhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F06B+pKW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si14247508pgj.527.2021.04.12.13.02.53; Mon, 12 Apr 2021 13:03:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=F06B+pKW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237663AbhDLIol (ORCPT + 99 others); Mon, 12 Apr 2021 04:44:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:35958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237596AbhDLIoE (ORCPT ); Mon, 12 Apr 2021 04:44:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3FF4261244; Mon, 12 Apr 2021 08:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217026; bh=sB/h/eSQ2458ajgcns8IhhsiKdJecRZ6yQxCkgNJHw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F06B+pKWzSkh5B8i3eExBMvbPdtHxtWr3ARiQUq92EnNfNTLk02/AjzCutXFPY+QD Kk3UL2ehlPALvVs6jEPNOP+CjzBH5+vBDJlgLagXYG9IqPmw/MiLdEkfqODtTr8lJE e4iexN4FXFpHaTbG0dcXfbykquqF08woGCK3Ppgk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Sasha Levin Subject: [PATCH 4.19 43/66] soc/fsl: qbman: fix conflicting alignment attributes Date: Mon, 12 Apr 2021 10:40:49 +0200 Message-Id: <20210412083959.512517999@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412083958.129944265@linuxfoundation.org> References: <20210412083958.129944265@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 040f31196e8b2609613f399793b9225271b79471 ] When building with W=1, gcc points out that the __packed attribute on struct qm_eqcr_entry conflicts with the 8-byte alignment attribute on struct qm_fd inside it: drivers/soc/fsl/qbman/qman.c:189:1: error: alignment 1 of 'struct qm_eqcr_entry' is less than 8 [-Werror=packed-not-aligned] I assume that the alignment attribute is the correct one, and that qm_eqcr_entry cannot actually be unaligned in memory, so add the same alignment on the outer struct. Fixes: c535e923bb97 ("soc/fsl: Introduce DPAA 1.x QMan device driver") Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20210323131530.2619900-1-arnd@kernel.org' Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- drivers/soc/fsl/qbman/qman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c index a4ac6073c555..d7bf456fd10e 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -184,7 +184,7 @@ struct qm_eqcr_entry { __be32 tag; struct qm_fd fd; u8 __reserved3[32]; -} __packed; +} __packed __aligned(8); #define QM_EQCR_VERB_VBIT 0x80 #define QM_EQCR_VERB_CMD_MASK 0x61 /* but only one value; */ #define QM_EQCR_VERB_CMD_ENQUEUE 0x01 -- 2.30.2