From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2749380FE3; Thu, 20 Aug 2026 15:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787239246; cv=none; b=E//xURvPcbcFQ9H32d94KeCT1klaWG8DVUPtREawsAroDw56pYvKjEOsFbIA+jzOq06JcJwEiCfZ6Xuk7TSG54m7GwLbYyXhcNxzgG7SHeIKTomOs9PoHQewekHjbbctAokUsewXfeG09nYPjw92y1b7RxVfY1HgRwkhaezc04E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787239246; c=relaxed/simple; bh=F2We1t842EVMN9/ic0rVIC7Q2Jwl9NFUi+tLYzDObNI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DpwyDKtqt669riJHQmtAJH8v2wfufakV3Ux1Kp7tZ+NhO33NisOk4KJMxfWKwei0WME3MFP+dSjWKfaIz5ExNvg+IK+BtEeBKhfmNFPvguxnoh4elM6qh7kMqE4pY+Ug8DrGpd/NGoJhGNg6tQCSYVtKdZJCbB0ZhY1+64pT5eY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cFI1apDC; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cFI1apDC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05FDC1F000E9; Thu, 20 Aug 2026 15:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787239245; bh=B7N8754Zead5E+QrEXNT6OVADUb++AfNRxSi+olhSPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cFI1apDCTqvKD9l3ygiGbtMCdXUAVzmrrrPT38gCq4ZkfPbFSfUf64R9a59Z2Ozsy sN4roDM99X+643+CQ1+0pOXbcLvcXZra0w32LfiKeUafbBhoJn+UTuzVFJbmzPsM2A VDlYo1U4AX/rKjFDWo/Ai+yDlokHC1X+3Kw63EHU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 6.18 199/217] m68k: Define NR_CPUS to 1 Date: Thu, 20 Aug 2026 16:56:07 +0200 Message-ID: <20260820145243.700465228@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820145237.531699751@linuxfoundation.org> References: <20260820145237.531699751@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Uwe Kleine-König [ Upstream commit 1fd495ef09eef96169a379a749c24b5e69974bb8 ] This fixes a Kconfig warning fs/erofs/Kconfig:137:warning: range is invalid which originates from EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS using NR_CPUS which up to now didn't exist for ARCH=m68k. All other architectures define this symbol, so fix the outlier. [geert] This also fixes: - CONFIG_EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS being set to the literal NR_CPUS instead of a number by automatic configs like "make allmodconfig" or "make olddefconfig", - An infinite loop in manual configs like "make oldconfig" when CONFIG_EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS is not present or has an invalid value in your existing .config. Fixes: c9b47e6b2311 ("erofs: cap LZMA stream pool size") Signed-off-by: Uwe Kleine-König Reviewed-by: Geert Uytterhoeven Link: https://patch.msgid.link/20260731094950.1988084-2-ukleinek@kernel.org Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- arch/m68k/Kconfig.cpu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu index c9a7e602d8a4d..83f46fd6b97cf 100644 --- a/arch/m68k/Kconfig.cpu +++ b/arch/m68k/Kconfig.cpu @@ -548,6 +548,10 @@ config CACHE_COPYBACK endchoice endif # HAVE_CACHE_CB +config NR_CPUS + int + default "1" + # Coldfire cores that do not have a data cache configured can do coherent DMA. config COLDFIRE_COHERENT_DMA bool -- 2.53.0