aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-02-28 12:46:44 +0100
committerLaurent Vivier <laurent@vivier.eu>2020-03-09 15:59:31 +0100
commit5588a58ce2eccc946f1227f3acae97cb28c0013d (patch)
treefd697e679e0e076098fd1087d0864cba3b6830eb /hw
parent577aa4895a138782d426be592aa3c41ecf28a2c2 (diff)
downloadqemu-5588a58ce2eccc946f1227f3acae97cb28c0013d.zip
qemu-5588a58ce2eccc946f1227f3acae97cb28c0013d.tar.gz
qemu-5588a58ce2eccc946f1227f3acae97cb28c0013d.tar.bz2
hw/i2c/smbus_ich9: Include "qemu/range.h"
hw/i2c/smbus_ich9.c calls range_covers_byte(). Include "qemu/range.h" which declares it. This fixes (when modifying unrelated headers): hw/i2c/smbus_ich9.c:66:9: error: implicit declaration of function 'range_covers_byte' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (range_covers_byte(address, len, ICH9_SMB_HOSTC)) { ^ Acked-by: John Snow <jsnow@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200228114649.12818-14-philmd@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw')
-rw-r--r--hw/i2c/smbus_ich9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c
index fd50fb8..48f1ff4 100644
--- a/hw/i2c/smbus_ich9.c
+++ b/hw/i2c/smbus_ich9.c
@@ -21,6 +21,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu/range.h"
#include "hw/i2c/pm_smbus.h"
#include "hw/pci/pci.h"
#include "migration/vmstate.h"