]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_quota: Don't use aligned attribute in sizeof
authorNathan Chancellor <natechancellor@gmail.com>
Sat, 6 Oct 2018 23:33:31 +0000 (16:33 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Oct 2018 22:19:25 +0000 (00:19 +0200)
commit873940523907a76a2cc9d4f7a67c70ef53b2a5f1
tree9f5156d8d9beb32584e2298c491c7dbc90b8f04f
parenta706c979ea0f6336e387af647c7086951090aec6
netfilter: xt_quota: Don't use aligned attribute in sizeof

Clang warns:

net/netfilter/xt_quota.c:47:44: warning: 'aligned' attribute ignored
when parsing type [-Wignored-attributes]
        BUILD_BUG_ON(sizeof(atomic64_t) != sizeof(__aligned_u64));
                                                  ^~~~~~~~~~~~~

Use 'sizeof(__u64)' instead, as the alignment doesn't affect the size
of the type.

Fixes: a706c979ea0f ("netfilter: xt_quota: fix the behavior of xt_quota module")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_quota.c