Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2919368pxb; Mon, 18 Apr 2022 11:03:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbi8lZcu7GKFi1UC8tFwLK2/XlilLcaOLLpJIgS/1Zh3ngB3IV8eB82c2bAQxHLp/mHB5K X-Received: by 2002:a17:906:9b8f:b0:6e0:6bcb:fc59 with SMTP id dd15-20020a1709069b8f00b006e06bcbfc59mr10420758ejc.624.1650304987134; Mon, 18 Apr 2022 11:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650304987; cv=none; d=google.com; s=arc-20160816; b=Z50mMV0kvxbB6cgyRDcm24RXYEZrk4OogWzxVX45zxD8/6LkLu2+fZcs3aKHOAE7hb Gxd18eWSfRy3m2T7ERkAsgjQ/LC9kKzAagUroINiR517wu+vSZQRMekUPzA3FkAjZhZb BzL0cR58RwMPb1UMxdAObQdpuTrCi9v6j6+4ah1IEM2ZMnCs9J3bFDICVaT7UunKOZ1+ 6AdHfaSi4tJY3TGjkzDIZFz6NSSnaZI1DPc4/xEBttj/bZxxg/7aB0+lbMRBvpbzabdx noL0nTNqQShjRS/Vw7/cKOzVCxZXOiteATHN8N23tqX7lchyZWs7ILs4fKt6ST0qJB6w GBpg== 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=hWw6QokVAiEZVXJDPxGIWBduWC7GN+e9JIW/72oMnnE=; b=wyq32QguhhEO9x3m8fLIArk1noi1B2EPBO84ZuYmxVrZcWsrtZfWKV8FXAfw7E/P/3 4MbOgdOu6d/aaMcQiITdeJbVMn5FHkwyC/gNVhE2M3fDGJ5JOCJKl/4V0kny0Xs/gK7M EY4q6iRMV2Mj+kPwzvRKtv9v1WL4lwGwhz5cuHPOUgaLiI70AkkwOxQju3UrJogD4LfX fhXj7Ma543ipvM798dV2Uo+lrq0/CrzcgYMArUGYSn6zoEgHT4epnKJSCO2o9vTcE8Se KByeOOmFS+RzpMaLRklpauAuNLc7lF0kOnDAtFKKLe+sfjzhswFaNrmJVgaSgkzvdvwe aLCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=czbS4B74; 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 n21-20020a1709067b5500b006e83fe14ac1si6811890ejo.554.2022.04.18.11.02.42; Mon, 18 Apr 2022 11:03:07 -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=czbS4B74; 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 S245096AbiDRN6d (ORCPT + 99 others); Mon, 18 Apr 2022 09:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242112AbiDRNca (ORCPT ); Mon, 18 Apr 2022 09:32:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D963220194; Mon, 18 Apr 2022 05:57:47 -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 50912B80EC0; Mon, 18 Apr 2022 12:57:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78889C385A7; Mon, 18 Apr 2022 12:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286665; bh=ic7hdMjA7r9NBmROUJ0WQzteNOVUSZNfdmssxupQJ10=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=czbS4B748FaVfRCePAc7dDPc0TBPHZ/gCgB9wDxNMFZti9VJBZLReEfuLWw3TIEXb ZVulTQ49ZzdDxKWHFAkMXcoPrm6HnyKZXSbOouFXV4gw3WgUTUqH8UcerC6PD1ZzKD 7V4q//3qZJkf/BNXUtDaZjg3EYtV3+G1/wmo6fco= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Ben Dooks , Krzysztof Kozlowski , Alim Akhtar , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, patches@armlinux.org.uk, "Russell King (Oracle)" , Sasha Levin Subject: [PATCH 4.14 205/284] ARM: 9187/1: JIVE: fix return value of __setup handler Date: Mon, 18 Apr 2022 14:13:06 +0200 Message-Id: <20220418121217.552143742@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 8b2360c7157b462c4870d447d1e65d30ef31f9aa ] __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 jive_mtdset(). Fixes: 9db829f485c5 ("[ARM] JIVE: Initial machine support for Logitech Jive") Signed-off-by: Randy Dunlap Cc: Ben Dooks Cc: Krzysztof Kozlowski Cc: Alim Akhtar Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: patches@armlinux.org.uk Signed-off-by: Russell King (Oracle) Signed-off-by: Sasha Levin --- arch/arm/mach-s3c24xx/mach-jive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-jive.c b/arch/arm/mach-s3c24xx/mach-jive.c index 17821976f769..5de514940a9c 100644 --- a/arch/arm/mach-s3c24xx/mach-jive.c +++ b/arch/arm/mach-s3c24xx/mach-jive.c @@ -241,11 +241,11 @@ static int __init jive_mtdset(char *options) unsigned long set; if (options == NULL || options[0] == '\0') - return 0; + return 1; if (kstrtoul(options, 10, &set)) { printk(KERN_ERR "failed to parse mtdset=%s\n", options); - return 0; + return 1; } switch (set) { @@ -260,7 +260,7 @@ static int __init jive_mtdset(char *options) "using default.", set); } - return 0; + return 1; } /* parse the mtdset= option given to the kernel command line */ -- 2.35.1