]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitffa0a9a5903e9fcfde71a0200af30692ac223ef7
tree9f5156d8d9beb32584e2298c491c7dbc90b8f04f
parente9837e55b0200da544a095a1fca36efd7fd3ba30
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: e9837e55b020 ("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