Skip to contentSkip to conversation

x86/mm/pat: fix doc warnings in memtype.c

PATCH New Baokun Li 1 participant 1 message Jun 5, 2021

Subsystems (2)
lore
Share & tools
lore

Baokun Li

author
#0 lore raw

PATCH 1/1 x86/mm/pat: fix doc warnings in memtype.c

Add description for pat_pfn_immune_to_uc_mtrr to fix the W=1 warnings:

arch/x86/mm/pat/memtype.c:744: warning: Function parameter or
member 'pfn' not described in 'pat_pfn_immune_to_uc_mtrr'

---
 arch/x86/mm/pat/memtype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/pat/memtype.c +1 -1
index 3112ca7786ed..3f72ff4400bd 100644
@@ -734,7 +734,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 target page frame number
  * Only to be called when PAT is enabled.
  *
  * Returns true, if the PAT memory type of @pfn is UC, UC-, or WC.
Signature · 1 line
2.31.1