Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp108487ybt; Thu, 25 Jun 2020 16:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4DvyFBCsTuht6VWonxSv2jGD/NuBK3KK/UP1HQUThoL8FlX20RuyL3RUfSvm9IBxkMEkv X-Received: by 2002:a17:906:3889:: with SMTP id q9mr219055ejd.318.1593128330101; Thu, 25 Jun 2020 16:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593128330; cv=none; d=google.com; s=arc-20160816; b=TOgxHtY0bVvKnqG1sK5If/TlJu1eQlyRVFUiDiGhZLI9V67VNYJAVsXSpii436/ijo 9r5roxI8+1QjsTURq8x6Sn8j5TJT5XFmaJjyzeIni0/6kin3Zz4ZUbjbMgZuPdV43wwg ImhhE6hqqlATG5iuvgMpac4EfxKyDpnLmS3ZAs+uwIyodJ500fn66k86bvg0h5WwdwLn RVZQ2uJwKXV2u8sW+Y/42LUJB1IMBBaaViMzsAGgzFcwtjEd4Zz/dvC0xb6cQm48D7g5 78TxrpNsy8yPuujunaQod/2kqcGJo6FYdZwC0cczzQ8DeEvdgt3sx/f414Wa3LMKeDMd sJNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=X2Y5t1dKzr/SYf36lPT97sgIrFXEnQgrqfJccb62zp4=; b=CyEOLrGxXQUBUxHOKBoSwKTN5ZSW5DLqitXenJm5BRach2qVrLYv3M3ce1Tj8yiXCk wbj+Feb8nHrbAY7ecy+C+H9MpkKSuIZq2ptjIHsTS9uqYn771czcCVfnAnSEhycSLlhT 20micycXmKyKmG5RuBsrlxZe4Edsujqlb6Hq5BDwd1cq/Uj5uSUolmORFWyTp+w0cVpe D/POxUJz5S4HCx38ZdMNftoeK+86s1ur8cytflTzQRvq5ZPWMaA1nv1A+I7/tBBexGZm BVvVHw4RMVAHDUN+1m2o0uu/8VRIEwONlFxB/tMeMkjFFJLrmLUI9Uvw56pYKv6O4kF9 z9yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QcX55Q+X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si9353599edx.0.2020.06.25.16.38.27; Thu, 25 Jun 2020 16:38:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QcX55Q+X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405654AbgFYVLN (ORCPT + 99 others); Thu, 25 Jun 2020 17:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390087AbgFYVLM (ORCPT ); Thu, 25 Jun 2020 17:11:12 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72787C08C5C1 for ; Thu, 25 Jun 2020 14:11:12 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id l6so881212pjq.1 for ; Thu, 25 Jun 2020 14:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=X2Y5t1dKzr/SYf36lPT97sgIrFXEnQgrqfJccb62zp4=; b=QcX55Q+XgMXu91WqdPsHUPMZjt7V9aPWd2V9HjPFdibFoCViwpNOJJ/VOV1j1Oy4jl Wm0Q7PwLCXx2I/tp+YvmvireijJ2ZXVrHNAu8WlLkEwFaIeHwphV9Sn/vG23dCXqfg/6 lxWIzqOGTsOP9ACva8vlaAMTtWz7lnEkhEpEDmkcYP+gv4yDhcya4EIfyaxzco7ldWtn ZK39YOeNmNRPKToukKT3l/+S1IguHFUDRGKu8gJq8IqJwS+c3jhoMBxpG7hs3EL5zzTv UnpUEn6ch9Erv4Wt4tjI7QGiMvL8nVZ5+vHtT3hyG4ca1en6X/JM1ctQrA/ODrQh31FE Fq6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=X2Y5t1dKzr/SYf36lPT97sgIrFXEnQgrqfJccb62zp4=; b=q+dL9Ibvr0i6bY6uZW/o+FrLlFi0Rlz3L/cXsVoOpuA+EhmRPeMwFzWG44jqkVfQn+ 1Z5b2Z3GDZicKxqnLjEoztZvBsFYoK7ykAALa6vJpitb2cCwmsLK8NiFYEazakXpgVC2 N5VAXi2m1EqmdiOrRkvlyQtLjPllLJ5F+vo8hKMEUb4bvUlaXbu0nqJoR3RMWAlr7sIQ i+VA7sNWqf0kMsyG0s2q6oq5ezA4AggFvpzT6EdLuhfMEq5G//6TgjqcnTCEDmrgTnhE zvi0hN9PdLElAo3PKPLKOdNtatxwN8DpWrAqhUM4IXPAtpojOeBN6JQ2kFmOje7C9xZH Od1w== X-Gm-Message-State: AOAM531eBTDxmQcTYeAhXgKpTYbcj1JbfvC3ATnOan/jnQb3SjXVk172 zApTW+Sx7SdA8jZU5FuhZ5Y= X-Received: by 2002:a17:902:fe0b:: with SMTP id g11mr8928417plj.269.1593119472022; Thu, 25 Jun 2020 14:11:12 -0700 (PDT) Received: from localhost (g2.222-224-226.ppp.wakwak.ne.jp. [222.224.226.2]) by smtp.gmail.com with ESMTPSA id t19sm1374874pgg.19.2020.06.25.14.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 14:11:11 -0700 (PDT) Date: Fri, 26 Jun 2020 06:11:08 +0900 From: Stafford Horne To: Luc Van Oostenryck Cc: Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH] openrisc: fix __user in raw_copy_to_user()'s prototype Message-ID: <20200625211108.GG1401039@lianli.shorne-pla.net> References: <20200622121124.80398-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622121124.80398-1-luc.vanoostenryck@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 02:11:24PM +0200, Luc Van Oostenryck wrote: > raw_copy_to_user()'s prototype seems to be a copy & paste of > raw_copy_from_user() and as such has the __user annotation > in the 'from' argument instead of the 'to'. > > So, move the __user annotation in the prototype to the 'to'. Thank you, I have queued this for 5.9. If you think its more urgent let me know. -Stafford > Reported-by: kernel test robot > Signed-off-by: Luc Van Oostenryck > --- > arch/openrisc/include/asm/uaccess.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/openrisc/include/asm/uaccess.h b/arch/openrisc/include/asm/uaccess.h > index 17c24f14615f..46e31bb4a9ad 100644 > --- a/arch/openrisc/include/asm/uaccess.h > +++ b/arch/openrisc/include/asm/uaccess.h > @@ -241,7 +241,7 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long size) > return __copy_tofrom_user(to, (__force const void *)from, size); > } > static inline unsigned long > -raw_copy_to_user(void *to, const void __user *from, unsigned long size) > +raw_copy_to_user(void __user *to, const void *from, unsigned long size) > { > return __copy_tofrom_user((__force void *)to, from, size); > }