Skip to content

Commit 72f1c55

Browse files
xp4ns3akpm00
authored andcommitted
highmem: delete a sentence from kmap_local_page() kdocs
kmap_local_page() should always be preferred in place of kmap() and kmap_atomic(). "Only use when really necessary." is not consistent with the Documentation/mm/highmem.rst and these kdocs it embeds. Therefore, delete the above-mentioned sentence from kdocs. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Fabio M. De Francesco <[email protected]> Suggested-by: Ira Weiny <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Peter Collingbourne <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 84b86f6 commit 72f1c55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/highmem.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ static inline void kmap_flush_unused(void);
8686
* temporarily mapped.
8787
*
8888
* While it is significantly faster than kmap() for the higmem case it
89-
* comes with restrictions about the pointer validity. Only use when really
90-
* necessary.
89+
* comes with restrictions about the pointer validity.
9190
*
9291
* On HIGHMEM enabled systems mapping a highmem page has the side effect of
9392
* disabling migration in order to keep the virtual address stable across

0 commit comments

Comments
 (0)