Skip to content

Commit

Permalink
net: __aligned(size) is preferred over __attribute__((aligned(size)))
Browse files Browse the repository at this point in the history
Signed-off-by: Ameen Ali <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
AmeenAli authored and davem330 committed Feb 22, 2015
1 parent 92b8391 commit e099b2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions net/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,25 +508,25 @@ COMPAT_SYSCALL_DEFINE5(getsockopt, int, fd, int, level, int, optname,
struct compat_group_req {
__u32 gr_interface;
struct __kernel_sockaddr_storage gr_group
__attribute__ ((aligned(4)));
__aligned(4);
} __packed;

struct compat_group_source_req {
__u32 gsr_interface;
struct __kernel_sockaddr_storage gsr_group
__attribute__ ((aligned(4)));
__aligned(4);
struct __kernel_sockaddr_storage gsr_source
__attribute__ ((aligned(4)));
__aligned(4);
} __packed;

struct compat_group_filter {
__u32 gf_interface;
struct __kernel_sockaddr_storage gf_group
__attribute__ ((aligned(4)));
__aligned(4);
__u32 gf_fmode;
__u32 gf_numsrc;
struct __kernel_sockaddr_storage gf_slist[1]
__attribute__ ((aligned(4)));
__aligned(4);
} __packed;

#define __COMPAT_GF0_SIZE (sizeof(struct compat_group_filter) - \
Expand Down

0 comments on commit e099b2d

Please sign in to comment.