Skip to contentSkip to conversation

Use offset_in_page() macro

PATCH New Alexander Kuleshov 1 participant 1 message Sep 15, 2015 Memory management

lore
Share & tools
lore
#0 lore raw

cover Use offset_in_page() macro

This patchset does not provide functional changes, but just replaces (addr & ~PAGE_MASK) expression with already defined offset_in_page() macro from the <linux/mm.h>.

Alexander Kuleshov (10):
mm/msync: Use offset_in_page macro
mm/nommu: Use offset_in_page macro
mm/mincore: Use offset_in_page macro
mm/early_ioremap: Use offset_in_page macro
mm/percpu: Use offset_in_page macro
mm/util: Use offset_in_page macro
mm/mlock: Use offset_in_page macro
mm/vmalloc: Use offset_in_page macro
mm/mmap: Use offset_in_page macro
mm/mremap: Use offset_in_page macro

 mm/early_ioremap.c |  6 +++---
 mm/mincore.c       |  2 +-
 mm/mlock.c         |  6 +++---
 mm/mmap.c          | 12 ++++++------
 mm/mremap.c        | 12 ++++++------
 mm/msync.c         |  2 +-
 mm/nommu.c         |  8 ++++----
 mm/percpu.c        | 10 +++++-----
 mm/util.c          |  2 +-
 mm/vmalloc.c       | 12 ++++++------
 10 files changed, 36 insertions(+), 36 deletions(-)
Signature · 7 lines
2.5.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>