Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio-mmio: Add explicit include for of.h

With linux/acpi.h no longer implicitly including of.h, add an explicit
include of of.h to fix the following error:

drivers/virtio/virtio_mmio.c:492:13: error: implicit declaration of function 'of_property_read_bool'; did you mean 'fwnode_property_read_bool'? [-Werror=implicit-function-declaration]

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Rob Herring and committed by
Rafael J. Wysocki
c5111a5b 5d6f12c3

+1
+1
drivers/virtio/virtio_mmio.c
··· 61 61 #include <linux/io.h> 62 62 #include <linux/list.h> 63 63 #include <linux/module.h> 64 + #include <linux/of.h> 64 65 #include <linux/platform_device.h> 65 66 #include <linux/pm.h> 66 67 #include <linux/slab.h>