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 3A23734F255 for ; Sun, 12 Jul 2026 20:45:57 +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=1783889158; cv=none; b=V1xHAXboI5nDnV+i4iFlCouPpaIoZ4Ktun68N94P3niPLxtlsiviCB+0Mv7Zvr87s32PP2KF6xft32DH5cR1SbyxQk9uQdw6+RlNUPbQp2TeNkJulVO/4YbtqGTT/j9YQN1rLQgpjWWQxHwBkzD5flYbrL04crXBDh6VkbnLhcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783889158; c=relaxed/simple; bh=jxbcocbFZooNtU3CBQsr6I03ulVKR6sl43RKsCM3Ghk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iDteE6sX4Nt/YvxyZFJfivCp+mnkTOwYbufN9b+Cpgocrk60nkFkDSOWYiOne4y/H9UyYL5ho2sS7Ucp/AU7XhRD1/Db4CWGRxHhgvrs/vZ260iLy3SwOWs984ttJ0h2aclPPXdA3OxWyRrt3faMlORWTGMflreCEsm5ss/PHJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Z9bUvteD; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Z9bUvteD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67FE91F00A3D; Sun, 12 Jul 2026 20:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783889156; bh=YAB5XSmRDgBBpI6FwxjVr6o5v5Qemk24OELQ8O//mRI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Z9bUvteD37syhxC2R4syIcn3S0rjgcFsLm68mdPDVO0ME7d4uGucqwRNydf+pLU1m mpmIdxYO/8QKrIghvhKY5FqSiny/7w5v2bFprpFbcHC1cbKdli5JPqRxe4TuR22e4A j7656qkgSnpSPUw7JXI74472NdCMD/egyg8pinSEmh6pS89UyrTlYAyvhF1pN/+a2Q n+1b1g1fDeTa5b76MO7kHvAQ8pZ7GFNxu4+qIODjora/M5MMUs4W1FoKICyL1+Bt4G K/SF/4aCGKvm5GQsiBkvTN4Nwdq2HL7M9BSJjyBpOrEOr728VhR91V1IzVGQeBt0RT RmAzyrqO9KOFA== From: Chuck Lever To: NeilBrown , Jeff Layton , Olga Kornievskaia , Dai Ngo , Tom Talpey Cc: Subject: [PATCH 1/9] NFSD: Make "stats.h" self-contained Date: Sun, 12 Jul 2026 16:45:46 -0400 Message-ID: <20260712204554.125308-2-cel@kernel.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260712204554.125308-1-cel@kernel.org> References: <20260712204554.125308-1-cel@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The inline helpers in fs/nfsd/stats.h dereference struct nfsd_net and struct svc_export, yet the header includes neither "netns.h" nor "export.h", where those types are defined. Each helper therefore compiles only when its translation unit has already pulled in both headers ahead of "stats.h" -- a hidden ordering requirement that has to be honored at every include site. Include "netns.h" and "export.h" from "stats.h" directly so the header stands on its own, and no consumer has to order its includes to satisfy it. Signed-off-by: Chuck Lever --- fs/nfsd/stats.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/nfsd/stats.h b/fs/nfsd/stats.h index e4efb0e4e56d..87736b7fbf28 100644 --- a/fs/nfsd/stats.h +++ b/fs/nfsd/stats.h @@ -10,6 +10,9 @@ #include #include +#include "export.h" +#include "netns.h" + struct proc_dir_entry *nfsd_proc_stat_init(struct net *net); void nfsd_proc_stat_shutdown(struct net *net); -- 2.54.0