]> asedeno.scripts.mit.edu Git - linux.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)
commit7a09490966bd4e36fd1cee33775b3ed15344f93d
treeaba478b5ca45452eb14bc410bd11029de65a8a2a
parent1291a0d5049dbc06baaaf66a9ff3f53db493b19b
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