mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] x86/mm/pat: fix doc warnings in memtype.c
@ 2021-06-05  6:51 Baokun Li
  0 siblings, 0 replies; only message in thread
From: Baokun Li @ 2021-06-05  6:51 UTC (permalink / raw)
  To: dave.hansen, luto, peterz, tglx, mingo, bp, x86, hpa, akpm,
	jan.kiszka, rppt, neilb, linux-kernel
  Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1

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'

Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
 arch/x86/mm/pat/memtype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/pat/memtype.c b/arch/x86/mm/pat/memtype.c
index 3112ca7786ed..3f72ff4400bd 100644
--- a/arch/x86/mm/pat/memtype.c
+++ b/arch/x86/mm/pat/memtype.c
@@ -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.
-- 
2.31.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-05  6:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05  6:51 [PATCH -next] x86/mm/pat: fix doc warnings in memtype.c Baokun Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®