Skip to content

Commit c5111a5

Browse files
robherringrafaeljw
authored andcommitted
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>
1 parent 5d6f12c commit c5111a5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/virtio/virtio_mmio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
#include <linux/io.h>
6262
#include <linux/list.h>
6363
#include <linux/module.h>
64+
#include <linux/of.h>
6465
#include <linux/platform_device.h>
6566
#include <linux/pm.h>
6667
#include <linux/slab.h>

0 commit comments

Comments
 (0)