]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Remove sysfs resource mmap warning
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 29 Nov 2017 17:47:29 +0000 (11:47 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 19 Dec 2017 05:07:41 +0000 (23:07 -0600)
commit6ef1b4515fd234b922cbc39cae8cdf74f66afafa
treeaba478b5ca45452eb14bc410bd11029de65a8a2a
parent6d26e52fc39dd1b277640428ccc4ab1abd836cd8
PCI: Remove sysfs resource mmap warning

When a process uses sysfs and tries to mmap more space than is available in
a PCI BAR, we emit a warning and a backtrace.  The mmap fails anyway, so
the backtrace is mainly for debugging.  But in general we don't emit kernel
messages when syscalls return failure.

The similar procfs mmap path simply fails the mmap with no warning.  Remove
the sysfs warning.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-sysfs.c