Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp634752pxb; Tue, 5 Apr 2022 16:44:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/3FQxWx1sWvnksI3AuaKYQIinrB457BXDiO4PddpPULOxzAV3XhSpqoAElxXoTzCw4pEU X-Received: by 2002:a65:4c4d:0:b0:399:4c5a:1dbf with SMTP id l13-20020a654c4d000000b003994c5a1dbfmr4813909pgr.121.1649202259305; Tue, 05 Apr 2022 16:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649202259; cv=none; d=google.com; s=arc-20160816; b=mzLEaT/570tOYKyYZ7dpxH1loggYwlxDNEqFHNAUhKcdm88KRJirBYgjG4kCf5ZVOP jtsCwaqdviJfCnGrateh/R5oyQLjxK7jubyELFPTfgqqwdt+LiTeC2Q21cJ4fiozUqu6 5A0dAejWM+zXFJ3M/oKbbXzby+Gg6mDMNWbiFQF/o4m+nDPEPcQ8W/r6eE8e8tZwZ57h Xj7Uy5IwEMShCIrarF4XCpxZ9cK8NP/mhn2Cfbd5cKhwCzHJSABuN1f551dMSDTOJhTd qgsAL52L863OBd2JpFtVWOIhofjkt3Xm9OrLNb+lh0KVMF2tgLM3syubeDBUsdHpcZr1 mC6Q== 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=drIkI338uIhKlQcRo3pvEo/1nzC4F2FJqO5ttg2CW2/2djDS6ALs6RTPymzJc+lU+d 8MpN7nLvUzYkIDwarsS35Qrpjh4+QPQB09iGcKPkZGZ4MVNJ2rFoE+FkAnoX7FdbQAvO 2Lc5khXvndXLrYQcV9rZLXJneNf40JBD4H8xVVjHwVk6THv2lGMMwD3UdG6w67ygGEkd bEYsQfAr8PogBOvx8bgnfzF+XDNz9DbGQJ+Np4nVnO9HFobozitU2bP4/wJPg0Ag2I+X +7diakHzpYKnOyBTImJrGSptEExutHZDydF6SaKSExufG5HL0yodB8gfbt7MZqEw/xTZ e8qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bXKvCzJ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t8-20020a056a0021c800b004fa8f4f2d6dsi15476896pfj.144.2022.04.05.16.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:44:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bXKvCzJ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 B1D1224C; Tue, 5 Apr 2022 16:30:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357469AbiDEMvO (ORCPT + 99 others); Tue, 5 Apr 2022 08:51:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244526AbiDEJKD (ORCPT ); Tue, 5 Apr 2022 05:10:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CF4B28E0A; Tue, 5 Apr 2022 01:59:35 -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 910B461500; Tue, 5 Apr 2022 08:59:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78B33C385A0; Tue, 5 Apr 2022 08:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149169; bh=KYXEhnswZ9GlBv57VQWGUAbK4dX9BNkHI4d1xHGhTd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bXKvCzJ9zcJiW8EaThT0uMwsWFeDUiCkfPzlzYD7NNcwgSnT0MJ9N+yzM6mNyKtg2 /LEm53gm7tceElyms4BibKwqzGlGWFR4ocUZGaL1Ow0x+zkhLpu66F+kUZmd/B69FS PQbwp6OBaBELUAPx7rmh54WfPG5XHfQpT3rgHIjs= 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.16 0592/1017] MIPS: RB532: fix return value of __setup handler Date: Tue, 5 Apr 2022 09:25:05 +0200 Message-Id: <20220405070411.851065311@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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