Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp441446iog; Mon, 13 Jun 2022 06:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx89x0tPodP7r9Q1mGKhkb8N7JgV3IymukhSay3YSKdLGOSnZbB6bFJ3AnhjIhK+X3+ykQU X-Received: by 2002:a05:6402:51d4:b0:42f:b38d:dbb9 with SMTP id r20-20020a05640251d400b0042fb38ddbb9mr54303778edd.255.1655125411059; Mon, 13 Jun 2022 06:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125411; cv=none; d=google.com; s=arc-20160816; b=YLxb8JUAy5zfbgHXLntG5unHwRbRjJWWLmH9ERAfK2OTnB4MVNvPsrpDNBrYL9wo/x JtCkRK/AK3GoLqJER3KSaqzJ5M2WP9PvWBNv/w2k1/CUkGz2kD2pOssRJSTuX3vCTT5W 88+4h040rVfuN9GPdBnV/k3Ud3yECb5OIY8kwL70CYZ4rumLfzigbazqt6IU9gXqHJ2z vKIiMTM8pdMW9+2WJEXeDnq3s4sN66trMkeNoK1Fs+p3MzeTPXGtoocRKuSD34s0YC0i p+n8es/brB9YOZOUeRYrUVzHEdAxAUbopRir4sk1CAAw9BaCz69ypUcFWUkWlwjN1IAW gjRA== 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=kYwldLUHdQqQxvc/DJp4IlLznGOsQSogLgYQrI3Tjcs=; b=DnP1Y0STXu0vqJbfj+9qg/rMVFDuzt96UuMSAuL1Q6GaSLcvhp1ilEpgxvJQUmm3F2 UxeoIdNlJcLbdD/Q7kTBiAGB/jKxC05mCG7IhlupSNsZdvbt8WG17VyehzZ3e095zRV3 sPLF2ts2BolxN8b6cdzwJ07J514iTlrWHY2x+wIIseNn8hlZ4hl7+hhTUeiEID26jfXZ S4jpRCixnF33GN69lEJy1Jje76vydwRbeXcTihrw3aL7uvINu6dLev8HSyXUeSE5n5bI pxnOv4I1oId0YNeJrRSpDhMvVm2ZvnLK6zg5PX3eb5vEjyCWie1BDFyIRWdci6uOc8qD HFPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dMpbKHGf; 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 ga8-20020a170906b84800b006ff2f915b77si6945883ejb.578.2022.06.13.06.03.01; Mon, 13 Jun 2022 06:03:31 -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=dMpbKHGf; 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 S1347473AbiFMKwL (ORCPT + 99 others); Mon, 13 Jun 2022 06:52:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344021AbiFMKqu (ORCPT ); Mon, 13 Jun 2022 06:46:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A0EE2BB3F; Mon, 13 Jun 2022 03:25:54 -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 D82C3B80E92; Mon, 13 Jun 2022 10:25:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28619C34114; Mon, 13 Jun 2022 10:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115951; bh=lUTUaU7NK6xPI/fCw6nR7Vbxfy1nWrm8QQoc/qCEKm0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dMpbKHGfN1nBZLtofpjPd+3cbKjaJGPXw7a1arG4YZd2CRP4SjWk/05RoyF+Bm+iI f26DZyX8ebffWmjS0EY0r5N+GfRS4E+b2CsuDPBkdBZZVwqz0mjd6SlET6+OfmK1Ri F2cVHzATNzEHFBBW+ta+frThCq72a4ahHs5E72Ns= 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 091/218] powerpc/4xx/cpm: Fix return value of __setup() handler Date: Mon, 13 Jun 2022 12:09:09 +0200 Message-Id: <20220613094923.300801202@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 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 53ff81ca8a3c..6400ae376216 100644 --- a/arch/powerpc/platforms/4xx/cpm.c +++ b/arch/powerpc/platforms/4xx/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