Re: [PATCH v2 1/3] hpsa: use __packed on individual structs, not header-wide
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Sergei Trofimovich <slyfox@xxxxxxxxxx>
- Subject: Re: [PATCH v2 1/3] hpsa: use __packed on individual structs, not header-wide
- From: Arnd Bergmann <arnd@xxxxxxxxxx>
- Date: Tue, 30 Mar 2021 09:43:55 +0200
- Cc: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>, John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx>, Don Brace <don.brace@xxxxxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, storagedev@xxxxxxxxxxxxx, linux-scsi <linux-scsi@xxxxxxxxxxxxxxx>, jszczype@xxxxxxxxxx, Scott Benesh <scott.benesh@xxxxxxxxxxxxx>, Scott Teel <scott.teel@xxxxxxxxxxxxx>, thenzl@xxxxxxxxxx, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>
- In-reply-to: <CAK8P3a32frskYgoXi2ncOcLfhqcMDssSBp79p7WSRg3VPhmSdA@mail.gmail.com>
- References: <yq1wntpgxxr.fsf@ca-mkp.ca.oracle.com> <20210330071958.3788214-1-slyfox@gentoo.org> <CAK8P3a32frskYgoXi2ncOcLfhqcMDssSBp79p7WSRg3VPhmSdA@mail.gmail.com>
On Tue, Mar 30, 2021 at 9:30 AM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
> On Tue, Mar 30, 2021 at 9:22 AM Sergei Trofimovich <slyfox@xxxxxxxxxx> 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 <arnd@xxxxxxxx>
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]