Skip to content

Commit 5dd50aa

Browse files
dhowellsbrauner
authored andcommitted
Make anon_inodes unconditional
Make the anon_inodes facility unconditional so that it can be used by core VFS code and pidfd code. Signed-off-by: David Howells <[email protected]> Signed-off-by: Al Viro <[email protected]> [[email protected]: adapt commit message to mention pidfds] Signed-off-by: Christian Brauner <[email protected]>
1 parent 15ade5d commit 5dd50aa

File tree

18 files changed

+1
-27
lines changed

18 files changed

+1
-27
lines changed

arch/arm/kvm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ config KVM
2222
bool "Kernel-based Virtual Machine (KVM) support"
2323
depends on MMU && OF
2424
select PREEMPT_NOTIFIERS
25-
select ANON_INODES
2625
select ARM_GIC
2726
select ARM_GIC_V3
2827
select ARM_GIC_V3_ITS

arch/arm64/kvm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ config KVM
2323
depends on OF
2424
select MMU_NOTIFIER
2525
select PREEMPT_NOTIFIERS
26-
select ANON_INODES
2726
select HAVE_KVM_CPU_RELAX_INTERCEPT
2827
select HAVE_KVM_ARCH_TLB_FLUSH_ALL
2928
select KVM_MMIO

arch/mips/kvm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ config KVM
2121
depends on MIPS_FP_SUPPORT
2222
select EXPORT_UASM
2323
select PREEMPT_NOTIFIERS
24-
select ANON_INODES
2524
select KVM_GENERIC_DIRTYLOG_READ_PROTECT
2625
select HAVE_KVM_VCPU_ASYNC_IOCTL
2726
select KVM_MMIO

arch/powerpc/kvm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ if VIRTUALIZATION
2020
config KVM
2121
bool
2222
select PREEMPT_NOTIFIERS
23-
select ANON_INODES
2423
select HAVE_KVM_EVENTFD
2524
select HAVE_KVM_VCPU_ASYNC_IOCTL
2625
select SRCU

arch/s390/kvm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ config KVM
2121
prompt "Kernel-based Virtual Machine (KVM) support"
2222
depends on HAVE_KVM
2323
select PREEMPT_NOTIFIERS
24-
select ANON_INODES
2524
select HAVE_KVM_CPU_RELAX_INTERCEPT
2625
select HAVE_KVM_VCPU_ASYNC_IOCTL
2726
select HAVE_KVM_EVENTFD

arch/x86/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ config X86
4444
#
4545
select ACPI_LEGACY_TABLES_LOOKUP if ACPI
4646
select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
47-
select ANON_INODES
4847
select ARCH_32BIT_OFF_T if X86_32
4948
select ARCH_CLOCKSOURCE_DATA
5049
select ARCH_CLOCKSOURCE_INIT

arch/x86/kvm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ config KVM
2727
depends on X86_LOCAL_APIC
2828
select PREEMPT_NOTIFIERS
2929
select MMU_NOTIFIER
30-
select ANON_INODES
3130
select HAVE_KVM_IRQCHIP
3231
select HAVE_KVM_IRQFD
3332
select IRQ_BYPASS_MANAGER

drivers/base/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ source "drivers/base/regmap/Kconfig"
174174
config DMA_SHARED_BUFFER
175175
bool
176176
default n
177-
select ANON_INODES
178177
select IRQ_WORK
179178
help
180179
This option enables the framework for buffer-sharing between

drivers/char/tpm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ config TCG_CRB
157157
config TCG_VTPM_PROXY
158158
tristate "VTPM Proxy Interface"
159159
depends on TCG_TPM
160-
select ANON_INODES
161160
---help---
162161
This driver proxies for an emulated TPM (vTPM) running in userspace.
163162
A device /dev/vtpmx is provided that creates a device pair

drivers/dma-buf/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ menu "DMABUF options"
33
config SYNC_FILE
44
bool "Explicit Synchronization Framework"
55
default n
6-
select ANON_INODES
76
select DMA_SHARED_BUFFER
87
---help---
98
The Sync File Framework adds explicit syncronization via

drivers/gpio/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ config ARCH_HAVE_CUSTOM_GPIO_H
1212

1313
menuconfig GPIOLIB
1414
bool "GPIO Support"
15-
select ANON_INODES
1615
help
1716
This enables GPIO support through the generic GPIO library.
1817
You only need to enable this, if you also want to enable

drivers/iio/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
menuconfig IIO
66
tristate "Industrial I/O support"
7-
select ANON_INODES
87
help
98
The industrial I/O subsystem provides a unified framework for
109
drivers for many different types of embedded sensors using a

drivers/infiniband/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ config INFINIBAND_USER_MAD
2525

2626
config INFINIBAND_USER_ACCESS
2727
tristate "InfiniBand userspace access (verbs and CM)"
28-
select ANON_INODES
2928
depends on MMU
3029
---help---
3130
Userspace InfiniBand access support. This enables the

drivers/vfio/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ menuconfig VFIO
2222
tristate "VFIO Non-Privileged userspace driver framework"
2323
depends on IOMMU_API
2424
select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM || ARM64)
25-
select ANON_INODES
2625
help
2726
VFIO provides a framework for secure userspace device drivers.
2827
See Documentation/vfio.txt for more details.

fs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ obj-$(CONFIG_PROC_FS) += proc_namespace.o
2525

2626
obj-y += notify/
2727
obj-$(CONFIG_EPOLL) += eventpoll.o
28-
obj-$(CONFIG_ANON_INODES) += anon_inodes.o
28+
obj-y += anon_inodes.o
2929
obj-$(CONFIG_SIGNALFD) += signalfd.o
3030
obj-$(CONFIG_TIMERFD) += timerfd.o
3131
obj-$(CONFIG_EVENTFD) += eventfd.o

fs/notify/fanotify/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
config FANOTIFY
22
bool "Filesystem wide access notification"
33
select FSNOTIFY
4-
select ANON_INODES
54
select EXPORTFS
65
default n
76
---help---

fs/notify/inotify/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config INOTIFY_USER
22
bool "Inotify support for userspace"
3-
select ANON_INODES
43
select FSNOTIFY
54
default y
65
---help---

init/Kconfig

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,9 +1171,6 @@ config LD_DEAD_CODE_DATA_ELIMINATION
11711171
config SYSCTL
11721172
bool
11731173

1174-
config ANON_INODES
1175-
bool
1176-
11771174
config HAVE_UID16
11781175
bool
11791176

@@ -1378,14 +1375,12 @@ config HAVE_FUTEX_CMPXCHG
13781375
config EPOLL
13791376
bool "Enable eventpoll support" if EXPERT
13801377
default y
1381-
select ANON_INODES
13821378
help
13831379
Disabling this option will cause the kernel to be built without
13841380
support for epoll family of system calls.
13851381

13861382
config SIGNALFD
13871383
bool "Enable signalfd() system call" if EXPERT
1388-
select ANON_INODES
13891384
default y
13901385
help
13911386
Enable the signalfd() system call that allows to receive signals
@@ -1395,7 +1390,6 @@ config SIGNALFD
13951390

13961391
config TIMERFD
13971392
bool "Enable timerfd() system call" if EXPERT
1398-
select ANON_INODES
13991393
default y
14001394
help
14011395
Enable the timerfd() system call that allows to receive timer
@@ -1405,7 +1399,6 @@ config TIMERFD
14051399

14061400
config EVENTFD
14071401
bool "Enable eventfd() system call" if EXPERT
1408-
select ANON_INODES
14091402
default y
14101403
help
14111404
Enable the eventfd() system call that allows to receive both
@@ -1516,7 +1509,6 @@ config KALLSYMS_BASE_RELATIVE
15161509
# syscall, maps, verifier
15171510
config BPF_SYSCALL
15181511
bool "Enable bpf() system call"
1519-
select ANON_INODES
15201512
select BPF
15211513
select IRQ_WORK
15221514
default n
@@ -1533,7 +1525,6 @@ config BPF_JIT_ALWAYS_ON
15331525

15341526
config USERFAULTFD
15351527
bool "Enable userfaultfd() system call"
1536-
select ANON_INODES
15371528
depends on MMU
15381529
help
15391530
Enable the userfaultfd() system call that allows to intercept and
@@ -1600,7 +1591,6 @@ config PERF_EVENTS
16001591
bool "Kernel performance events and counters"
16011592
default y if PROFILING
16021593
depends on HAVE_PERF_EVENTS
1603-
select ANON_INODES
16041594
select IRQ_WORK
16051595
select SRCU
16061596
help

0 commit comments

Comments
 (0)