From nobody Fri Nov 7 00:48:59 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544629285820608.8828340186847; Wed, 12 Dec 2018 07:41:25 -0800 (PST) Received: from localhost ([::1]:45651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6dY-0006oC-5B for importer@patchew.org; Wed, 12 Dec 2018 10:41:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6MZ-0000qR-JE for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX6MY-0000Fd-0m for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:51 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:33923) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX6MX-0000CR-J3 for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:49 -0500 Received: by mail-wr1-x42d.google.com with SMTP id j2so18126715wrw.1 for ; Wed, 12 Dec 2018 07:23:47 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u10sm15878859wrr.33.2018.12.12.07.23.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 07:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=w1ktP9NxHWVMYQyBMXY8XYdqqIe0z8644XEAj9LTTkY=; b=isVQgtF5ko8vobvVeTfvyM+U6UHRTb/c7l8o6nntrpF33aggC/KLjsxLKaLtSYWyvz zm2b4SNYH9sqKJzp0Oq5uIHVAN66yKBAneIqQeiz0NaaP1fCWXNfnUYTYX4LWUSUPsaj CRGnpyy+5u3xoyiaMlTdn1a66BByXg8hZCIiXcADj22U8ffTzIcx88SVNa6CMzsjjpDD xIWrPbmIAXPHAr2CLyT/kN3U0k6ZvnuVGsVxJXr16idYQTKDn/JlszotcDjxXOucismi yyduisnNXwxHh4NSsHQziwPX2FyB0/vfeHhHjU4kee6dBXW7ja4NtDSM3DKSkndgpIpC byMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=w1ktP9NxHWVMYQyBMXY8XYdqqIe0z8644XEAj9LTTkY=; b=gOU30Y6SSVVg3s1yU3Ez/x4np/REk0+KsiBS1RQam5PCLX3PphRf0GxrzbDrgVE8iT 8UkHu2ps5vDAVkUr6D67u9ep6qm7M2e38IVMTtXRiilJ6QY2TSgCPjXKaDR7vVGlhCvY +YMM+xst+kIvc7gAVkLsLcFCqGmaMu6mpFqx7dCANHLjpSrHyhdHZ+/xhADVAtdsa/Tv 5oDrs9zPwoiW2hAlycBbYOfDKd6VY83oYNmpgwAM0ab+UDEmRQ4XSZqpWwr+FT6MgPUP tphzYI8JVs2oANArCm9AuOXnDBjxlWz1yOZ8KKj/9lEWecynM+lLyoxEF0HP1OeLvfHh aLEQ== X-Gm-Message-State: AA+aEWYsBSQAqnOcFA0YKlL8BkCveDPiqQ1F/+JES2DK4T0FZkJw3YMT PyOS4M8VEDIlnfSQdUvo8+1NPpyX X-Google-Smtp-Source: AFSGD/W3cXKupL+3kVqgCrKqqPMjy5cx8gkqxqFe5weRrzZZzyEL4BMWZQVUq9QoDAGR75ERHqfIOA== X-Received: by 2002:adf:eb45:: with SMTP id u5mr16719856wrn.102.1544628226266; Wed, 12 Dec 2018 07:23:46 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 12 Dec 2018 16:22:47 +0100 Message-Id: <1544628195-37728-27-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> References: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d Subject: [Qemu-devel] [PULL 26/54] vfio: make vfio_address_spaces static X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" It is not used outside hw/vfio/common.c, so it does not need to be extern. Acked-by: Alex Williamson Signed-off-by: Paolo Bonzini --- hw/vfio/common.c | 2 +- include/hw/vfio/vfio-common.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 7c185e5a..7aa804e 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -39,7 +39,7 @@ =20 struct vfio_group_head vfio_group_list =3D QLIST_HEAD_INITIALIZER(vfio_group_list); -struct vfio_as_head vfio_address_spaces =3D +static QLIST_HEAD(, VFIOAddressSpace) vfio_address_spaces =3D QLIST_HEAD_INITIALIZER(vfio_address_spaces); =20 #ifdef CONFIG_KVM diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 1b434d0..127ca47 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -181,7 +181,6 @@ int vfio_get_device(VFIOGroup *group, const char *name, =20 extern const MemoryRegionOps vfio_region_ops; extern QLIST_HEAD(vfio_group_head, VFIOGroup) vfio_group_list; -extern QLIST_HEAD(vfio_as_head, VFIOAddressSpace) vfio_address_spaces; =20 #ifdef CONFIG_LINUX int vfio_get_region_info(VFIODevice *vbasedev, int index, --=20 1.8.3.1