From: Shivank Garg Date: Wed, 14 May 2025 06:26:40 +0000 (+0000) Subject: x86/mm/pat: Fix W=1 build kernel-doc warning X-Git-Tag: v6.16-rc1~194^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd6afa43eee175ba146f6f9a27d6d24eeaab0a45;p=thirdparty%2Fkernel%2Flinux.git x86/mm/pat: Fix W=1 build kernel-doc warning Building the kernel with W=1 generates the following warning: arch/x86/mm/pat/memtype.c:692: warning: Function parameter or struct member 'pfn' not described in 'pat_pfn_immune_to_uc_mtrr' Add missing parameter documentation to fix the kernel-doc warning. Signed-off-by: Shivank Garg Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20250514062637.3287779-3-shivankg@amd.com --- diff --git a/arch/x86/mm/pat/memtype.c b/arch/x86/mm/pat/memtype.c index 72d8cbc611583..51635ae1eb7f1 100644 --- a/arch/x86/mm/pat/memtype.c +++ b/arch/x86/mm/pat/memtype.c @@ -682,6 +682,7 @@ static enum page_cache_mode lookup_memtype(u64 paddr) /** * pat_pfn_immune_to_uc_mtrr - Check whether the PAT memory type * of @pfn cannot be overridden by UC MTRR memory type. + * @pfn: The page frame number to check. * * Only to be called when PAT is enabled. *