Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2207431iof; Tue, 7 Jun 2022 23:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaapKb2XAYHXLrwGUpgy7YrDCDkk+6Pzp1v1PU0QGukDO68mXFhomCVfBLV5LHR4A0Gvbs X-Received: by 2002:a17:90b:390c:b0:1e2:d499:8899 with SMTP id ob12-20020a17090b390c00b001e2d4998899mr57624954pjb.161.1654668795405; Tue, 07 Jun 2022 23:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668795; cv=none; d=google.com; s=arc-20160816; b=u4YkZXKPypsdmzmVuyCt2VJGSlgQh5v6wDurE4YgwQ33Xra0pjM/vI9QbFtiz5h4Ly jHf+D1SrkxP+0u1kD7loKoYxCTfN3+MdemraQeYXIhaPyY13MPxb6FxLW3s2RHLq/0Zx 2BRZotZUjXjauClhNbybGRRjOSe41hlh4OTSl6bbLgXSE2B83zNB2VDWrJwG6p0c6CrW HYsyR1ISyUyzBSBlkereun0RP67YIm6VTtAjbejwsAEw+w3fTvYf9aqqo4cnAoWBtIWR Ql595/3iGNh6FM2cAT6iAu/d5UXl+QKZNunD1sbZqONZV5GgqXbHssPtZv1Ub6lWYQW9 UytA== 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=2QdQVij0Ytd2TXr7QArm+DYlgdG0sjMwtwZjq1HB2sQ=; b=oqu1H0xpSwIMkU9EBmG+h3Aw4p1lJIJka/YmHTlc0gn8lOFaQlxHsTyVMsfnFvTqrV btK3H7Y62zDa6bPM9D/wlPQBptXcYtSMAwmkzls2If/3XEV/pANqJNP2rLj8e941g2HS Dm+xthuvlLmgYdxt+iWP2czhvDyJues9tA8NSbcV27/rKmbGj5rbhD84/5tn0jiX4vsg YszxRFWSu8qovtlDwow9w2gfUrNJsVt1zg8c6hTU9TEKw7b9Gj6rEUNmThvHiypiGCle tRL+mULNvOei9ZnS+TRgha029K4QB0YcIu40fz+YYo68TkMggNDJFnRjSg4BKJtLU1yu T1oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GB2eYzEt; 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 i12-20020a17090332cc00b0016511314bb7si32013963plr.151.2022.06.07.23.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:13:15 -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=GB2eYzEt; 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 D4B8C2C27B2; Tue, 7 Jun 2022 22:35:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391171AbiFHBwZ (ORCPT + 99 others); Tue, 7 Jun 2022 21:52:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384359AbiFGVy3 (ORCPT ); Tue, 7 Jun 2022 17:54:29 -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 6A8B224ACAA; 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 dfw.source.kernel.org (Postfix) with ESMTPS id A1932618DF; Tue, 7 Jun 2022 19:13:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0DDEC385A2; Tue, 7 Jun 2022 19:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629208; bh=4nRfRgqCNmfZw/yGgV5GDkWCujYWgz6MdPLZdP8DLTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GB2eYzEtyjiYj+wVB/22uzcYg6sAqycdlRlu/17bWvrbe+8DO7gI9veRl+Mt03T/j 4NlZtLjnW27qtefKqAMFG9LnPVCdOQDTcBC6AkyHJvM6U1x+ml0r5yOH9VB4ui2Pg5 Upiek8VZMO1vkdRrU3e6RUkacdYabhsfweAbto4s= 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 608/879] powerpc/4xx/cpm: Fix return value of __setup() handler Date: Tue, 7 Jun 2022 19:02:06 +0200 Message-Id: <20220607165020.497941831@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 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 2571841625a2..1d3bc35ee1a7 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