diff options
author | David Howells <dhowells@redhat.com> | 2018-11-05 12:40:31 -0500 |
---|---|---|
committer | Christian Brauner <christian@brauner.io> | 2019-04-19 08:03:11 -0400 |
commit | 5dd50aaeb1853ee0953b60fa6d1143d95429ae7b (patch) | |
tree | c0f3f684d0621b7305bb7bdcf83fb1d56acaa16a | |
parent | 15ade5d2e7775667cf191cf2f94327a4889f8b9d (diff) |
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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[christian@brauner.io: adapt commit message to mention pidfds]
Signed-off-by: Christian Brauner <christian@brauner.io>
-rw-r--r-- | arch/arm/kvm/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm64/kvm/Kconfig | 1 | ||||
-rw-r--r-- | arch/mips/kvm/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/kvm/Kconfig | 1 | ||||
-rw-r--r-- | arch/s390/kvm/Kconfig | 1 | ||||
-rw-r--r-- | arch/x86/Kconfig | 1 | ||||
-rw-r--r-- | arch/x86/kvm/Kconfig | 1 | ||||
-rw-r--r-- | drivers/base/Kconfig | 1 | ||||
-rw-r--r-- | drivers/char/tpm/Kconfig | 1 | ||||
-rw-r--r-- | drivers/dma-buf/Kconfig | 1 | ||||
-rw-r--r-- | drivers/gpio/Kconfig | 1 | ||||
-rw-r--r-- | drivers/iio/Kconfig | 1 | ||||
-rw-r--r-- | drivers/infiniband/Kconfig | 1 | ||||
-rw-r--r-- | drivers/vfio/Kconfig | 1 | ||||
-rw-r--r-- | fs/Makefile | 2 | ||||
-rw-r--r-- | fs/notify/fanotify/Kconfig | 1 | ||||
-rw-r--r-- | fs/notify/inotify/Kconfig | 1 | ||||
-rw-r--r-- | init/Kconfig | 10 |
18 files changed, 1 insertions, 27 deletions
diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig index 3f5320f46de2..f591026347a5 100644 --- a/arch/arm/kvm/Kconfig +++ b/arch/arm/kvm/Kconfig | |||
@@ -22,7 +22,6 @@ config KVM | |||
22 | bool "Kernel-based Virtual Machine (KVM) support" | 22 | bool "Kernel-based Virtual Machine (KVM) support" |
23 | depends on MMU && OF | 23 | depends on MMU && OF |
24 | select PREEMPT_NOTIFIERS | 24 | select PREEMPT_NOTIFIERS |
25 | select ANON_INODES | ||
26 | select ARM_GIC | 25 | select ARM_GIC |
27 | select ARM_GIC_V3 | 26 | select ARM_GIC_V3 |
28 | select ARM_GIC_V3_ITS | 27 | select ARM_GIC_V3_ITS |
diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index a3f85624313e..a67121d419a2 100644 --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig | |||
@@ -23,7 +23,6 @@ config KVM | |||
23 | depends on OF | 23 | depends on OF |
24 | select MMU_NOTIFIER | 24 | select MMU_NOTIFIER |
25 | select PREEMPT_NOTIFIERS | 25 | select PREEMPT_NOTIFIERS |
26 | select ANON_INODES | ||
27 | select HAVE_KVM_CPU_RELAX_INTERCEPT | 26 | select HAVE_KVM_CPU_RELAX_INTERCEPT |
28 | select HAVE_KVM_ARCH_TLB_FLUSH_ALL | 27 | select HAVE_KVM_ARCH_TLB_FLUSH_ALL |
29 | select KVM_MMIO | 28 | select KVM_MMIO |
diff --git a/arch/mips/kvm/Kconfig b/arch/mips/kvm/Kconfig index 4528bc9c3cb1..eac25aef21e0 100644 --- a/arch/mips/kvm/Kconfig +++ b/arch/mips/kvm/Kconfig | |||
@@ -21,7 +21,6 @@ config KVM | |||
21 | depends on MIPS_FP_SUPPORT | 21 | depends on MIPS_FP_SUPPORT |
22 | select EXPORT_UASM | 22 | select EXPORT_UASM |
23 | select PREEMPT_NOTIFIERS | 23 | select PREEMPT_NOTIFIERS |
24 | select ANON_INODES | ||
25 | select KVM_GENERIC_DIRTYLOG_READ_PROTECT | 24 | select KVM_GENERIC_DIRTYLOG_READ_PROTECT |
26 | select HAVE_KVM_VCPU_ASYNC_IOCTL | 25 | select HAVE_KVM_VCPU_ASYNC_IOCTL |
27 | select KVM_MMIO | 26 | select KVM_MMIO |
diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index bfdde04e4905..f53997a8ca62 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig | |||
@@ -20,7 +20,6 @@ if VIRTUALIZATION | |||
20 | config KVM | 20 | config KVM |
21 | bool | 21 | bool |
22 | select PREEMPT_NOTIFIERS | 22 | select PREEMPT_NOTIFIERS |
23 | select ANON_INODES | ||
24 | select HAVE_KVM_EVENTFD | 23 | select HAVE_KVM_EVENTFD |
25 | select HAVE_KVM_VCPU_ASYNC_IOCTL | 24 | select HAVE_KVM_VCPU_ASYNC_IOCTL |
26 | select SRCU | 25 | select SRCU |
diff --git a/arch/s390/kvm/Kconfig b/arch/s390/kvm/Kconfig index 767453faacfc..1816ee48eadd 100644 --- a/arch/s390/kvm/Kconfig +++ b/arch/s390/kvm/Kconfig | |||
@@ -21,7 +21,6 @@ config KVM | |||
21 | prompt "Kernel-based Virtual Machine (KVM) support" | 21 | prompt "Kernel-based Virtual Machine (KVM) support" |
22 | depends on HAVE_KVM | 22 | depends on HAVE_KVM |
23 | select PREEMPT_NOTIFIERS | 23 | select PREEMPT_NOTIFIERS |
24 | select ANON_INODES | ||
25 | select HAVE_KVM_CPU_RELAX_INTERCEPT | 24 | select HAVE_KVM_CPU_RELAX_INTERCEPT |
26 | select HAVE_KVM_VCPU_ASYNC_IOCTL | 25 | select HAVE_KVM_VCPU_ASYNC_IOCTL |
27 | select HAVE_KVM_EVENTFD | 26 | select HAVE_KVM_EVENTFD |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5ad92419be19..7a70fb58b2d0 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -44,7 +44,6 @@ config X86 | |||
44 | # | 44 | # |
45 | select ACPI_LEGACY_TABLES_LOOKUP if ACPI | 45 | select ACPI_LEGACY_TABLES_LOOKUP if ACPI |
46 | select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI | 46 | select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI |
47 | select ANON_INODES | ||
48 | select ARCH_32BIT_OFF_T if X86_32 | 47 | select ARCH_32BIT_OFF_T if X86_32 |
49 | select ARCH_CLOCKSOURCE_DATA | 48 | select ARCH_CLOCKSOURCE_DATA |
50 | select ARCH_CLOCKSOURCE_INIT | 49 | select ARCH_CLOCKSOURCE_INIT |
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index 72fa955f4a15..fc042419e670 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig | |||
@@ -27,7 +27,6 @@ config KVM | |||
27 | depends on X86_LOCAL_APIC | 27 | depends on X86_LOCAL_APIC |
28 | select PREEMPT_NOTIFIERS | 28 | select PREEMPT_NOTIFIERS |
29 | select MMU_NOTIFIER | 29 | select MMU_NOTIFIER |
30 | select ANON_INODES | ||
31 | select HAVE_KVM_IRQCHIP | 30 | select HAVE_KVM_IRQCHIP |
32 | select HAVE_KVM_IRQFD | 31 | select HAVE_KVM_IRQFD |
33 | select IRQ_BYPASS_MANAGER | 32 | select IRQ_BYPASS_MANAGER |
diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index 059700ea3521..03f067da12ee 100644 --- a/drivers/base/Kconfig +++ b/drivers/base/Kconfig | |||
@@ -174,7 +174,6 @@ source "drivers/base/regmap/Kconfig" | |||
174 | config DMA_SHARED_BUFFER | 174 | config DMA_SHARED_BUFFER |
175 | bool | 175 | bool |
176 | default n | 176 | default n |
177 | select ANON_INODES | ||
178 | select IRQ_WORK | 177 | select IRQ_WORK |
179 | help | 178 | help |
180 | This option enables the framework for buffer-sharing between | 179 | This option enables the framework for buffer-sharing between |
diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig index 536e55d3919f..f3e4bc490cf0 100644 --- a/drivers/char/tpm/Kconfig +++ b/drivers/char/tpm/Kconfig | |||
@@ -157,7 +157,6 @@ config TCG_CRB | |||
157 | config TCG_VTPM_PROXY | 157 | config TCG_VTPM_PROXY |
158 | tristate "VTPM Proxy Interface" | 158 | tristate "VTPM Proxy Interface" |
159 | depends on TCG_TPM | 159 | depends on TCG_TPM |
160 | select ANON_INODES | ||
161 | ---help--- | 160 | ---help--- |
162 | This driver proxies for an emulated TPM (vTPM) running in userspace. | 161 | This driver proxies for an emulated TPM (vTPM) running in userspace. |
163 | A device /dev/vtpmx is provided that creates a device pair | 162 | A device /dev/vtpmx is provided that creates a device pair |
diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig index 2e5a0faa2cb1..3fc9c2efc583 100644 --- a/drivers/dma-buf/Kconfig +++ b/drivers/dma-buf/Kconfig | |||
@@ -3,7 +3,6 @@ menu "DMABUF options" | |||
3 | config SYNC_FILE | 3 | config SYNC_FILE |
4 | bool "Explicit Synchronization Framework" | 4 | bool "Explicit Synchronization Framework" |
5 | default n | 5 | default n |
6 | select ANON_INODES | ||
7 | select DMA_SHARED_BUFFER | 6 | select DMA_SHARED_BUFFER |
8 | ---help--- | 7 | ---help--- |
9 | The Sync File Framework adds explicit syncronization via | 8 | The Sync File Framework adds explicit syncronization via |
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 3f50526a771f..0f91600c27ae 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -12,7 +12,6 @@ config ARCH_HAVE_CUSTOM_GPIO_H | |||
12 | 12 | ||
13 | menuconfig GPIOLIB | 13 | menuconfig GPIOLIB |
14 | bool "GPIO Support" | 14 | bool "GPIO Support" |
15 | select ANON_INODES | ||
16 | help | 15 | help |
17 | This enables GPIO support through the generic GPIO library. | 16 | This enables GPIO support through the generic GPIO library. |
18 | You only need to enable this, if you also want to enable | 17 | You only need to enable this, if you also want to enable |
diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig index d08aeb41cd07..1dec0fecb6ef 100644 --- a/drivers/iio/Kconfig +++ b/drivers/iio/Kconfig | |||
@@ -4,7 +4,6 @@ | |||
4 | 4 | ||
5 | menuconfig IIO | 5 | menuconfig IIO |
6 | tristate "Industrial I/O support" | 6 | tristate "Industrial I/O support" |
7 | select ANON_INODES | ||
8 | help | 7 | help |
9 | The industrial I/O subsystem provides a unified framework for | 8 | The industrial I/O subsystem provides a unified framework for |
10 | drivers for many different types of embedded sensors using a | 9 | drivers for many different types of embedded sensors using a |
diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index a1fb840de45d..d318bab25860 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig | |||
@@ -25,7 +25,6 @@ config INFINIBAND_USER_MAD | |||
25 | 25 | ||
26 | config INFINIBAND_USER_ACCESS | 26 | config INFINIBAND_USER_ACCESS |
27 | tristate "InfiniBand userspace access (verbs and CM)" | 27 | tristate "InfiniBand userspace access (verbs and CM)" |
28 | select ANON_INODES | ||
29 | depends on MMU | 28 | depends on MMU |
30 | ---help--- | 29 | ---help--- |
31 | Userspace InfiniBand access support. This enables the | 30 | Userspace InfiniBand access support. This enables the |
diff --git a/drivers/vfio/Kconfig b/drivers/vfio/Kconfig index 9de5ed38da83..3798d77d131c 100644 --- a/drivers/vfio/Kconfig +++ b/drivers/vfio/Kconfig | |||
@@ -22,7 +22,6 @@ menuconfig VFIO | |||
22 | tristate "VFIO Non-Privileged userspace driver framework" | 22 | tristate "VFIO Non-Privileged userspace driver framework" |
23 | depends on IOMMU_API | 23 | depends on IOMMU_API |
24 | select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM || ARM64) | 24 | select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM || ARM64) |
25 | select ANON_INODES | ||
26 | help | 25 | help |
27 | VFIO provides a framework for secure userspace device drivers. | 26 | VFIO provides a framework for secure userspace device drivers. |
28 | See Documentation/vfio.txt for more details. | 27 | See Documentation/vfio.txt for more details. |
diff --git a/fs/Makefile b/fs/Makefile index 427fec226fae..35945f8139e6 100644 --- a/fs/Makefile +++ b/fs/Makefile | |||
@@ -25,7 +25,7 @@ obj-$(CONFIG_PROC_FS) += proc_namespace.o | |||
25 | 25 | ||
26 | obj-y += notify/ | 26 | obj-y += notify/ |
27 | obj-$(CONFIG_EPOLL) += eventpoll.o | 27 | obj-$(CONFIG_EPOLL) += eventpoll.o |
28 | obj-$(CONFIG_ANON_INODES) += anon_inodes.o | 28 | obj-y += anon_inodes.o |
29 | obj-$(CONFIG_SIGNALFD) += signalfd.o | 29 | obj-$(CONFIG_SIGNALFD) += signalfd.o |
30 | obj-$(CONFIG_TIMERFD) += timerfd.o | 30 | obj-$(CONFIG_TIMERFD) += timerfd.o |
31 | obj-$(CONFIG_EVENTFD) += eventfd.o | 31 | obj-$(CONFIG_EVENTFD) += eventfd.o |
diff --git a/fs/notify/fanotify/Kconfig b/fs/notify/fanotify/Kconfig index 735bfb2e9190..521dc91d2cb5 100644 --- a/fs/notify/fanotify/Kconfig +++ b/fs/notify/fanotify/Kconfig | |||
@@ -1,7 +1,6 @@ | |||
1 | config FANOTIFY | 1 | config FANOTIFY |
2 | bool "Filesystem wide access notification" | 2 | bool "Filesystem wide access notification" |
3 | select FSNOTIFY | 3 | select FSNOTIFY |
4 | select ANON_INODES | ||
5 | select EXPORTFS | 4 | select EXPORTFS |
6 | default n | 5 | default n |
7 | ---help--- | 6 | ---help--- |
diff --git a/fs/notify/inotify/Kconfig b/fs/notify/inotify/Kconfig index b981fc0c8379..0161c74e76e2 100644 --- a/fs/notify/inotify/Kconfig +++ b/fs/notify/inotify/Kconfig | |||
@@ -1,6 +1,5 @@ | |||
1 | config INOTIFY_USER | 1 | config INOTIFY_USER |
2 | bool "Inotify support for userspace" | 2 | bool "Inotify support for userspace" |
3 | select ANON_INODES | ||
4 | select FSNOTIFY | 3 | select FSNOTIFY |
5 | default y | 4 | default y |
6 | ---help--- | 5 | ---help--- |
diff --git a/init/Kconfig b/init/Kconfig index 4592bf7997c0..be8f97e37a76 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -1171,9 +1171,6 @@ config LD_DEAD_CODE_DATA_ELIMINATION | |||
1171 | config SYSCTL | 1171 | config SYSCTL |
1172 | bool | 1172 | bool |
1173 | 1173 | ||
1174 | config ANON_INODES | ||
1175 | bool | ||
1176 | |||
1177 | config HAVE_UID16 | 1174 | config HAVE_UID16 |
1178 | bool | 1175 | bool |
1179 | 1176 | ||
@@ -1378,14 +1375,12 @@ config HAVE_FUTEX_CMPXCHG | |||
1378 | config EPOLL | 1375 | config EPOLL |
1379 | bool "Enable eventpoll support" if EXPERT | 1376 | bool "Enable eventpoll support" if EXPERT |
1380 | default y | 1377 | default y |
1381 | select ANON_INODES | ||
1382 | help | 1378 | help |
1383 | Disabling this option will cause the kernel to be built without | 1379 | Disabling this option will cause the kernel to be built without |
1384 | support for epoll family of system calls. | 1380 | support for epoll family of system calls. |
1385 | 1381 | ||
1386 | config SIGNALFD | 1382 | config SIGNALFD |
1387 | bool "Enable signalfd() system call" if EXPERT | 1383 | bool "Enable signalfd() system call" if EXPERT |
1388 | select ANON_INODES | ||
1389 | default y | 1384 | default y |
1390 | help | 1385 | help |
1391 | Enable the signalfd() system call that allows to receive signals | 1386 | Enable the signalfd() system call that allows to receive signals |
@@ -1395,7 +1390,6 @@ config SIGNALFD | |||
1395 | 1390 | ||
1396 | config TIMERFD | 1391 | config TIMERFD |
1397 | bool "Enable timerfd() system call" if EXPERT | 1392 | bool "Enable timerfd() system call" if EXPERT |
1398 | select ANON_INODES | ||
1399 | default y | 1393 | default y |
1400 | help | 1394 | help |
1401 | Enable the timerfd() system call that allows to receive timer | 1395 | Enable the timerfd() system call that allows to receive timer |
@@ -1405,7 +1399,6 @@ config TIMERFD | |||
1405 | 1399 | ||
1406 | config EVENTFD | 1400 | config EVENTFD |
1407 | bool "Enable eventfd() system call" if EXPERT | 1401 | bool "Enable eventfd() system call" if EXPERT |
1408 | select ANON_INODES | ||
1409 | default y | 1402 | default y |
1410 | help | 1403 | help |
1411 | Enable the eventfd() system call that allows to receive both | 1404 | Enable the eventfd() system call that allows to receive both |
@@ -1516,7 +1509,6 @@ config KALLSYMS_BASE_RELATIVE | |||
1516 | # syscall, maps, verifier | 1509 | # syscall, maps, verifier |
1517 | config BPF_SYSCALL | 1510 | config BPF_SYSCALL |
1518 | bool "Enable bpf() system call" | 1511 | bool "Enable bpf() system call" |
1519 | select ANON_INODES | ||
1520 | select BPF | 1512 | select BPF |
1521 | select IRQ_WORK | 1513 | select IRQ_WORK |
1522 | default n | 1514 | default n |
@@ -1533,7 +1525,6 @@ config BPF_JIT_ALWAYS_ON | |||
1533 | 1525 | ||
1534 | config USERFAULTFD | 1526 | config USERFAULTFD |
1535 | bool "Enable userfaultfd() system call" | 1527 | bool "Enable userfaultfd() system call" |
1536 | select ANON_INODES | ||
1537 | depends on MMU | 1528 | depends on MMU |
1538 | help | 1529 | help |
1539 | Enable the userfaultfd() system call that allows to intercept and | 1530 | Enable the userfaultfd() system call that allows to intercept and |
@@ -1600,7 +1591,6 @@ config PERF_EVENTS | |||
1600 | bool "Kernel performance events and counters" | 1591 | bool "Kernel performance events and counters" |
1601 | default y if PROFILING | 1592 | default y if PROFILING |
1602 | depends on HAVE_PERF_EVENTS | 1593 | depends on HAVE_PERF_EVENTS |
1603 | select ANON_INODES | ||
1604 | select IRQ_WORK | 1594 | select IRQ_WORK |
1605 | select SRCU | 1595 | select SRCU |
1606 | help | 1596 | help |