]> Git Repo - qemu.git/commit
hw/i2c/smbus_ich9: Include "qemu/range.h"
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 28 Feb 2020 11:46:44 +0000 (12:46 +0100)
committerLaurent Vivier <[email protected]>
Mon, 9 Mar 2020 14:59:31 +0000 (15:59 +0100)
commit5588a58ce2eccc946f1227f3acae97cb28c0013d
treefd697e679e0e076098fd1087d0864cba3b6830eb
parent577aa4895a138782d426be592aa3c41ecf28a2c2
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 <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20200228114649[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
hw/i2c/smbus_ich9.c
This page took 0.021149 seconds and 4 git commands to generate.