From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796316171; b=nszvrU+a4mMZkwNpDVTxnQckUx+c+6Pn4oqqOq6HIuFt97oRR/9l8Om1U7B5Fi9cmAr2 3PTHdah8R/uGIcWsTEe6XGAlMMuogwTJ/589MQ+n2KTEvpZR4GrpwgOsN5gBWpM+ZSk6B az6beXlozET9fwCc/YaCaVjEzhniyxZP/wzuy1dFPY72NFWnH924KVzWKQNS+5gjIMRZR t8z0Duxu5SeGQ1Oj28sQ5DK3rwGraBfyI9YiUw13zRGD76m6tFnYPGqSuPFHbMaDVOBEb C0p8hM7b7xKg4W6ArI/riXiNYUdcYtJHvdopI9SDsykYfSkm1z4Ul2Iv9Bcj9hz0ssA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796316171; h=Received:DKIM-Signature:Received:From:Date:MIME-Version:Content-Type: Content-Transfer-Encoding:To:Message-ID:In-Reply-To:References: Subject:X-Bugzilla-Product:X-Bugzilla-Component:X-Mailer; bh=VnerFCu0vazXNftyNRnI23jEQNVOdbGgxNEs4lfmoc4=; b=nL0N+ayvYUklGhsphYe5RCu97hKfhOGuPVgpmMadhSCxMoqsPcIEEcs94vgh2jd0YvR1 eimisG2TmIbXOC4m4lJC3A2HpkzfNsvls7rL467iSNyxjZkKqiM7BJIoR76DESIWth6HD SRe3gCsz7L/M3bdF7Qjc6iYO+7l48RZCTtpP3LPWTeCnAuli0voGBFWafdkxVc6OI4Jn4 Z0cI05KaNrNmjbscn49ZhFgyDFAkHAS0+CR/M1uCsUuGTV2y5YWEBOtDVH7G/CM3K5C8R D2IjkcwOUvrPlcjf4mExw5DiohPViND++hDbQR+KcQdkx8fxGh9SfikT8XCZDd+icpg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lenzuHRT; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C86F606A322 for ; Thu, 3 Dec 2026 16:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lenzuHRT Received: by smtp.kernel.org (Postfix) with ESMTPSA id A07F31F00893; Thu, 3 Dec 2026 16:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796316170; bh=VnerFCu0vazXNftyNRnI23jEQNVOdbGgxNEs4lfmoc4=; h=From:Date:To:In-Reply-To:References:Subject; b=lenzuHRTyzo9WeR/pZoYlR9hR55x7p4RKlwoWtKcO/uIHl1PF6cWxQpfqFbs11C7s qCsB3Luef1PLUI6R9VVpFrGijWQa8B3jGYyBtNLNEruUAMoQMg1Il+haWdCFQu/ezI nCB9vSfPIAMG/918doM/vmJ396oHDG1f5KsmSKg4BqMEM3/wisbvj8tRtOsla8Ypur m8UpNJvPteIu8moCpOiTGUqZC1FBOeRYwWulXjG6iGmW9nV6kF7vQSpOQIReCj3U9i yUZYHjPXSNsoahe4JwM8NIECcoaq2fL0Ljz+fN7Rt1fuInnvKxvFojBJ4qTi9nwEYK Ci96iLXMS6B9w== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 96C2F3805D97; Thu, 3 Dec 2026 16:42:50 +0000 (UTC) From: daffyduck via Bugspray Bot Date: Thu, 03 Dec 2026 16:42:45 +0000 X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: linux-nfs@vger.kernel.org, anna@kernel.org, cel@kernel.org, jlayton@kernel.org, trondmy@kernel.org Message-ID: <20261203-b221631c2-b24ccad397f7@bugzilla.kernel.org> In-Reply-To: <20261203-b221631c0-5636da63b9c8@bugzilla.kernel.org> References: <20261203-b221631c0-5636da63b9c8@bugzilla.kernel.org> Subject: Re: kernel compile error in: fs/nfsd/nfs4state.c (linux-5.15.209.tar.xz) X-Bugzilla-Product: File System X-Bugzilla-Component: NFSD X-Mailer: bugspray 0.1-dev daffyduck writes via Kernel.org Bugzilla: The kernel "works" with that ridiculous patch of mine, but I didn't test nfs. I'm now doing another kernel build (same kernel version, same gcc version), but this time I applied the patch as mentioned at the end of this post: https://lkml.org/lkml/2025/11/10/12 So I'll report how it went... but still I won't test nfs, I'll only compile and boot the kernel with the patch. Here I copy-paste the patch from that post: --- fs/nfsd/nfs4state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 08bfc2b29b65..d485a140d36d 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -1822,8 +1822,9 @@ static u32 nfsd4_get_drc_mem(struct nfsd4_channel_attrs *ca, struct nfsd_net *nn */ scale_factor = max_t(unsigned int, 8, nn->nfsd_serv->sv_nrthreads); - avail = clamp_t(unsigned long, avail, slotsize, - total_avail/scale_factor); + avail = __clamp((unsigned long)avail, + (unsigned long)slotsize, + (unsigned long)(total_avail/scale_factor)); num = min_t(int, num, avail / slotsize); num = max_t(int, num, 1); nfsd_drc_mem_used += num * slotsize; -- View: https://bugzilla.kernel.org/show_bug.cgi?id=221631#c2 You can reply to this message to join the discussion. -- Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)