Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp985825pxb; Wed, 6 Apr 2022 06:04:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoogbtWYdDpUxjHwVBN5/Q1LO7WxNdLWLreH3PxOHW+QePxjgxnT664JkVL0pDnU3W/33S X-Received: by 2002:a92:c56c:0:b0:2c9:db11:98d2 with SMTP id b12-20020a92c56c000000b002c9db1198d2mr4363951ilj.152.1649250275606; Wed, 06 Apr 2022 06:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649250275; cv=none; d=google.com; s=arc-20160816; b=Rsu4viXkcbV8LxWODrxcUy6SgbjDJMXPcijl4lwncYPExHe0UqCUpzzUK85zjy5fsl FcjukJuTRK8Hd/JhqRxWdlHq4QLd+bSXwXADPBDqzfIhmOg9AGklfqJUcmhzdrJSAT97 0MFpEG3VhosLbPxgBAux0LthBZKsupVHim2t50rOzJQr3Z/0Fu0zBuO/9N5vXXSeEtJL U/dBJmypDuZFEbtLk7HXUhzOQqtLgS/F1B5Ir/ZfC0zywDcNz4jd9MlNRthkl4W0gHFI HnHH1x9aZH/VaWlSUy+xN8myz9NlSkB9R71MQ31SitR2UpzrSIVMnqxTMXb+CKtK3maQ AOlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WxqZ5VNYO4zunX/dmPzyH5HAlZW//lw8MVbB24zuZOg=; b=wtd4HaGr0z63xja2+uphX03mJIWcrOt+z1qp6vNVmgKZWiWkJ3T5YzNdEucNvyASHb Z4YrlK73tlbe11eDt+qrddOjN2ZFbQ3t8etUlEqsO0vAOYPhbK+/X0n9G4Ieo3SrA4w0 eBNlke7OIT8wycbaW04kX3qMQcknh8TgZ7x+TqKqAmPrOkGmY7cFYflFksElEEcjbzKM 0xGw00MAyfhMPGZ91b5UfhdhEEp4502wHQ0Nj/3pSnQP7llV3Zpjd7XWUGIBRdLGalgz U9B/JPJW9C+2fmtBvS6tx89wFBOiuletH3TepflUa9jvkU+/RIoXQYV0lCN10BLi2UdT TCCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ImnbTmCX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j13-20020a056e02154d00b002ca318ab69csi5826881ilu.181.2022.04.06.06.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:04:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ImnbTmCX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E77683CF4B1; Wed, 6 Apr 2022 03:25:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1582822AbiDEXtw (ORCPT + 99 others); Tue, 5 Apr 2022 19:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349217AbiDEJt1 (ORCPT ); Tue, 5 Apr 2022 05:49:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39F3F22B25; Tue, 5 Apr 2022 02:42:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CABC461576; Tue, 5 Apr 2022 09:42:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F7AC385A1; Tue, 5 Apr 2022 09:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151769; bh=KYXEhnswZ9GlBv57VQWGUAbK4dX9BNkHI4d1xHGhTd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ImnbTmCXeOxhwLxNkCaMsSmA8cXu5QZn2YV3gqXGT5+oP+R32y/Y98gkODHBAhfQc mqmWCODsTcmcKoDJaMRXb9aHXV28GFq32oFdjXAgC2MsYdOS/BzRPAhs+dcBpEkzOZ Ntv3JFv0UhLR1gFNwRzRqktuYyQGmpp01zN3gOSs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Thomas Bogendoerfer , linux-mips@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Phil Sutter , Florian Fainelli , Ralf Baechle , Daniel Walter , Sasha Levin Subject: [PATCH 5.15 533/913] MIPS: RB532: fix return value of __setup handler Date: Tue, 5 Apr 2022 09:26:35 +0200 Message-Id: <20220405070355.826391150@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 8755d57ba1ff910666572fab9e32890e8cc6ed3b ] __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 Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/rb532/devices.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 04684990e28e..b7f6f782d9a1 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c @@ -301,11 +301,9 @@ static int __init plat_setup_devices(void) static int __init setup_kmac(char *s) { printk(KERN_INFO "korina mac = %s\n", s); - if (!mac_pton(s, korina_dev0_data.mac)) { + if (!mac_pton(s, korina_dev0_data.mac)) printk(KERN_ERR "Invalid mac\n"); - return -EINVAL; - } - return 0; + return 1; } __setup("kmac=", setup_kmac); -- 2.34.1