]> 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)
commitfe3e62780e5715a1c04907fb3e5bc75f4c9c73fa
tree9f5156d8d9beb32584e2298c491c7dbc90b8f04f
parent81968184211aa563d8ed117900070b8ba214ee7b
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: 81968184211a ("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