Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp687164pxb; Tue, 5 Apr 2022 18:48:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb2jZ5ioTGhVWITGaeDqtE5flLbZolDp4PX7VzgKCAPd/g/ZHYQcxeRTRa9p2NC0yHIISq X-Received: by 2002:a17:90a:3842:b0:1c6:d666:b01 with SMTP id l2-20020a17090a384200b001c6d6660b01mr7275912pjf.161.1649209720947; Tue, 05 Apr 2022 18:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209720; cv=none; d=google.com; s=arc-20160816; b=nMr7DFwWUzhw/ZCZHWS3fS1u2OakaGfFUPhx4TuyVQuOoYg79eWCFkdN+4QB1/jr4Q ZwVokHUtvh233Np7W2qJouWOwrTzE+Q6j3m++EkSYDylBkHog06mKVRyRMSHyiJOsgrB GD/j4hC/pbu5NgWYS5FKGqBE7Ct9MnD6rNRitgJGtb17W3wrRBFZRAi6n/Sj4ZgoTacG yKDZAzq1/Fre4lUqRm6NYBnr+6LvAAnfj7aILOfC3KRgppPgeuq2hL2w/2ATK0yFoWEU QIKwZrXpzlxlr5de/U3tcqeRI1o0SIGbZbMDU42ywHL24/C5Ijd/WgaZJNbg335xw2ad ezeQ== 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=FqsqerhN8gD4WcskxxURPHKL5Ej71U+ifEgo7kKgJlY=; b=VTwgXzoHwCsaqyz408xpLUGel0D6XSg5L/vt2VtW1JNSGDzu2qV4r4X7e2m8qB0oE6 VhDSZhsklHI9X/+Q3nVMYZbE1HMStmtZAvPYtxlAwmjmMyrozwOxTVNh1QcLD4ZtUUbO WJhAKuDfHjS0xslaAuK7Z7nShiISjKnUhPJ06zj7irq38NRCYQRq35fJeEs8CAgl3Ca7 sAbAmUXBMpopEOQ86PTcP9Mn+zmcdHRksinkZZnTuikl0ln108C29saAAeV1PO18263/ R1VUMO11W3IcvQeYg40PAUjQZilKk0RWI90VxT+riRVwCOMl9J3cGtvnghn1X6AoyOak 3i7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zLzqoQk2; 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 k17-20020aa788d1000000b004fb2ca5f6fcsi14763360pff.26.2022.04.05.18.48.26; Tue, 05 Apr 2022 18:48:40 -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=zLzqoQk2; 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 S240770AbiDEN6F (ORCPT + 99 others); Tue, 5 Apr 2022 09:58:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347788AbiDEJ2S (ORCPT ); Tue, 5 Apr 2022 05:28:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C74D1DFDF7; Tue, 5 Apr 2022 02:15:48 -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 5A78D6164E; Tue, 5 Apr 2022 09:15:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30681C385A0; Tue, 5 Apr 2022 09:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150147; bh=oHWJVGZerJimRvn7YMHPGhT+6D1L6vxaa4SWJ8iflK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zLzqoQk2OnyTEyTAje164qzVVuPoq6/fUftuSZwWwHSctSUUyFqjAmo2NRzhvvHyP VuT4JN9V/XgSaPBZ3XMjDobej3r/QMbgWe9qVIQ2hZ2C6w9wbnDl1c3zR/ke3rewHr tigkStYTWDfBIcO6uwgbarFTSAiUtN5fUtkWXhEM= 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)" Subject: [PATCH 5.16 0972/1017] ARM: 9187/1: JIVE: fix return value of __setup handler Date: Tue, 5 Apr 2022 09:31:25 +0200 Message-Id: <20220405070423.057803889@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=-7.1 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 commit 8b2360c7157b462c4870d447d1e65d30ef31f9aa upstream. __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: Greg Kroah-Hartman --- arch/arm/mach-s3c/mach-jive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/arm/mach-s3c/mach-jive.c +++ b/arch/arm/mach-s3c/mach-jive.c @@ -236,11 +236,11 @@ static int __init jive_mtdset(char *opti 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) { @@ -255,7 +255,7 @@ static int __init jive_mtdset(char *opti "using default.", set); } - return 0; + return 1; } /* parse the mtdset= option given to the kernel command line */