Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp592577iog; Mon, 13 Jun 2022 08:46:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vksHl2ROygSf01n8un1odXXaybdW3Oboj1yXaoNw+fsIE2s5bUeedXsaN0CgK5xpSks9op X-Received: by 2002:a17:902:b683:b0:163:4ef2:3c40 with SMTP id c3-20020a170902b68300b001634ef23c40mr246078pls.123.1655135166658; Mon, 13 Jun 2022 08:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655135166; cv=none; d=google.com; s=arc-20160816; b=ONMKBDla1IuOi88U7eqTQqDev5zwxW3VN6KNAjsBax06eUVe/VGyhqoxtIKrKokZmT x5+J5OatU/7kqHqHtySWvTFc1zs86zLC4FsqqyflXGKPa4l58P9kY8wusSGWToZPvTFr /4/LsUOu7LzD2ybZ+npguj8amk9CALK+wSJD+E5FgsZ4qUKqtLuEhOHXJyXt9gFfFKLs +sZ5IUJUlryGeDahH28KPCKNIl0Za5/nntqwUwj0/BB0xutN0RKzNgOtg5k96/1RE5aL 7edPbsK6G1+/1MHU/CZp+PiRKXLfkKN1faUPFG+d4BRA691Vjd/4OlshK6EtEgJ1X6du EsUw== 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=Q5lMYA9zMh8YN5L0D7PCQ0uPR4mdUEhtbeGkPA2Jf2RYlPemPOYEaHm/XCezmnUhb4 tdHBu28JhALlhrlYFEdyr2Cybi46oWji9XgoTUzZJ0bbgKMITwfWKkzJJIp+MeNVgsaJ T4XAAdA5TSqs3dtnt4tLES/ylwUMHhF86ZEhl0jPL5XwO6o8vkog7cpRBZPTxSEX7urb g71bgmdc9ObeMhCfzkonDlPJ657F+WBRCQczjv3315W6lYDQ4E+4rFQkPzBSPzKyLFh0 xj6aIn8h8S5UdhAtWKczX7l05PP+I6Td9H8yiYG1CCWYdF038YGuEbqdXfoZW2Rc1R1D cusA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GWlUjnUq; 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 x3-20020a170902ec8300b00168a4ef6a67si11980266plg.17.2022.06.13.08.45.53; Mon, 13 Jun 2022 08:46:06 -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=GWlUjnUq; 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 S242508AbiFMKUF (ORCPT + 99 others); Mon, 13 Jun 2022 06:20:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243024AbiFMKTA (ORCPT ); Mon, 13 Jun 2022 06:19:00 -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 DE9BE20F65; Mon, 13 Jun 2022 03:16:38 -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 9B1F9B80E5E; Mon, 13 Jun 2022 10:16:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2478C34114; Mon, 13 Jun 2022 10:16:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115396; bh=36Zrg68NAiHkWfHvcxxtjEKPT6SjuU9L+QXdBxVKI2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GWlUjnUq4PIO9w9sQbN/YvJSvYF34wzGAevOWAL1WiPKmOXwLIsW4SCFfdQfjAADM 5yYp4DQVcHD4Y1xB2/XKbEwq9qgG4FH/dOgMT2z45TEOsUvlwb8y4DlUeG16+PkgbC vmywfu7FUsO1WdErWBnhmO3sUccK8F9SQ2bwuYSk= 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.9 069/167] powerpc/idle: Fix return value of __setup() handler Date: Mon, 13 Jun 2022 12:09:03 +0200 Message-Id: <20220613094857.090154454@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094840.720778945@linuxfoundation.org> References: <20220613094840.720778945@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