]> git.baikalelectronics.ru Git - kernel.git/commit
atm: he: use 64-bit arithmetic instead of 32-bit
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 7 Feb 2018 16:17:29 +0000 (10:17 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Feb 2018 20:05:16 +0000 (15:05 -0500)
commit411d6242d88e0a291d31aa3b233bd8798796a238
tree2f9ec72915048e04e8cc6ee0bfa3e423b3025635
parenta17cfc8484d408e9aa25cae9aa5907d079f68864
atm: he: use 64-bit arithmetic instead of 32-bit

Add suffix ULL to constants 272, 204, 136 and 68 in order to give the
compiler complete information about the proper arithmetic to use.
Notice that these constants are used in contexts that expect
expressions of type unsigned long long (64 bits, unsigned).

The following expressions are currently being evaluated using 32-bit
arithmetic:

272 * mult
204 * mult
136 * mult
68 * mult

Addresses-Coverity-ID: 201058
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/he.c