Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751250AbdLZQ3V (ORCPT ); Tue, 26 Dec 2017 11:29:21 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:59340 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbdLZQ3U (ORCPT ); Tue, 26 Dec 2017 11:29:20 -0500 Subject: Re: [PATCH] MIPS: Use proper @return keyword To: Mathieu Malaterre Cc: Ralf Baechle , "Maciej W. Rozycki" , Paul Burton , Ingo Molnar , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org References: <20171226105532.23452-1-malat@debian.org> From: Randy Dunlap Message-ID: <9bd8b13f-e9c0-44ec-f53d-f9171973d9a8@infradead.org> Date: Tue, 26 Dec 2017 08:29:16 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20171226105532.23452-1-malat@debian.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 964 Lines: 32 On 12/26/2017 02:55 AM, Mathieu Malaterre wrote: > Fix non-fatal warning: > > arch/mips/kernel/branch.c:418: warning: Excess function parameter 'returns' description in '__compute_return_epc_for_insn' > > Signed-off-by: Mathieu Malaterre > --- > arch/mips/kernel/branch.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/mips/kernel/branch.c b/arch/mips/kernel/branch.c > index b79ed9af9886..e0d3a432e1e3 100644 > --- a/arch/mips/kernel/branch.c > +++ b/arch/mips/kernel/branch.c > @@ -399,7 +399,7 @@ int __MIPS16e_compute_return_epc(struct pt_regs *regs) > * > * @regs: Pointer to pt_regs > * @insn: branch instruction to decode > - * @returns: -EFAULT on error and forces SIGILL, and on success > + * @return: -EFAULT on error and forces SIGILL, and on success No @, just return: > * returns 0 or BRANCH_LIKELY_TAKEN as appropriate after > * evaluating the branch. > * > -- ~Randy