Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3659577pxb; Tue, 19 Apr 2022 07:26:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+Sz2eTheXwir01Ox3z3VpztXSxnxmarppCQJwrPcHfBlcftFFfU73dBCFEX5OAioIIBAB X-Received: by 2002:a05:6402:50cb:b0:423:d7a8:719e with SMTP id h11-20020a05640250cb00b00423d7a8719emr14754910edb.37.1650378380930; Tue, 19 Apr 2022 07:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650378380; cv=none; d=google.com; s=arc-20160816; b=j5WQtya4XPdlAPBW+vLxeSdgrAVzBr4Y1zZArVhwjWdesGhbFM6qzPL2yAxHSkN5tq 9nvNzwJ996OCSsRK9hOj3wtyXSf8Q1ib7NhSE5y+9DRX4yYixVYrs2W6xBMOCW+JTDQe RsPC11JX1vtfPOABCXnDVfFnftMGnCCV0hvcV6CE6f7FyBnYVAw0fgm0m9fztm6R+s/N awTcD52ypQ9TFkYM35gXcTpQDTR4pfxAWJFpcSvRwjJvFmu9ZiQiQD7FpAFcisNTd+ez Uwoujbom4EGpK3qAIbeTYuANFqWDilCk/ZE4l2Nm6/S4w3IBNdRPGLIrxfQS4aSSVyp/ qVgw== 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=3uUHQdhxXp+NAzChYGalzHYMMuVj2cdCZTZ5TCSkbJU=; b=VJW2S4DG3qGzZqA4oSNhjhGEMZXlR9ldHtKcmlMri+HSst3S5GfCRyBSDKy7zlH0DS 3Dt+gIoEKUgq+O+cP/fjxYTwsoicmLHh5AKg4ByQcD8h5GdY35zG05t1PsOREYeTK0P0 8PDxJHds29Ma8mBCqCAR+8eBl6pkO54wyPmRWWqX+lE1m3nTEq68GjfF/TZj8h0uymmd Or+6cUp6WOUXhVF4E6H2fYfSvbARztXZX9PHXOeVrzrIpvP00EF1Gr1mzNh2QZZn6uM8 Br9SHV5hnhcNM1t1RH1nDHLgNtILHrp3iVw/KMTJ+MJ4RNZ47lWusZ6CiPSG9dY1pSqK nA/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L7eTaX2M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a170906944e00b006e7f908e9d6si9336718ejx.615.2022.04.19.07.25.56; Tue, 19 Apr 2022 07:26:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L7eTaX2M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240748AbiDRNtX (ORCPT + 99 others); Mon, 18 Apr 2022 09:49:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243248AbiDRN2y (ORCPT ); Mon, 18 Apr 2022 09:28:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A71B3EF21; Mon, 18 Apr 2022 05:53:28 -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 ams.source.kernel.org (Postfix) with ESMTPS id BCB25B80EC4; Mon, 18 Apr 2022 12:53:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5DF7C385A7; Mon, 18 Apr 2022 12:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286405; bh=DcPWKimP2nKFdM65JXj5+qicVGDcOZTEpLHjeMZqV/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L7eTaX2M3t899zZy+RTlcnp2wD1wUqmLBDmZoBRhPAwDIHM7vsk5U2nlAT5Ortliq WkGHq7HYW4YEXk4wka4fIqgFWI122VIqX0nK+v6Zs5EvuhHnAxGA8BEDciPaAnCvRR G6srAtb1lHPC6VLG7VWwuayfMVwfY9tJLwX0ztOE= 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 4.14 122/284] MIPS: RB532: fix return value of __setup handler Date: Mon, 18 Apr 2022 14:11:43 +0200 Message-Id: <20220418121214.611944116@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 32ea3e6731d6..ea500873f023 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c @@ -313,11 +313,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