Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp576089iog; Mon, 13 Jun 2022 08:26:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygjOfF4Wb+X+sc+rdWQw65lysy6zJrg5duKMNazDQxvXEWfco7ULbt5wI+0zGqgcCpon+d X-Received: by 2002:a17:906:51d0:b0:6ff:2415:fc18 with SMTP id v16-20020a17090651d000b006ff2415fc18mr368833ejk.94.1655133984881; Mon, 13 Jun 2022 08:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655133984; cv=none; d=google.com; s=arc-20160816; b=V3J7bjINEEZz6sFeuhO6h3aU1+SBIwGSZKVN6SOXdTD3h5ZEfzrsbGA28Z4fEicLfL veo3Bgm3zkazQdOnyQrnBr3rOROPewquVzLA4G3yIoTKvYVf+SsiFJYMyZCUuNVCHCz5 eSu1ri8VwUsMpEsyvBCqAOQWLJi3LDxITAoTFN/XR+qG2jrDn4GRs92ppJFtEduN7faA YnEUw4Zj7sOJcgIlw1fYQVJJqeKuQt+lQlmCNiLlwyQZE4ymqAr1YS3V8fgn/kTVKcD0 9WUR/lIGbQ373i9zW/S3QfMT4xdjxXdJjem9fcJQ+6NmsTVjWpRzvM7wUeiQqOciTnNP Seog== 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=oCI81DnAPIxv3E9tVxNyb8PB3/X1ojLDZ7VngVIeuYU=; b=h3hhIoEenLMTNR6AmKIhw77focJtFlkMILyUYW/gGC6n4qFNdYOBLdFPDzW8r/bN4C N+whXhGKLmghxw6Gi/TsVIu4MkiR7dq7qcm8XLwJe0pokQ4Ce3bGDaSPA8SFrbYfRw85 oSq2I2MY3r5DSzHru3cshqswW5NbLNkkJLoxJoC9bjP5weILm4M0o1lRIDuMRyOnRY2+ KwYIAVbBUwGYnOCQGK+8vRWHjhUeu8sNEsrsldihu2rVNZPP8k64dUwQEBe34mxSeCnk c8a6ZHUHTmLmf2lQ71Za0lmixL2YrGDWOygUWRQbIwY9LH3XJzz5WzRlWMoJzEx6wpaz WGqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="iOt/t6VR"; 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 y23-20020a170906519700b007156bee9755si6707990ejk.917.2022.06.13.08.25.59; Mon, 13 Jun 2022 08:26:24 -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="iOt/t6VR"; 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 S1348134AbiFMKtK (ORCPT + 99 others); Mon, 13 Jun 2022 06:49:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245124AbiFMKpf (ORCPT ); Mon, 13 Jun 2022 06:45:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F10272BB00; Mon, 13 Jun 2022 03:25:44 -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 D9AE860F0B; Mon, 13 Jun 2022 10:25:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7765C3411F; Mon, 13 Jun 2022 10:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115943; bh=36Zrg68NAiHkWfHvcxxtjEKPT6SjuU9L+QXdBxVKI2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iOt/t6VR1eD6REegm/b1Ehmb3C2dkFH/M3jibeQC+ULeU0szPLFCptlEc2Zo34P88 0JgdgZI6U7Acj3oKxlVHVAYdSJ8MauvdHDvxigtsR6kqiJZT5aS/hc/+uo3Sv0hNgz zn3XiDMAUm7Naq7L3j7/ROLIhK2CkIcZ2Fza302U= 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.14 090/218] powerpc/idle: Fix return value of __setup() handler Date: Mon, 13 Jun 2022 12:09:08 +0200 Message-Id: <20220613094923.268682066@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094908.257446132@linuxfoundation.org> References: <20220613094908.257446132@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 b793a01000122d2bd133ba451a76cc135b5e162c ] __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 powersave_off(). Fixes: 302eca184fb8 ("[POWERPC] cell: use ppc_md->power_save instead of cbe_idle_loop") Reported-by: Igor Zhbanov Signed-off-by: Randy Dunlap Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220502192925.19954-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- arch/powerpc/kernel/idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index d7216c9abda1..ca79aacfeda2 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c @@ -41,7 +41,7 @@ static int __init powersave_off(char *arg) { ppc_md.power_save = NULL; cpuidle_disable = IDLE_POWERSAVE_OFF; - return 0; + return 1; } __setup("powersave=off", powersave_off); -- 2.35.1