[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v3 06/16] s390-bios: Clean up cio.h
From: |
Cornelia Huck |
Subject: |
Re: [qemu-s390x] [PATCH v3 06/16] s390-bios: Clean up cio.h |
Date: |
Thu, 7 Mar 2019 09:08:51 +0100 |
On Wed, 6 Mar 2019 13:42:17 -0500
"Jason J. Herne" <address@hidden> wrote:
> On 3/5/19 12:51 AM, Thomas Huth wrote:
> > On 01/03/2019 19.59, Jason J. Herne wrote:
> >> Add proper typedefs to all structs and modify all bit fields to use
> >> consistent
> >> formatting.
> >>
> >> Signed-off-by: Jason J. Herne <address@hidden>
> >> Reviewed-by: Collin Walling <address@hidden>
> >> Reviewed-by: Farhan Ali <address@hidden>
> >> ---
> >> pc-bios/s390-ccw/cio.h | 152
> >> ++++++++++++++++++++++----------------------
> >> pc-bios/s390-ccw/s390-ccw.h | 8 ---
> >> 2 files changed, 76 insertions(+), 84 deletions(-)
> >>
> >> diff --git a/pc-bios/s390-ccw/cio.h b/pc-bios/s390-ccw/cio.h
> >> index 1a0795f..2f58256 100644
> >> --- a/pc-bios/s390-ccw/cio.h
> >> +++ b/pc-bios/s390-ccw/cio.h
> > [...]
> >> -struct subchannel_id {
> >> - __u32 cssid : 8;
> >> - __u32 : 4;
> >> - __u32 m : 1;
> >> - __u32 ssid : 2;
> >> - __u32 one : 1;
> >> - __u32 sch_no : 16;
> >> -} __attribute__ ((packed, aligned(4)));
> >> +} __attribute__ ((packed, aligned(4))) Schib;
> >> +
> >> +typedef struct subchannel_id {
> >> + __u32 cssid:8;
> >> + __u32:4;
> >
> > __u32:4 looks a little bit funny. Not sure, but maybe this should be
> > given a name like "reserved" or so?
> >
>
> Perhaps, but this is not my code. I was just cleaning up the style. If you
> feel strongly
> that this patch is the place to give this a name, I can do that.
FWIW, my personal preference for this is keeping it unnamed.
[qemu-s390x] [PATCH v3 12/16] s390-bios: Refactor virtio to run channel programs via cio, Jason J. Herne, 2019/03/01
[qemu-s390x] [PATCH v3 03/16] s390-bios: decouple common boot logic from virtio, Jason J. Herne, 2019/03/01
[qemu-s390x] [PATCH v3 11/16] s390-bios: cio error handling, Jason J. Herne, 2019/03/01
[qemu-s390x] [PATCH v3 14/16] s390-bios: Add channel command codes/structs needed for dasd-ipl, Jason J. Herne, 2019/03/01