Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4173810pxf; Tue, 30 Mar 2021 00:45:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUt9T1Vs2mHs61G0HHM7sVu5QynGmRbl4n/Hp2oSbryZ4vtLElLW2rjxsQf+rcYJ9rf6mL X-Received: by 2002:aa7:c7da:: with SMTP id o26mr32680583eds.244.1617090335975; Tue, 30 Mar 2021 00:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617090335; cv=none; d=google.com; s=arc-20160816; b=YDJ66PdbyKdj1t3Ro1ibFEZeC1Xy9TbBiHKE/6ZQUOrADRsE6OjEVXfAxSgMvA7v2m KZpmFlqedT6zjukKqjz4ZQsULaLcC/eg6hBwvDT3QB1g/IlghLcNwuiKPG5ozeigHKzn kNhn7tlQr1BYmcZvt2ADJuFVEpTdE9vtOG0S5b2e72/LrKg5Y86NsM4yrCD3IaUO9zcP 5uADn95bNn97X9JUU20+TUMvxVJuw1+YLQw9gKVni0KdpeWas2nlXBv3tljyI8wd00Gp PADwr0pQzyx81hzvvrWcfjOIB1iteA7oGVVxdIQ2+HMF3VNiv64S0nnF+1QykLUBa8dR /FoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mpSQIezr6MCdI8BbMCJoRZt0w4Veo5HbuHCsBL3+dKo=; b=H6QSxxCl/FwX/fquXzbPPCC3xATbLK2eqlBUxAsOOa3jTlxJh9FHx34oUszLTd8yLY wgtiz2F4KxCVTZBseNIqteVaeYLi6heqNxY48UUjVLL9+tHC+//NzNy4DN1LfvoGPoLN 74CLEw7QrJEmfFhksjIWnnG8L6jO6g3Gfi6z2HTS1odhiKq+oeIusJTmknVakMND+QJ5 lweyyQWQX9Ym7kHUno0yQDNL9Kdl0jTV2kJ6/Fmqu8cYBWMEQb3oPoC08LDRqMkLJY6J qyGQbH4eKtdXfGjVeL3iaND+HWx3lqZPPRMFObOzFpyiB/h8W5Ov3RguV/2tRte2e8uV FwUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="U6fJ/Wgp"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo14si14644013ejb.460.2021.03.30.00.45.13; Tue, 30 Mar 2021 00:45: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=@kernel.org header.s=k20201202 header.b="U6fJ/Wgp"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231430AbhC3HoM (ORCPT + 99 others); Tue, 30 Mar 2021 03:44:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:59666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbhC3HoK (ORCPT ); Tue, 30 Mar 2021 03:44:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6639E61957; Tue, 30 Mar 2021 07:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617090250; bh=tuMGzEMv8DSrmgTdqm0/YinviAWM2a09nAJJdrKRX88=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=U6fJ/Wgp1s3ZH2+DS+6Wah2CgwXCHCi7nNaT1V0QSWr6dC9UeafEzM8COrxLNNRmx KXLTUe6G6eQNe/SGQb0Yuo8ahHmGKiuXTcXmNH5PWpWxTiS+4U+48OAu3x57QiY329 8HZNixeTXfWfmx9odz/RtwxTa5zqMDFEUQjYgeGmUSWQnSNcE6LL/aCRew8eYBaizg SBQs0QPhM+P3ea048ubUzW3cd1DoLeDmOUPIUCe23uRcaK3rZx0PXfwwxLiv82ZMx5 7ZCjRBPIf9Wi16qSrttzS59dmumsBnE/bJrK+rQeZeeaxdDU4g0NGC/lyn+Yd1Fh/G wz6zUbXaXBMNw== Received: by mail-ot1-f52.google.com with SMTP id h6-20020a0568300346b02901b71a850ab4so14781623ote.6; Tue, 30 Mar 2021 00:44:10 -0700 (PDT) X-Gm-Message-State: AOAM530NCixjoFlJ0u12R8E71mL3QXgiA/IBIwDptRx5zjfKU/kzs1Kh F/nY4Zx2l2jzCIUVQi7rxqayHoZD5nwmURvXyH4= X-Received: by 2002:a9d:758b:: with SMTP id s11mr2694577otk.305.1617090249299; Tue, 30 Mar 2021 00:44:09 -0700 (PDT) MIME-Version: 1.0 References: <20210330071958.3788214-1-slyfox@gentoo.org> In-Reply-To: From: Arnd Bergmann Date: Tue, 30 Mar 2021 09:43:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] hpsa: use __packed on individual structs, not header-wide To: Sergei Trofimovich Cc: "Martin K. Petersen" , John Paul Adrian Glaubitz , Don Brace , linux-ia64@vger.kernel.org, storagedev@microchip.com, linux-scsi , jszczype@redhat.com, Scott Benesh , Scott Teel , thenzl@redhat.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 30, 2021 at 9:30 AM Arnd Bergmann wrote: > On Tue, Mar 30, 2021 at 9:22 AM Sergei Trofimovich wrote: > > > @@ -451,7 +452,7 @@ struct CommandList { > > bool retry_pending; > > struct hpsa_scsi_dev_t *device; > > atomic_t refcount; /* Must be last to avoid memset in hpsa_cmd_init() */ > > -} __aligned(COMMANDLIST_ALIGNMENT); > > +} __packed __aligned(COMMANDLIST_ALIGNMENT); > > You are still marking CommandList as __packed here, which is > what caused the original problem. Please don't mark this one > as __packed at all. If there are individual members that you want > to be misaligned inside of the structure, you could mark those > explicitly. Nevermind, I just got patch 2/3, splitting up the patches like this seems fine to me. Whole series Reviewed-by: Arnd Bergmann