Skip to content

Commit

Permalink
[S390] sysinfo: fix SYSIB 3,2,2 structure
Browse files Browse the repository at this point in the history
The size of the field that contains the description block count is
only four bits instead of eight bits.
The first four bits are reserved but this might change and break.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Feb 26, 2010
1 parent 27d7160 commit 8387c73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/s390/include/asm/sysinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ struct sysinfo_2_2_2 {

struct sysinfo_3_2_2 {
char reserved_0[31];
unsigned char count;
unsigned char :4;
unsigned char count:4;
struct {
char reserved_0[4];
unsigned short cpus_total;
Expand Down

0 comments on commit 8387c73

Please sign in to comment.