Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2057098pxb; Mon, 12 Apr 2021 13:10:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl0sgRVR6W4BpwStN+UVxdL1+Y7YsYNghZXbi/GyXEer3YeD5+Dm5diFKY4SPZviDIjpGp X-Received: by 2002:a17:90a:668d:: with SMTP id m13mr1007621pjj.140.1618258259158; Mon, 12 Apr 2021 13:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618258259; cv=none; d=google.com; s=arc-20160816; b=GZ0hPV6hRNvYKIgP7Z6qwAnh3slTHOkrWq2QsnmivF3fQN4npm9tdW8Ul8DrgQtFuZ C7K6Kd9cI110C+qB0bZfkerV45sRGu+rIMPicQue9ZrF8qGqOfTSWPYXsmGp+5UvzKVE hJq0Sp8MBkLpxzrG5dQJ89k5vX8LzcRhNCCzrRmWHmCwLJeTiEC/IBYDw/SGpmT1wPcR unRWu0wRic6U3nYVFLcgmxGh6hiX+50xOQ4Z2vsil9Fm/APHCOb7Falobvwz3BXMmIc9 AeWW2aZ3pBgtTOOxrlHOev89Od22XkuNx4Z8ujSUQNcoLs3FEApU8YcE1wwtDYLYJQyn W87g== 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=qTE7lenxwEiSrKCtO3TfrCKunCN3PJkI4aITN0770us=; b=nXm/56OG+bbz2UDaATLZvAi+GL7xaH4tEpZUIhOOTcM+UtKJz4M9Wcws7BRRLAuLxu cqkGpKDeDaaVmSjzlp5eJwJZjPB/aum8oaa+Gu1TFZFPuzRv9vcplF3CUruPLFhlYUtB gLEGEyi4Afz27CGfsYSjCCHJNzTQCDJSKvWPXCh2ZK2RZld7EbhSAmKETzQ9oNPa0LCg m6hDs0cCyhmV21lJhChDSBYWlA0wTNpI3LsoHoX2Lehe8rCK7IE9/7eFxrIzZOJJoDBz IcaF2pBA95d4dX/ElBFUSOJ9/eiYOaaWq4B92/4nrd0WDVv2iCHooKZMvL+I3cUcOKYX WVRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qUjwxeRu; 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 oa7si486756pjb.6.2021.04.12.13.10.47; Mon, 12 Apr 2021 13:10:59 -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=qUjwxeRu; 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 S238160AbhDLIx1 (ORCPT + 99 others); Mon, 12 Apr 2021 04:53:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:40488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238215AbhDLItK (ORCPT ); Mon, 12 Apr 2021 04:49:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A937061288; Mon, 12 Apr 2021 08:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217290; bh=QwS9Gr7C2v78Zoxj3SMmHfHRt3K2UaOLjyc0YV6CGT0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qUjwxeRuqGfckBycHiY/geT+Ym9QuY6MkqC4RcdcX3X2gqCdCT4GfJQuL3+Kw9kIe YPDpcjq7LiBkI4hoTbqZj1gLzcTo7wDU4oStHG37QY+smVyclVknPg2FM6E/XYYPlM 9stCyas6lqTY+AdmJA0sFldITGnetsbe2TwpGxgM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Sasha Levin Subject: [PATCH 5.4 072/111] soc/fsl: qbman: fix conflicting alignment attributes Date: Mon, 12 Apr 2021 10:40:50 +0200 Message-Id: <20210412084006.668534695@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084004.200986670@linuxfoundation.org> References: <20210412084004.200986670@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 bf68d86d80ee..95f9e4805245 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -186,7 +186,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