Skip to contentSkip to conversation

Staging: lustre: Fix __packed is preferred over __attribute__((packed)) in libcfs_kernelcomm.h

PATCH In review Dilek Uzulmez 2 participants 2 messages Mar 1, 2015 – Mar 2, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: Fix __packed is preferred over __attribute__((packed)) in libcfs_kernelcomm.h

Fix checkpatch.pl issues with __packed is preferred over __attribute__((packed)) in libcfs_kernelcomm.h

---
 drivers/staging/lustre/include/linux/libcfs/libcfs_kernelcomm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/include/linux/libcfs/libcfs_kernelcomm.h +1 -1
index 4688770..a989d26 100644
@@ -107,7 +107,7 @@ typedef struct lustre_kernelcomm {
 	__u32 lk_group;
 	__u32 lk_data;
 	__u32 lk_flags;
-} __attribute__((packed)) lustre_kernelcomm;
+} __packed lustre_kernelcomm;
 
 /* Userspace methods */
 int libcfs_ukuc_start(lustre_kernelcomm *l, int groups);
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 12 lines · Dilek Uzulmez

Fix checkpatch.pl issues with __packed is preferred over __attribute__((packed)) in libcfs_kernelcomm.h

---
 drivers/staging/lustre/include/linux/libcfs/libcfs_kernelcomm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/include/linux/libcfs/libcfs_kernelcomm.h +0 -0
index 4688770..a989d26 100644

drivers/staging/lustre/include/linux/libcfs/libcfs_kernelcomm.h typedef struct lustre_kernelcomm { · line 110

Quoted 5 lines
drivers/staging/lustre/include/linux/libcfs/libcfs_kernelcomm.h +1 -1
@@ -107,7 +107,7 @@ typedef struct lustre_kernelcomm {
 	__u32 lk_group;
 	__u32 lk_data;
 	__u32 lk_flags;
-} __attribute__((packed)) lustre_kernelcomm;
+} __packed lustre_kernelcomm;

Can you also work to get rid of this typedef?

thanks,

greg k-h-