From: Guenter Roeck Subject: Re: [RFC][PATCH 05/14] ia64: csum_partial_copy_nocheck(): don't abuse csum_partial_copy_from_user() Date: Wed, 3 Jun 2020 12:50:15 -0700 Message-ID: <20200603195015.GA3364@roeck-us.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgFCTuR (ORCPT ); Wed, 3 Jun 2020 15:50:17 -0400 Content-Disposition: inline Sender: linux-arch-owner@vger.kernel.org List-ID: To: Al Viro Cc: Linus Torvalds , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org On Wed, Jun 03, 2020 at 08:10:38PM +0100, Al Viro wrote: > On Wed, Jun 03, 2020 at 08:37:14AM -0700, Guenter Roeck wrote: > > On Fri, Mar 27, 2020 at 11:31:08PM +0000, Al Viro wrote: > > > From: Al Viro > > > > > > Just inline the call and use memcpy() instead of __copy_from_user() and > > > note that the tail is precisely ia64 csum_partial(). > > > > > > Signed-off-by: Al Viro > > > > This patch results in: > > > > arch/ia64/lib/csum_partial_copy.c: In function 'csum_partial_copy_nocheck': > > arch/ia64/lib/csum_partial_copy.c:110:9: error: implicit declaration of function 'csum_partial' > > > > for ia64:{defconfig, allnoconfig, tinyconfig}. > > Argh... > > Signed-off-by: Al Viro Yes, that does the trick. Tested-by: Guenter Roeck > --- > diff --git a/arch/ia64/lib/csum_partial_copy.c b/arch/ia64/lib/csum_partial_copy.c > index 5d147a33d648..6e82e0be8040 100644 > --- a/arch/ia64/lib/csum_partial_copy.c > +++ b/arch/ia64/lib/csum_partial_copy.c > @@ -12,7 +12,7 @@ > #include > #include > > -#include > +#include > > /* > * XXX Fixme: those 2 inlines are meant for debugging and will go away