Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2101115pxb; Mon, 12 Apr 2021 14:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAbg5/7IPfx5twpB9fXBWks3OXAtVxwehGsZdISQLSN6kr3iHR3ApTOpHqInu0d1bSlgc2 X-Received: by 2002:a17:906:5413:: with SMTP id q19mr10279632ejo.8.1618263155702; Mon, 12 Apr 2021 14:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618263155; cv=none; d=google.com; s=arc-20160816; b=uUI5klYpqnKrpXLGVFqWTjifV19sq+Ib1Mp6irsqA0pNs/8VgtT6U0if83iPHfjAc8 AjAn/meEVl2vjO5RC50bFDw2S59rfruGHMfCUREarBdqLFmbceGBIcYUuURbAcyJunh4 NeMv/yXVA/ouDTYqS/I9I4vC8rZmmF+quXH4IQ1so2ec7E0wsbfK4NM2aq7Ww92y/liI 6gsEf8VusQjROXkLwXjs6fHpn4F4VvYmsaYBqq4O7cmM8QoCCu0zU0Xt+rQKHgMU1RT6 uYsxQQUjd8rTVekx73a7UTkJE5CreZF9wC5wAne1HVCe7csXWKPLYBwMzauAptCcilLp PM+Q== 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=ur1Sf4IsLMMD3UIb1JxKvS0NOBw39ky/brjMNGvARiY=; b=hJfJC7NdQWBPy2g3c4UUBhWOW1lFvO6ca/Ra3HuUeWEbGDt8nVDr3eJ/JIwiHm6mOF p79hIgVs93L0yRpPjVhPshd8biySAvMhu60ot0qkJlWhJFctk5U01ZWI97y94w026ucY 3Q+IaOgbGY5+iESrvjZfinpyOX02EEnuNWm/QeXmKjjOfva3YlgVpgtHE+1e6iUyz4bg TcFxyN5hBPabwGR654HWRPaMpEKR2YIujb2VtrYQ55cd75zv+d/lOcbp7rhrMlQZHr86 4LozFDs9QJrX1Ljlz8mbTfDuSkjurKpiAFXP6wwNlXeQqvMgaTLQuM4v3hVzLhj1us0W hWlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="p3f/Weg7"; 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 11si2862909ejx.245.2021.04.12.14.32.11; Mon, 12 Apr 2021 14:32:35 -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="p3f/Weg7"; 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 S238172AbhDLJMI (ORCPT + 99 others); Mon, 12 Apr 2021 05:12:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:48902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238108AbhDLI4w (ORCPT ); Mon, 12 Apr 2021 04:56:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7939761355; Mon, 12 Apr 2021 08:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217783; bh=7G0J9gmIuJspoIiUIgDw7b+wRAXxVHZNTcHnRHVZlec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p3f/Weg7XYtVOYKHhRh49b+wKqeum/0KssLD8eAOsvvOKY4BArhR8nAfYiSWfRdYi RGLOQ78sIrMori97R1O0JrHJ03zww8pc0udPXkEipmanbynO1U3wZ3NcHmTHFbYafI Swwbl2r7yBthubpvR7abvYQrFKkLZD42oa3lup+8= 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.10 136/188] soc/fsl: qbman: fix conflicting alignment attributes Date: Mon, 12 Apr 2021 10:40:50 +0200 Message-Id: <20210412084018.164719291@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084013.643370347@linuxfoundation.org> References: <20210412084013.643370347@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 9888a7061873..feb97470699d 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