Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1992341imm; Thu, 2 Aug 2018 04:39:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeqR5PePbuH8te8op1h7oZ2+XWFPKH6k71Yw1lTg1uH2GcZ8/xZvq4/zXMQgMdv/S4t3D3U X-Received: by 2002:a63:c902:: with SMTP id o2-v6mr2436712pgg.118.1533209941992; Thu, 02 Aug 2018 04:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533209941; cv=none; d=google.com; s=arc-20160816; b=iDm4sWElM+eiclXRBoWeE+riEF260ChB8WPrjQpxoeohNosvBv4VTgkew1xmRB7S2U wNlVJ3XRjUjeDH6bbVVvfQSDP0AMSYezAXZ8n83fvB0n0/NWT2SUycricFrs8Lnz+38Y Go4hYn0ahmSeSGVT89CPCsqD6Tg+sawnSbrl2fdEqvGasX/pNZlUCiHK/n1C7plNuJvX gV3/dbuhZzUL60WvtwIMSdfw3qwB2tbcCQih46H1abrMO2AzWYA+Q8KHLKvreabLRgFJ JSIKMyeIt3jJg7QZ1SenzZ0tAO2FDqAh+vFgOMA+RivCu3nT44wUlnXHaA/DVfytsNwy jGuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=fmwyOJNr05AyIMw2VvGHlV6UBjJSxyK9cUyLxJCjH+4=; b=FsL5axlmEobs46A/IAC87x/UREn/a99y5nYjyOlgN9/XOA1BH3o3KVosW5/phVmkv9 f/8SWy3zQal2W/gqVpyWNyzmV6fq7KIjaMukSrZ8pwZs9rogNWsioZcBx/o9mN/u85Hw Mnbgu+PQ30iKIRfli3j9r9fBWIi6ag9EV0WZKk4t6zUB8IKxPtcnOxXHoXrcEbxCD3Zw aHkRGBEKCCtod9DzOVeYzIHArXFdEqyo1iPvadcC9JNnRRmDKyEjmohYt8i0IgctLyBo GyObM49XvhZ8vf5PnX9wM1q8id0AluIyXA19QePOfH/fNhe5YNtsoS0WsvNVWdYpyO9t F5VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bvjH2F33; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si1797529pgb.297.2018.08.02.04.38.47; Thu, 02 Aug 2018 04:39:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bvjH2F33; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732328AbeHBN2O (ORCPT + 99 others); Thu, 2 Aug 2018 09:28:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52154 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732074AbeHBN2O (ORCPT ); Thu, 2 Aug 2018 09:28:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fmwyOJNr05AyIMw2VvGHlV6UBjJSxyK9cUyLxJCjH+4=; b=bvjH2F33PYTOe6dcoBerlhJTs paxwOjmOKfN4ZXtCe0k6SAHJpH7qciuHvyuHS8YrbWMM89Om/PIxwEhFhbBB0+J3UDitYz/8tD80S jR3CmoPQY6n8Cp9bmXvZ6AU/ouwXKIszmyLLTCom4VbqU8OfqKpWR0F93gCP+7Gp7QXrwYdvMkd1Z 6eDeQKydaTe7LeBSr/goGJaYcYK4NpGqyLLDiXf0xyA8PkViuMQjRKLCEZ7hNUR+bOuWeYTyp43wa mxzGHj6B7hP/nXP4z/xULy11bOj+RZTu7+AiQxazXq/giekcmceflK/AYuyMIvTf/R89NJ7WW22f7 1gBduc2xg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1flBv6-0006or-5L; Thu, 02 Aug 2018 11:37:28 +0000 Date: Thu, 2 Aug 2018 04:37:27 -0700 From: Christoph Hellwig To: Alan Kao Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Palmer Dabbelt , Albert Ou , Christoph Hellwig , Andrew Waterman , Arnd Bergmann , Darius Rad , Vincent Chen , Zong Li , Nick Hu , Greentime Hu Subject: Re: [PATCH v3 2/4] Refactor FPU codes in signal setup/return procedures Message-ID: <20180802113727.GB17108@infradead.org> References: <1533188391-5932-1-git-send-email-alankao@andestech.com> <1533188391-5932-3-git-send-email-alankao@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1533188391-5932-3-git-send-email-alankao@andestech.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org s/codes/code/ in the subject. Also a little explanation of why you refactor it in the patch description would be helpful. > +static long restore_fp_state(struct pt_regs *regs, > + union __riscv_fp_state *sc_fpregs) Please add another tab for the indentation here even if the original code got it wrong. > +static long save_fp_state(struct pt_regs *regs, > + union __riscv_fp_state *sc_fpregs) Same here. Otherwise looks good: Reviewed-by: Christoph Hellwig