Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp439765iog; Mon, 13 Jun 2022 06:03:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm1hiOJHJhi7wE9ak5e3O98L48fp9SSkmO854pD4YiI9UwP/+INxKdyW3H3XosNnxVY5o3 X-Received: by 2002:a17:906:64d1:b0:712:c0a:5671 with SMTP id p17-20020a17090664d100b007120c0a5671mr19033622ejn.494.1655125422303; Mon, 13 Jun 2022 06:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125422; cv=none; d=google.com; s=arc-20160816; b=iayxdM7+KdwSMosUo8Hm7ISreWIH3QZX2IwLr+pvLUrAG9gZnovSIEWxHm1eZEUebn Ge/JF4jYYB+FGtgWt/yY2pY1bXuIid6DrnPlNZYKz3rz9Z17VOAstHbfgAix5ajnOPgr Z6E+JgQacCluIw1HMZq91dxbEuK5Et7DPjQyJ1fx8KdahwPQ5YZFSASaNCEJLhOl2kJm wy0kqfmq4kT9ekaYHY3wI3B4R3qJA895eBozobTG/o5Zs92VZswp/Y0p2dEzb2idq8Md 7g6JKw+nbln05++z8FNsFe9HbePyN648BzOf2ZKryZWR4uqmFRayoWE9KVV7oJKW7T3u ADpw== 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=T146h/3iJpHdqUaTrbn6Kr3XS+2D8w0gG8/tRWX3Zcw=; b=eC0F+vrsK3nrFl7WkJPbjKf+WCI5mf5P0vtNJvxR3Hq6lOGekwqi4SnvvUxFOeAJaI vI7LAa8KaL8cAILS2IUYbvX8eS+30YqWiACQ+8Spy+JkJFF8SnMBcGofTPgjt4bk2gl1 wcRFsh4+xamcxeZ+xrg1bYd2YpBoJKLMUPb3mfDP6gv4pDi4HXlo/LVZQr8FYpQ3PHx9 2O/0FyQeM5Cl6hjYmWSMH4+z21pthvF309YTcQQ8pv4dypsyyIMh3YuNxciJvboP9ZO2 nU5jmyd3hNrVfvedS1mcXCq+MYm7T3+2ucJrLfNadn3pAmVvlAHwZU9tPTljZVEjrm1X DEkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LN+lNYhp; 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 g20-20020a50ee14000000b0042b303fea16si6573493eds.50.2022.06.13.06.03.14; Mon, 13 Jun 2022 06:03:42 -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=LN+lNYhp; 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 S1352606AbiFMLWf (ORCPT + 99 others); Mon, 13 Jun 2022 07:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351692AbiFMLQf (ORCPT ); Mon, 13 Jun 2022 07:16:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C30413F70; Mon, 13 Jun 2022 03:40:00 -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 D5FB1610A0; Mon, 13 Jun 2022 10:39:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA86BC3411E; Mon, 13 Jun 2022 10:39:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116799; bh=zeFraWsJc3yTSgQb3pzJ/B6qVY2pED3bey0qvc0sm3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LN+lNYhpCEG8hK85bOmQcvUSUx8TfyjtYjLEvJzN9DXftqNy8enn18lhNML39/VGT kZ321/QbuKClOXPqfFTIztF+ghei4Nle3al6jhU/DkQsumHDqdDwQCKFw9bRs+ueUH VHd1fvcUORz7XqTwcoiluTdGSl7vy7v6RLB4Ze3Y= 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 5.4 181/411] powerpc/4xx/cpm: Fix return value of __setup() handler Date: Mon, 13 Jun 2022 12:07:34 +0200 Message-Id: <20220613094934.087002905@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@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/platforms/4xx/cpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/4xx/cpm.c b/arch/powerpc/platforms/4xx/cpm.c index ae8b812c9202..2481e78c0423 100644 --- a/arch/powerpc/platforms/4xx/cpm.c +++ b/arch/powerpc/platforms/4xx/cpm.c @@ -327,6 +327,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