Skip to content

Commit 68bb540

Browse files
icojb25gregkh
authored andcommitted
staging: greybus: Replaces directive __attribute__((packed)) by __packed as suggested by checkpatch
This patch makes the following changes: * Replaces '__attribute__((packed))' by '__packed' to remove warning as flagged by checkpatch Signed-off-by: Jonathan Bergh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8e50be9 commit 68bb540

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/staging/greybus/greybus_firmware.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,27 @@ struct fw_mgmt_ioc_get_intf_version {
4141
__u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE];
4242
__u16 major;
4343
__u16 minor;
44-
} __attribute__ ((__packed__));
44+
} __packed;
4545

4646
struct fw_mgmt_ioc_get_backend_version {
4747
__u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE];
4848
__u16 major;
4949
__u16 minor;
5050
__u8 status;
51-
} __attribute__ ((__packed__));
51+
} __packed;
5252

5353
struct fw_mgmt_ioc_intf_load_and_validate {
5454
__u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE];
5555
__u8 load_method;
5656
__u8 status;
5757
__u16 major;
5858
__u16 minor;
59-
} __attribute__ ((__packed__));
59+
} __packed;
6060

6161
struct fw_mgmt_ioc_backend_fw_update {
6262
__u8 firmware_tag[GB_FIRMWARE_U_TAG_MAX_SIZE];
6363
__u8 status;
64-
} __attribute__ ((__packed__));
64+
} __packed;
6565

6666
#define FW_MGMT_IOCTL_BASE 'F'
6767
#define FW_MGMT_IOC_GET_INTF_FW _IOR(FW_MGMT_IOCTL_BASE, 0, struct fw_mgmt_ioc_get_intf_version)

0 commit comments

Comments
 (0)