summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2020-08-03 08:50:38 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-09-26 15:51:20 +0200
commitbb7d066a091654b6d6c0b6061bda438bf36c6613 (patch)
tree08e3d8326abc062bfe998f5565d1f67f78a71b32 /arch/s390
parents390/stp: add locking to sysfs functions (diff)
downloadlinux-bb7d066a091654b6d6c0b6061bda438bf36c6613.tar.xz
linux-bb7d066a091654b6d6c0b6061bda438bf36c6613.zip
s390/stp: use __packed
Use __packed instead of __attribute__((packed)) Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/stp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/s390/include/asm/stp.h b/arch/s390/include/asm/stp.h
index f0ddefb06ec8..572f6f4286e2 100644
--- a/arch/s390/include/asm/stp.h
+++ b/arch/s390/include/asm/stp.h
@@ -6,6 +6,8 @@
#ifndef __S390_STP_H
#define __S390_STP_H
+#include <linux/compiler.h>
+
/* notifier for syncs */
extern struct atomic_notifier_head s390_epoch_delta_notifier;
@@ -16,7 +18,7 @@ struct stp_irq_parm {
unsigned int lac : 1; /* Link availability change */
unsigned int tcpc : 1; /* Time control parameter change */
unsigned int _pad2 : 15;
-} __attribute__ ((packed));
+} __packed;
#define STP_OP_SYNC 1
#define STP_OP_CTRL 3
@@ -42,7 +44,7 @@ struct stp_sstpi {
unsigned int rsvd5;
unsigned int todoff[4];
unsigned int rsvd6[48];
-} __attribute__ ((packed));
+} __packed;
/* Functions needed by the machine check handler */
int stp_sync_check(void);