]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/cio: sanitize css_general_characteristics definition
authorSebastian Ott <sebott@linux.ibm.com>
Wed, 23 May 2018 14:47:36 +0000 (16:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 12 Jun 2018 13:14:05 +0000 (15:14 +0200)
commit7352c5469307395875f4b62f366a369ae1c46e83
treeee5da0c493758bd8f41cc24bd5cc596c6da81b07
parentd7927df833d2bb3e494f588205f3ccef87e0cbd7
s390/cio: sanitize css_general_characteristics definition

Change css_general_characteristics such that the bitfields don't
straddle storage-unit boundaries of the base types.

This does not change the offsets of the structs members but now
we do as documented and also fix the following sparse complaint:
drivers/s390/cio/chsc.c:926:56:
warning: invalid access past the end of 'css_general_characteristics' (16 18)

Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/css_chars.h