summaryrefslogtreecommitdiffstats
path: root/drivers/s390/block/dasd_eer.c
diff options
context:
space:
mode:
authorStefan Weinhuber <wein@de.ibm.com>2006-06-29 15:02:59 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-06-29 15:02:59 +0200
commit774fc4ef718f7343306ba3695e8a2622cbd9764d (patch)
treeec16092b99b5e92985faf95bcafb98daf0d0dc06 /drivers/s390/block/dasd_eer.c
parentcc43ec1ab0ae67c9cd5b3c2483a731afc98cbc2c (diff)
downloadblackbird-op-linux-774fc4ef718f7343306ba3695e8a2622cbd9764d.tar.gz
blackbird-op-linux-774fc4ef718f7343306ba3695e8a2622cbd9764d.zip
[S390] dasd eer data format.
The struct dasd_eer_header needs the packed attribute, or there will be 6 additional bytes of random data between the fixed header and the variable length part of the eer data. Signed-off-by: Stefan Weinhuber <wein@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd_eer.c')
-rw-r--r--drivers/s390/block/dasd_eer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/block/dasd_eer.c b/drivers/s390/block/dasd_eer.c
index 9d574ede1b1d..da65f1b032f5 100644
--- a/drivers/s390/block/dasd_eer.c
+++ b/drivers/s390/block/dasd_eer.c
@@ -276,7 +276,7 @@ struct dasd_eer_header {
__u64 tv_sec;
__u64 tv_usec;
char busid[DASD_EER_BUSID_SIZE];
-};
+} __attribute__ ((packed));
/*
* The following function can be used for those triggers that have
OpenPOWER on IntegriCloud