Skip to content

Commit c636e17

Browse files
committed
Merge tag 'driver-core-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core fixes from Greg KH: "Here are two small driver core / kernfs fixes for 4.9-rc3. One makes the Kconfig entry for DEBUG_TEST_DRIVER_REMOVE a bit more explicit that this is a crazy thing to enable for a distro kernel (thanks for trying Fedora!), the other resolves an issue with vim opening kernfs files (sysfs, configfs, etc.) Both have been in linux-next with no reported issues" * tag 'driver-core-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: driver core: Make Kconfig text for DEBUG_TEST_DRIVER_REMOVE stronger kernfs: Add noop_fsync to supported kernfs_file_fops
2 parents db4a57e + 248ff02 commit c636e17

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/base/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,16 @@ config DEBUG_DEVRES
213213
If you are unsure about this, Say N here.
214214

215215
config DEBUG_TEST_DRIVER_REMOVE
216-
bool "Test driver remove calls during probe"
216+
bool "Test driver remove calls during probe (UNSTABLE)"
217217
depends on DEBUG_KERNEL
218218
help
219219
Say Y here if you want the Driver core to test driver remove functions
220220
by calling probe, remove, probe. This tests the remove path without
221221
having to unbind the driver or unload the driver module.
222222

223-
If you are unsure about this, say N here.
223+
This option is expected to find errors and may render your system
224+
unusable. You should say N here unless you are explicitly looking to
225+
test this functionality.
224226

225227
config SYS_HYPERVISOR
226228
bool

fs/kernfs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ const struct file_operations kernfs_file_fops = {
911911
.open = kernfs_fop_open,
912912
.release = kernfs_fop_release,
913913
.poll = kernfs_fop_poll,
914+
.fsync = noop_fsync,
914915
};
915916

916917
/**

0 commit comments

Comments
 (0)