Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ef5ea20 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Linus Torvalds
Browse files

arch/frv/mb93090-mb00/pci-frv.c: fix build warning

The build of frv defconfig gives warning:

  arch/frv/mb93090-mb00/pci-frv.c:176:5: warning: ignoring return value of 'pci_assign_resource', declared with attribute warn_unused_result

Just print an error message to silence the warning.  We can not do much
here on error.

Link: http://lkml.kernel.org/r/1484256471-5379-1-git-send-email-sudipm.mukherjee@gmail.com


Signed-off-by: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0386bf38
Loading
Loading
Loading
Loading
+8 −3
Original line number Original line Diff line number Diff line
@@ -147,7 +147,7 @@ static void __init pcibios_allocate_resources(int pass)
static void __init pcibios_assign_resources(void)
static void __init pcibios_assign_resources(void)
{
{
	struct pci_dev *dev = NULL;
	struct pci_dev *dev = NULL;
	int idx;
	int idx, err;
	struct resource *r;
	struct resource *r;


	for_each_pci_dev(dev) {
	for_each_pci_dev(dev) {
@@ -172,8 +172,13 @@ static void __init pcibios_assign_resources(void)
			 *  the BIOS forgot to do so or because we have decided the old
			 *  the BIOS forgot to do so or because we have decided the old
			 *  address was unusable for some reason.
			 *  address was unusable for some reason.
			 */
			 */
			if (!r->start && r->end)
			if (!r->start && r->end) {
				pci_assign_resource(dev, idx);
				err = pci_assign_resource(dev, idx);
				if (err)
					dev_err(&dev->dev,
						"Failed to assign new address to %d\n",
						idx);
			}
		}
		}
	}
	}
}
}