On Wed, Sep 02, 2026 at 07:00:18PM +0100, Lorenzo Stoakes (ARM) wrote: > The memory character driver implements several mm-specific features and is > always compiled into the kernel, so move it to mm/ where it belongs. > > Among other things the driver implements /dev/mem which provides raw access > to physical memory, and /dev/zero which either allows mapping of a shmem > region (if mapped with MAP_SHARED) or, uniquely, anonymous memory (if > mapped MAP_PRIVATE). > > This change lays the foundations to allow MAP_PRIVATE-/dev/zero to be > mapped precisely the same as anonymous memory is mapped as currently it is > an edge case within mm. > > Also update a couple of comments that reference 'drivers/char/mem.c' to > reference 'mm/char-mem.c'. > > Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]>
Acked-by: Mike Rapoport (Microsoft) <[email protected]> > --- > MAINTAINERS | 4 ++-- > drivers/char/Makefile | 2 +- > mm/Makefile | 3 ++- > drivers/char/mem.c => mm/char-mem.c | 2 +- > mm/shmem.c | 2 +- > 5 files changed, 7 insertions(+), 6 deletions(-) -- Sincerely yours, Mike.

