Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2193955iof; Tue, 7 Jun 2022 22:48:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAUQToEKOo/hRXgSKRQG4833pp1h/rMiMmJc5eN5T0TJQjYmslO7fif6O1F9P5lYCKfcrn X-Received: by 2002:a17:90b:3c6:b0:1e2:e9fc:4e79 with SMTP id go6-20020a17090b03c600b001e2e9fc4e79mr55983767pjb.192.1654667293755; Tue, 07 Jun 2022 22:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667293; cv=none; d=google.com; s=arc-20160816; b=xMSlwHpvDLR37ZBBAfQQ7Os4nGEk5GaDt5CI35Z8BT1sr/GJqeTJ9ftwDGC/W4h2vl 4fEKe+oOQJg6JbkVx0Jbf5fIObX6vIk1ZB2Xy7rSKAJXy7jLdja5pvcSiwOIilRcrimO JbCsRg6baWGDPPU8GP14qOyWomDa6WWEVfFb+MhIs4B895tyndOCzWZ3rBJ/4hrn+lxt /hmQWEvUnTxSPZ91zyVf7RTHxEac0CCBqC4D8ee6qF1gzUCe3VmS6qxgXViiB1Utbgs6 JomhUPwrVeu7RpuybIRA5vVSCv1Qt+THAGw/36rS68TZWDiK+j7L6AnYWt4ioyWqFtI2 mmfQ== 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=Bw2UpbCpnfC7N1UK81RhFq4bZu041n6+jeHFZjXwcsU=; b=ia0/b6Ja/gVd5m1Wm0/1a1xne8lsNkQzOjrXfCZ0oUlJlprLX5p6Y5Ribo4jjQPJd6 C9zGbLiZmwghjOv4NUTnHskrGn4cdQHu67NIFQxplNZGnHkjtmXCawxrUprmgp9wjVZ8 A8kmo8kTx7uRNsjD/RDNYHewxYsU92ShtJRZ/W2JK1uOSA/qhl/mHY0K/hxb135grrDL sWyei1FAWyRee78iPu5vseXUW6siWKl8tzWDSYXgCtsWmxVe48Di3N9/zxfLMBHYnmiy r5jub1katMeoaYVYTVnLnvhhPC5QONYoT0KqI/88M8Q1SYYOOF85g3zpBtJrgNK5Ltrk bMrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hKn97rOc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w23-20020a1709027b9700b00155d894798fsi25729995pll.362.2022.06.07.22.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:48:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hKn97rOc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25C644A361A; Tue, 7 Jun 2022 22:14:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390501AbiFHAgh (ORCPT + 99 others); Tue, 7 Jun 2022 20:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384377AbiFGVyb (ORCPT ); Tue, 7 Jun 2022 17:54:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AFE224ACAE; Tue, 7 Jun 2022 12:13:28 -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 8A824B8237B; Tue, 7 Jun 2022 19:13:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02177C385A2; Tue, 7 Jun 2022 19:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629205; bh=rErfl5eEDB3p0z9t/ZqOeXDL0w1kyG5P6kY7CDdLFXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hKn97rOcJWRY+c5AeznycFpd6Zk4YVeHoDVdosZRQS7qqCIKL6cvflnIH98c9yWwf Nfhb1IPdpJplEmm3oWorRnYRbn5AThMPeRgQT6m2IpTLTMj5Xrq54H5Q7WzIJ+KSvM gugBtaAPwzBO2Cu9tn2Bvs15KE/N6BHGYhoX0T7c= 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.18 607/879] powerpc/idle: Fix return value of __setup() handler Date: Tue, 7 Jun 2022 19:02:05 +0200 Message-Id: <20220607165020.469487811@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4ad79eb638c6..77cd4c5a2d63 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c @@ -37,7 +37,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