]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_hashlimit: Add missing ULL suffixes for 64-bit constants
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 6 Oct 2016 13:40:14 +0000 (15:40 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Oct 2016 15:25:23 +0000 (17:25 +0200)
commit2498c1a51246f2cff3cb89d18f8b7d44edb45b9b
tree99870d3fe1eb6268bfcd13afead032d55c2d727f
parentcbd7a65097dd8f2690c6180934156164a6d831d0
netfilter: xt_hashlimit: Add missing ULL suffixes for 64-bit constants

On 32-bit (e.g. with m68k-linux-gnu-gcc-4.1):

    net/netfilter/xt_hashlimit.c: In function ‘user2credits’:
    net/netfilter/xt_hashlimit.c:476: warning: integer constant is too large for ‘long’ type
    ...
    net/netfilter/xt_hashlimit.c:478: warning: integer constant is too large for ‘long’ type
    ...
    net/netfilter/xt_hashlimit.c:480: warning: integer constant is too large for ‘long’ type
    ...

    net/netfilter/xt_hashlimit.c: In function ‘rateinfo_recalc’:
    net/netfilter/xt_hashlimit.c:513: warning: integer constant is too large for ‘long’ type

Fixes: ca8a07e7dc8a5691 ("netfilter: xt_hashlimit: Create revision 2 to support higher pps rates")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Vishwanath Pai <vpai@akamai.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_hashlimit.c