mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-10-26 10:57:38 +08:00
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'. Link: https://lore.kernel.org/20260926-map-private-dev-zero-v3-1-d4781e84ccfc@kernel.org Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Liam R. Howlett <liam@infradead.org> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Jann Horn <jannh@google.com> Cc: Pedro Falcato <pfalcato@suse.de> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Hugh Dickins <hughd@google.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Jan Kara <jack@suse.cz>
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the kernel character device drivers.
|
|
#
|
|
|
|
obj-y += random.o
|
|
obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o
|
|
obj-y += misc.o
|
|
obj-$(CONFIG_TEST_MISC_MINOR) += misc_minor_kunit.o
|
|
obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o
|
|
obj-$(CONFIG_VIRTIO_CONSOLE) += virtio_console.o
|
|
obj-$(CONFIG_UV_MMTIMER) += uv_mmtimer.o
|
|
obj-$(CONFIG_IBM_BSR) += bsr.o
|
|
|
|
obj-$(CONFIG_PRINTER) += lp.o
|
|
|
|
obj-$(CONFIG_APM_EMULATION) += apm-emulation.o
|
|
|
|
obj-$(CONFIG_SONYPI) += sonypi.o
|
|
obj-$(CONFIG_HPET) += hpet.o
|
|
obj-$(CONFIG_XILINX_HWICAP) += xilinx_hwicap/
|
|
obj-$(CONFIG_NVRAM) += nvram.o
|
|
obj-$(CONFIG_TOSHIBA) += toshiba.o
|
|
obj-$(CONFIG_DS1620) += ds1620.o
|
|
obj-$(CONFIG_HW_RANDOM) += hw_random/
|
|
obj-$(CONFIG_PPDEV) += ppdev.o
|
|
obj-$(CONFIG_NWBUTTON) += nwbutton.o
|
|
obj-$(CONFIG_NWFLASH) += nwflash.o
|
|
obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o
|
|
obj-$(CONFIG_PC8736x_GPIO) += pc8736x_gpio.o
|
|
obj-$(CONFIG_NSC_GPIO) += nsc_gpio.o
|
|
obj-$(CONFIG_TELCLOCK) += tlclk.o
|
|
|
|
obj-y += agp/
|
|
|
|
obj-$(CONFIG_HANGCHECK_TIMER) += hangcheck-timer.o
|
|
obj-$(CONFIG_TCG_TPM) += tpm/
|
|
|
|
obj-$(CONFIG_PS3_FLASH) += ps3flash.o
|
|
|
|
obj-$(CONFIG_XILLYBUS_CLASS) += xillybus/
|
|
obj-$(CONFIG_POWERNV_OP_PANEL) += powernv-op-panel.o
|
|
obj-$(CONFIG_ADI) += adi.o
|