Skip to content

mm: globalize rest_of_page() macro

Yury Norov dm-devel dri-devel intel-gfx kvm linux-block linux-crypto linux-ext4 linux-f2fs-devel linux-fsdevel linux-mm linux-nfs linux-perf-users linux-riscv linux-s390 linux-sound linux-spi linux-xfs linuxppc-dev lkml netdev v9fs virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mm: add rest_of_page() macroinclude/linux/mm.h net/9p/trans_virtio.c+2 -60 replies
2/8fs: use rest_of_page() macro where appropriatefs/ext4/verity.c fs/f2fs/verity.c fs/fuse/dev.c +4 more+9 -140 replies
3/8net: use rest_of_page() macro where appropriatedrivers/net/ethernet/meta/fbnic/fbnic_tlv.c drivers/s390/net/qeth_core_main.c+5 -70 replies
4/8core: use rest_of_page() macro where appropriateinclude/crypto/scatterwalk.h include/linux/highmem.h include/linux/iomap.h +4 more+17 -230 replies
5/8spi: use rest_of_page() macro where appropriatedrivers/spi/spi-pl022.c drivers/spi/spi.c+2 -51 reply
6/8KVM: use rest_of_page() macro where appropriatearch/s390/kvm/gaccess.c arch/x86/kvm/emulate.c+5 -50 replies
7/8drivers: ALSA: use rest_of_page() macro where appropriatedrivers/block/null_blk/main.c drivers/gpu/drm/i915/gt/shmem_utils.c drivers/md/dm-pcache/backing_dev.h +1 more+7 -100 replies
8/8arch: use rest_of_page() macro where appropriatearch/arm64/kernel/patching.c arch/powerpc/lib/code-patching.c arch/riscv/kernel/sbi.c+6 -81 reply

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchMark BrownPaul Walmsley
1/8
2/8
3/8
4/8
5/8A-b
6/8
7/8
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] mm: globalize rest_of_page() macro

The net/9p networking driver has a handy macro to calculate the amount of bytes from a given pointer to the end of page. Move it to core/mm, and apply tree-wide. No functional changes intended.

This series was originally introduced as a single patch #07/12 in:

https://lore.kernel.org/all/[email protected]/

Split it for better granularity and submit separately.

Yury Norov (8):
mm: add rest_of_page() macro
fs: use rest_of_page() macro where appropriate
net: use rest_of_page() macro where appropriate
core: use rest_of_page() macro where appropriate
spi: use rest_of_page() macro where appropriate
KVM: use rest_of_page() macro where appropriate
drivers: ALSA: use rest_of_page() macro where appropriate
arch: use rest_of_page() macro where appropriate

 arch/arm64/kernel/patching.c                |  4 +---
 arch/powerpc/lib/code-patching.c            |  6 +++---
 arch/riscv/kernel/sbi.c                     |  4 ++--
 arch/s390/kvm/gaccess.c                     |  6 +++---
 arch/x86/kvm/emulate.c                      |  4 ++--
 drivers/block/null_blk/main.c               |  6 ++----
 drivers/gpu/drm/i915/gt/shmem_utils.c       |  5 ++---
 drivers/md/dm-pcache/backing_dev.h          |  2 +-
 drivers/net/ethernet/meta/fbnic/fbnic_tlv.c |  6 +++---
 drivers/s390/net/qeth_core_main.c           |  6 ++----
 drivers/spi/spi-pl022.c                     |  3 +--
 drivers/spi/spi.c                           |  4 +---
 fs/ext4/verity.c                            |  3 +--
 fs/f2fs/verity.c                            |  6 ++----
 fs/fuse/dev.c                               |  4 ++--
 fs/iomap/buffered-io.c                      |  2 +-
 fs/nfs/pagelist.c                           |  2 +-
 fs/remap_range.c                            |  3 +--
 fs/xfs/scrub/xfile.c                        |  3 +--
 include/crypto/scatterwalk.h                |  2 +-
 include/linux/highmem.h                     | 24 +++++++++------------
 include/linux/iomap.h                       |  2 +-
 include/linux/iov_iter.h                    |  3 +--
 include/linux/mm.h                          |  2 ++
 kernel/events/ring_buffer.c                 |  2 +-
 lib/bitmap-str.c                            |  2 +-
 lib/iov_iter.c                              |  5 ++---
 net/9p/trans_virtio.c                       |  6 ------
 sound/virtio/virtio_pcm_msg.c               |  4 ++--
 29 files changed, 53 insertions(+), 78 deletions(-)
Signature · 1 line
2.43.0