From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1516012575.3045.37.camel@perches.com> Subject: Re: [PATCH v12 1/3] lib: Add strongly typed 64bit int_sqrt From: Joe Perches To: Crt Mori Cc: Jonathan Cameron , Ingo Molnar , Andrew Morton , Kees Cook , Rusty Russell , Ian Abbott , Larry Finger , Niklas Soderlund , Thomas Gleixner , Krzysztof Kozlowski , Masahiro Yamada , linux-kernel@vger.kernel.org, Linux Iio , Peter Zijlstra , David Laight Date: Mon, 15 Jan 2018 02:36:15 -0800 In-Reply-To: References: <20180109151847.30258-1-cmo@melexis.com> <1515525824.9619.103.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 List-ID: On Wed, 2018-01-10 at 09:37 +0100, Crt Mori wrote: > Shouldn't I rather make it > > if (x <= ULONG_MAX) > return int_sqrt((unsigned long) x); With this change: (I believe done in v13) and as requested by Crt Mori in a private email: Acked-by: Joe Perches