x86/mm/pat: fix kernel-doc warning

Message ID 20240226090411.1925770-1-chentao@kylinos.cn
State New
Headers
Series x86/mm/pat: fix kernel-doc warning |

Commit Message

Kunwu Chan Feb. 26, 2024, 9:04 a.m. UTC
  Fix kernel-doc warning in memtype.c:
arch/x86/mm/pat/memtype.c:710: warning: Function parameter or struct member 'pfn' not described in 'pat_pfn_immune_to_uc_mtrr'

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
 arch/x86/mm/pat/memtype.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Randy Dunlap Feb. 26, 2024, 4:26 p.m. UTC | #1
On 2/26/24 01:04, Kunwu Chan wrote:
> Fix kernel-doc warning in memtype.c:
> arch/x86/mm/pat/memtype.c:710: warning: Function parameter or struct member 'pfn' not described in 'pat_pfn_immune_to_uc_mtrr'
> 
> Signed-off-by: Kunwu Chan <chentao@kylinos.cn>


Reviewed-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.


> ---
>  arch/x86/mm/pat/memtype.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/x86/mm/pat/memtype.c b/arch/x86/mm/pat/memtype.c
> index 0904d7e8e126..77c86a575268 100644
> --- a/arch/x86/mm/pat/memtype.c
> +++ b/arch/x86/mm/pat/memtype.c
> @@ -700,6 +700,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.
>   *
  

Patch

diff --git a/arch/x86/mm/pat/memtype.c b/arch/x86/mm/pat/memtype.c
index 0904d7e8e126..77c86a575268 100644
--- a/arch/x86/mm/pat/memtype.c
+++ b/arch/x86/mm/pat/memtype.c
@@ -700,6 +700,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.
  *