From nobody Mon Feb 9 06:49:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1582890777; cv=none; d=zohomail.com; s=zohoarc; b=ezTon89Vrp4KuTGPTB7z0xJc67tAB8LaiBgYkaEMDA/JLJTmHI9LYBN7Q5qrVmxO7sGCsj89jQs1BL1XMikI5sEPD4X3yiOPjg6hirtJmI87FKtz/SofqMITZnjs3q6Oa5KWIyuEj+3ihnqVuNRhh91eorqXCrdWikMr7hrJBv4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582890777; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=a2Kfw5nEVFcSKCWzcOhteR6YpW54ZFAnQQKQBI2MXqg=; b=iXcLLGSQCuV2izCT6R5zAYRXtnPGGoCLt0J9MSs86ga4cE2VAQLPCSQ0MVRGxExMkdFnPwKzwIaXRmc/QQO5d9rNdd25FAhSNUU08xe/7G/HbxZdCVCHPf2aKlBwKfVw0hYjGHpW1LbgCiJgDK0YgcRCXIk3S64QgXuJ0n7j5oE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582890777743162.5354788997713; Fri, 28 Feb 2020 03:52:57 -0800 (PST) Received: from localhost ([::1]:45858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7eCO-0000SF-Ex for importer@patchew.org; Fri, 28 Feb 2020 06:52:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41565) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7e88-0001Z5-L2 for qemu-devel@nongnu.org; Fri, 28 Feb 2020 06:48:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7e87-0001YA-CD for qemu-devel@nongnu.org; Fri, 28 Feb 2020 06:48:32 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:27183 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j7e86-0001Xe-5L for qemu-devel@nongnu.org; Fri, 28 Feb 2020 06:48:30 -0500 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-248-_Dos33FHPzKrxCrBLO2oAA-1; Fri, 28 Feb 2020 06:48:27 -0500 Received: by mail-wr1-f72.google.com with SMTP id z1so1226120wrs.9 for ; Fri, 28 Feb 2020 03:48:27 -0800 (PST) Received: from x1w.moovbox.local ([185.102.219.36]) by smtp.gmail.com with ESMTPSA id a7sm1736226wmj.12.2020.02.28.03.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 03:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582890509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a2Kfw5nEVFcSKCWzcOhteR6YpW54ZFAnQQKQBI2MXqg=; b=Tuyo18zFbKQAqU6TuN/qAMGMP2b17He54fHcdkzIso9H8s30HAV9fjMJhy2IfyzYEXjz1c P0+aUo5rZSHy9d454ih/iRR/DD+nVWKXsNZMjE9QjO+wTLFPstKgWyG+o4aAP4QY2lpaO0 zM0YJjiQbKkmdCn6TUYcrOX2Qi3laC4= X-MC-Unique: _Dos33FHPzKrxCrBLO2oAA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UifnvwpH88RzXCfeYrjEOymeXNUW1ByC1YLamNivAUM=; b=cMy7ck6/YQfpQlXX8T0bwlosi3NDZpJBTMp9ej5Xn/zX6szqSNgH3UTFT5NC4u7GMN ljAsENUCwOiMX4RqfpNFRU5GtHEZ7oVdb7YwjLWiUw+r0b2/l7xrVIbM1eXkcS5eC8CD jH5YBCykx7kw5l42Re5pn2HI4WNohP83k/L2S9BRzpL4tJ4BxShC+mNT+pf8F5pIEWii CBrNcNfdHiIvm62WaMTq3Oy2I8EAdoRpRMQdgVlxGUhlPbdcI+wl0mJV3haK2IanLVCH yyayPKXSXSnKuC19Gdd8iUCABmwAJrJ6rIGBcf+HsEIYoFnDB2dIfVcnkZqKJeRd3Nsl xGKQ== X-Gm-Message-State: APjAAAWoU2nkssTPdS4FJ25Vn/ro7tcpgu1/ksVdML41Um4q3nNAcu/c +PHVBq0naCuf0Q02cMrwtaVEoq6vHOJX5iTiaGs+k4Krh8vAj5yTAVV7PrLYPQ61VOFi3bzIMDR yvOqfIet2N0IcT0k= X-Received: by 2002:a05:6000:1142:: with SMTP id d2mr4433722wrx.62.1582890505822; Fri, 28 Feb 2020 03:48:25 -0800 (PST) X-Google-Smtp-Source: APXvYqw/YOGrrKpPqdBU/A8oP0QeSk83ur85tLpWBnJ8ZzExIf0wpFgLDVPZSkRhqNA7dkInB/MwmQ== X-Received: by 2002:a05:6000:1142:: with SMTP id d2mr4433710wrx.62.1582890505589; Fri, 28 Feb 2020 03:48:25 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 13/18] hw/i2c/smbus_ich9: Include "qemu/range.h" Date: Fri, 28 Feb 2020 12:46:44 +0100 Message-Id: <20200228114649.12818-14-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200228114649.12818-1-philmd@redhat.com> References: <20200228114649.12818-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Michael S. Tsirkin" , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , John Snow Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" 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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/i2c/smbus_ich9.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c index fd50fb851a..48f1ff4191 100644 --- a/hw/i2c/smbus_ich9.c +++ b/hw/i2c/smbus_ich9.c @@ -21,6 +21,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/range.h" #include "hw/i2c/pm_smbus.h" #include "hw/pci/pci.h" #include "migration/vmstate.h" --=20 2.21.1