s390/pci: add error message on device number limit
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 28 Nov 2019 08:31:52 +0000 (09:31 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 30 Nov 2019 09:52:46 +0000 (10:52 +0100)
commitd497b7ec836d2c900993f1c43b2ddff5f8a6b129
treec4396df9b9386e3e80c403b91cb445ca10800030
parent794b8846dcdc0c6e23bbf4e5283415cab0caa9ac
s390/pci: add error message on device number limit

The config option CONFIG_PCI_NR_FUNCTIONS sets a limit on the number of
PCI functions we can support. Previously on reaching this limit there
was no indication why newly attached devices are not recognized by Linux
which could be quite confusing. Thus this patch adds a pr_err() for this
case.

Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/pci/pci.c