Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1775991pxp; Mon, 7 Mar 2022 02:03:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWwJU3lhXXupMAKBVHY1xnNIlnw66YpFnXwb1+2LFzdd39/DyejM1CeggrQk23HR1CVFpE X-Received: by 2002:a17:906:3283:b0:6ce:78f9:fafd with SMTP id 3-20020a170906328300b006ce78f9fafdmr8521415ejw.534.1646647390833; Mon, 07 Mar 2022 02:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647390; cv=none; d=google.com; s=arc-20160816; b=xgbr31D526YettGZJFmmzLoGAt8l3aimBgePCU9Vx+w4ht1h50qMA+tqRJiqAeYNox C0igr/l/iK1Z94LzaUrNiUq5z8lutZfkn441vI76Egnr9HLZvpc+KncgHWaDemDuvG3b i4j0SdWFKqv1Ic91z+WihhFJT/Rm38xBSDl1svTsn37Euk48EEXRbmPZWCZI6apujzQ5 PRwCe79mhncSvLEtA3XJ3fs+WeXwBuxkbgTKISxiUsNAwRsistNVKuZt2cHmQ2pvxdmG oN4WHjRP/YHobU9tZOvFsC4kX2PeWsfMFGvEw3glrwseKR6GIuKFpDdXfljtZc3s+fvT GU1A== 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=y0qzMU5vo3i3fsapVlPyBf2Swli8bhqc2cRZ1G3eVDM=; b=W4d1mKmGIKK17sQTPqKXRqqkVWvFt5ZhThtIiuC3WTlIZ1tmVGWLOprCS8jMsm8UXd EVMJREtDM67UABbpLsj3Svr8kqmeyY1uOUkIdpbTWVV/67YT1eKMvkPRHBxpD8/vUVG1 cKj2p5jMM6HMZtJOZVCfHhmqiBkhyO4X7rU9HuKeameT0btAtbl2Dd4QSdJnSYuueSZD s7+0pmfvdpYn7equgvMBgdOudTDGhSnMlAEGo8Fh1ZV0Vo2bFXCDNLW4a0CnB1BFc+AV Z93MkWEy/b1fo48jlp8LF1jCGLMLxZGyZyrj7Fxo9LZt+23fkoB0ub6rq5Qdv6T4Aqu3 gRCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=udkNNWhV; 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 t23-20020a50d717000000b00415a3351f04si7676829edi.561.2022.03.07.02.02.47; Mon, 07 Mar 2022 02:03:10 -0800 (PST) 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=udkNNWhV; 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 S237026AbiCGJ0z (ORCPT + 99 others); Mon, 7 Mar 2022 04:26:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237321AbiCGJXo (ORCPT ); Mon, 7 Mar 2022 04:23:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A28AA35861; Mon, 7 Mar 2022 01:22:37 -0800 (PST) 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 4E772B810B2; Mon, 7 Mar 2022 09:22:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72116C340E9; Mon, 7 Mar 2022 09:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646644954; bh=AhXUlbjfx1RQm61Vv2Eqw9hgtDpyAwoe9JDwySpQJVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=udkNNWhVFcbSR/LBsl2ggoj1gRMYdD7bWt8119pQcqCRk5Lbz3QofdaTuvCBBMMQ/ Mji3fyUf+FwC2aqmtGgxvMqX2eWljgt5zYd2zwXKvyz2CzjF4t+bwpDh7tfAScnbPD VvcXzRlxWrWi7/9f+e18Zs+6OmqSk9AbBWTW2qG0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Igor Zhbanov , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org, patches@armlinux.org.uk, "Russell King (Oracle)" Subject: [PATCH 4.14 34/42] ARM: 9182/1: mmu: fix returns from early_param() and __setup() functions Date: Mon, 7 Mar 2022 10:19:08 +0100 Message-Id: <20220307091637.144590799@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091636.146155347@linuxfoundation.org> References: <20220307091636.146155347@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=-7.6 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 commit 7b83299e5b9385943a857d59e15cba270df20d7e upstream. early_param() handlers should return 0 on success. __setup() handlers should return 1 on success, i.e., the parameter has been handled. A return of 0 would cause the "option=value" string to be added to init's environment strings, polluting it. ../arch/arm/mm/mmu.c: In function 'test_early_cachepolicy': ../arch/arm/mm/mmu.c:215:1: error: no return statement in function returning non-void [-Werror=return-type] ../arch/arm/mm/mmu.c: In function 'test_noalign_setup': ../arch/arm/mm/mmu.c:221:1: error: no return statement in function returning non-void [-Werror=return-type] Fixes: b849a60e0903 ("ARM: make cr_alignment read-only #ifndef CONFIG_CPU_CP15") Signed-off-by: Randy Dunlap Reported-by: Igor Zhbanov Cc: Uwe Kleine-König Cc: linux-arm-kernel@lists.infradead.org Cc: patches@armlinux.org.uk Signed-off-by: Russell King (Oracle) Signed-off-by: Greg Kroah-Hartman --- arch/arm/mm/mmu.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -230,12 +230,14 @@ early_param("ecc", early_ecc); static int __init early_cachepolicy(char *p) { pr_warn("cachepolicy kernel parameter not supported without cp15\n"); + return 0; } early_param("cachepolicy", early_cachepolicy); static int __init noalign_setup(char *__unused) { pr_warn("noalign kernel parameter not supported without cp15\n"); + return 1; } __setup("noalign", noalign_setup);