summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAmeen Ali <ameenali023@gmail.com>2015-02-22 23:40:36 +0200
committerDavid S. Miller <davem@davemloft.net>2015-02-22 17:01:22 -0500
commite099b2d9dfe25583e1ecf98bd31a9f12c2ec1b74 (patch)
treece4fe208a45397d20cbe0e384c6d1a041bc8a994 /net
parent92b839175064632813a7c4b7e180efde4c08c850 (diff)
downloadop-kernel-dev-e099b2d9dfe25583e1ecf98bd31a9f12c2ec1b74.zip
op-kernel-dev-e099b2d9dfe25583e1ecf98bd31a9f12c2ec1b74.tar.gz
net: __aligned(size) is preferred over __attribute__((aligned(size)))
Signed-off-by: Ameen Ali <AmeenAli023@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/compat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/compat.c b/net/compat.c
index 3236b41..49c6a8f 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -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) - \
OpenPOWER on IntegriCloud