Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp444042iog; Mon, 13 Jun 2022 06:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxscy6JnUjfnYJAPmvpcQRGQ8UhViGY1hjFY/X8THFrrYDK9eeoypODEnn80yNInWbpZ5tu X-Received: by 2002:a05:6402:240e:b0:433:4642:f86a with SMTP id t14-20020a056402240e00b004334642f86amr21363282eda.313.1655125634872; Mon, 13 Jun 2022 06:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125634; cv=none; d=google.com; s=arc-20160816; b=hiXF7idULB0SzNT/32m4E4DvFxtN0adMdgr9SPtwVHsiJJTzVF4kd02ozKR3ODeZWn Ou4che0eTPxgtZaLgsjWQtkJIyPYNvO0PCBlf7pw2zrsKsXR9r6Kg7/HSQMArBZUJCEH qXC/jN8gNv8MFBASEytCAtmG9EW19+Id7N190RqZtzoYI4lHg+PKufMpPLfMFtJMhzgo KsphGdPi/zHXxnTjLPeQEJvpXFgRTMv6YE0yQYaXAmikTJzJpXFhyeYJYFeX+DJp4KkW x/WHB0Q05OP7toVfuLPupU4v4y8MuSlhDo3vGa0r9i/QesgncKvK3pm1ANDX1llw5vgK /CSg== 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=9z/OT8a099yyJB1+uWt3iBP1BU6HJ3xOFpgB/7IxpMs=; b=xu5fqG5bM8jPPqkPvacUDfm7W71GLk92wQswst3WyLeB7QX091IU60rh878ZV9TR2S np0dzXaiUD4coezd/bu5piz3RVm7W1h7OuuTjg6BO3SsCZ9k/ZooKaIPJmG/nzaI5R3J VZA4FMhrwPsrKjPJHX58KaDbmFRfDjnxrogxHXDXt5KnOm8RramB5HXc6cMbHqfpbBTW y9uPZUX7Ox+lExNXLzTbWOWPlnkpzM/3UX8CoUc//qd22BCyuzxwV8FP8+oupaicKtvW PF6H2Rluowfe8TOMxfS/eNdFTqel+hfFiEuSoXrDZBpBG4JUYNiPs2pm1hu9cCo0O905 PYSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="GU4/TE7m"; 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 o1-20020a056402438100b0042e28c72c52si10727175edc.593.2022.06.13.06.06.44; Mon, 13 Jun 2022 06:07:14 -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="GU4/TE7m"; 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 S242445AbiFMKUC (ORCPT + 99 others); Mon, 13 Jun 2022 06:20:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243025AbiFMKTA (ORCPT ); Mon, 13 Jun 2022 06:19:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16703A456; Mon, 13 Jun 2022 03:16:40 -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 A68AD60765; Mon, 13 Jun 2022 10:16:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2259C34114; Mon, 13 Jun 2022 10:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115399; bh=RGMaoHSaSAgW0z4PrrBBbhpVfQh+aAfcAb6IA9VvQ3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GU4/TE7mSDjw5sFHwZ8sGIQJs73kGrV7AV4ykbJqBsyZ4mrVYomUBdGvH+fpZEAw+ 2X0OWChWwEukxI3XEusWF2pqLzZe6F45P8mLxfBvjwFLUaZ5ypFmuo+JpcG79yxMkP DZ36p018XLa1RvTsK9U+/snOpaZflSEx6BAQOi/w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Igor Zhbanov , Randy Dunlap , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 070/167] powerpc/4xx/cpm: Fix return value of __setup() handler Date: Mon, 13 Jun 2022 12:09:04 +0200 Message-Id: <20220613094857.326994927@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094840.720778945@linuxfoundation.org> References: <20220613094840.720778945@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=-8.3 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 5bb99fd4090fe1acfdb90a97993fcda7f8f5a3d6 ] __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 cpm_powersave_off(). Fixes: d164f6d4f910 ("powerpc/4xx: Add suspend and idle support") Reported-by: Igor Zhbanov Signed-off-by: Randy Dunlap Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220502192941.20955-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- arch/powerpc/sysdev/ppc4xx_cpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/ppc4xx_cpm.c b/arch/powerpc/sysdev/ppc4xx_cpm.c index ba95adf81d8d..05047cf32dbb 100644 --- a/arch/powerpc/sysdev/ppc4xx_cpm.c +++ b/arch/powerpc/sysdev/ppc4xx_cpm.c @@ -341,6 +341,6 @@ late_initcall(cpm_init); static int __init cpm_powersave_off(char *arg) { cpm.powersave_off = 1; - return 0; + return 1; } __setup("powersave=off", cpm_powersave_off); -- 2.35.1