Skip to content

Commit 8e50be9

Browse files
icojb25gregkh
authored andcommitted
staging: greybus: Replace __attribute__((packed)) by __packed in various instances
This patch makes the following changes: * Replaces '__attribute__((packed))' by '__packed' in various locations to remove checkpatch warning Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com> Link: https://lore.kernel.org/r/20240227160113.111264-1-bergh.jonathan@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b9e4dfb commit 8e50be9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/staging/greybus/greybus_authentication.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/* IOCTL support */
4545
struct cap_ioc_get_endpoint_uid {
4646
__u8 uid[8];
47-
} __attribute__ ((__packed__));
47+
} __packed;
4848

4949
struct cap_ioc_get_ims_certificate {
5050
__u32 certificate_class;
@@ -53,7 +53,7 @@ struct cap_ioc_get_ims_certificate {
5353
__u8 result_code;
5454
__u32 cert_size;
5555
__u8 certificate[CAP_CERTIFICATE_MAX_SIZE];
56-
} __attribute__ ((__packed__));
56+
} __packed;
5757

5858
struct cap_ioc_authenticate {
5959
__u32 auth_type;
@@ -64,7 +64,7 @@ struct cap_ioc_authenticate {
6464
__u8 response[64];
6565
__u32 signature_size;
6666
__u8 signature[CAP_SIGNATURE_MAX_SIZE];
67-
} __attribute__ ((__packed__));
67+
} __packed;
6868

6969
#define CAP_IOCTL_BASE 'C'
7070
#define CAP_IOC_GET_ENDPOINT_UID _IOR(CAP_IOCTL_BASE, 0, struct cap_ioc_get_endpoint_uid)

0 commit comments

Comments
 (0)