From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94029C4332F for ; Mon, 14 Mar 2022 14:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237383AbiCNOy0 (ORCPT ); Mon, 14 Mar 2022 10:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233581AbiCNOyZ (ORCPT ); Mon, 14 Mar 2022 10:54:25 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9886025C63; Mon, 14 Mar 2022 07:53:14 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nTm4O-0006nG-00; Mon, 14 Mar 2022 15:53:12 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id DCAF1C2E31; Mon, 14 Mar 2022 15:51:23 +0100 (CET) Date: Mon, 14 Mar 2022 15:51:23 +0100 From: Thomas Bogendoerfer To: Randy Dunlap Cc: netdev@vger.kernel.org, patches@lists.linux.dev, linux-mips@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Phil Sutter , Florian Fainelli , Ralf Baechle , Daniel Walter Subject: Re: [PATCH] MIPS: RB532: fix return value of __setup handler Message-ID: <20220314145123.GC13438@alpha.franken.de> References: <20220312042026.10482-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220312042026.10482-1-rdunlap@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On Fri, Mar 11, 2022 at 08:20:26PM -0800, Randy Dunlap wrote: > __setup() handlers should return 1 to obsolete_checksetup() in > init/main.c to indicate that the boot option has been handled. > A return of 0 causes the boot option/value to be listed as an Unknown > kernel parameter and added to init's (limited) argument or environment > strings. Also, error return codes don't mean anything to > obsolete_checksetup() -- only non-zero (usually 1) or zero. > So return 1 from setup_kmac(). > > Fixes: 9e21c7e40b7e ("MIPS: RB532: Replace parse_mac_addr() with mac_pton().") > Fixes: 73b4390fb234 ("[MIPS] Routerboard 532: Support for base system") > Signed-off-by: Randy Dunlap > From: Igor Zhbanov > Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru > Cc: Thomas Bogendoerfer > Cc: linux-mips@vger.kernel.org > Cc: "David S. Miller" > Cc: Jakub Kicinski > Cc: Phil Sutter > Cc: Florian Fainelli > Cc: Ralf Baechle > Cc: Daniel Walter > --- > arch/mips/rb532/devices.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]