From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] atm: he: use 64-bit arithmetic instead of 32-bit Date: Thu, 08 Feb 2018 15:05:36 -0500 (EST) Message-ID: <20180208.150536.1732289776944691235.davem@davemloft.net> References: <20180207161729.GA10329@embeddedgus> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: 3chas3@gmail.com, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, garsilva@embeddedor.com To: gustavo@embeddedor.com Return-path: In-Reply-To: <20180207161729.GA10329@embeddedgus> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: "Gustavo A. R. Silva" Date: Wed, 7 Feb 2018 10:17:29 -0600 > 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 Applied, thanks.