Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4724017pxv; Tue, 6 Jul 2021 07:43:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/LPzBTyAvf8gVOQRBfsLs8E58MSiLuISGWX/DVftkFWPdz3s4uemjFkO5Z0ukzXCwvncS X-Received: by 2002:aa7:d158:: with SMTP id r24mr23607805edo.309.1625582595769; Tue, 06 Jul 2021 07:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625582595; cv=none; d=google.com; s=arc-20160816; b=g/NJ4zJbuLrFlhhzBrALLLTXIiPAkCWgeP+/OyU3yC4fSHZlOUrkUxIKulFpU+O2qm 6rzXiLCYZtFh7DtNLTEZTjq+38bmOXfKda2mXcaQ6bg0nA/0DYnvOvs1iCvN/M4+M9Um 1Bq6zVjRw+qxbDxdQmlZasetM65Hv66/cUniEXl9AupUQsu2Xp9408OaYfxJVnAG+oh1 YhHepGP0KsCyrOOAj8tJgkrm4BncbnUBDzqHz9lHPA9vGyq1Y0t6i5Np0J3OQyr88Hll qqATuuIDyPvyHsjd3WwlzDwnXhW6GfM9WYgRWVUI3iej325yF9bziTL4qqyx6V8sjApY x8cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=INHpBOzecXW3uN1gYFoHGsu1Y3t/3VmqaiRaKVReXwU=; b=tBdTvGHz81LIn/5Of03tdQuL0pv+MTwfMAZD79dQMXRE05zXbxLl9sDcuVRoEuToD/ 7f4LX331awvQDWfUVMF2uMHamJ5LEpNssyyT3wIoAa7f/Taua5IUyifnWcPD2dfGhulg KrjU+4uKYc1sXdIVje1HMHriUwYT2EEApvBOKC1T4QRAZ9bk1c01g+ad0R/E9cIQgmH/ Uacz6QQ5ENHnze4KLz75GbevhStf2HSqPnqSSBLmnRAnaoakeiT+rB1a8ufCyVt+8+mt PtyIizp+gbsrCPjChgeW5PqKGGYUJeS/X5T9nZkfMinYin8RM7ESJ/J54qkWa9coxyyS qrhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZGDgB16g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si15658235eds.190.2021.07.06.07.42.52; Tue, 06 Jul 2021 07:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZGDgB16g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232228AbhGFOlB (ORCPT + 99 others); Tue, 6 Jul 2021 10:41:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58781 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232376AbhGFOkn (ORCPT ); Tue, 6 Jul 2021 10:40:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625582284; 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=INHpBOzecXW3uN1gYFoHGsu1Y3t/3VmqaiRaKVReXwU=; b=ZGDgB16gAL475TSdIt9X9RkJhformoZsHryXiKvvDjY6zD9VWukZ/b5D3DW9s1MruDJ1af lTfoYHwAmHHAlbFEzaWAenPwKS2HdeD/Z+V+vPW8PkMuzi2lGKcE8SC1K9XFLFx59QVVA9 y7LwdG7GaRhM4UzkweYsyeTfdYYbXLY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-367-Qd_dwfLzMMKMaN-VudyKYg-1; Tue, 06 Jul 2021 10:26:45 -0400 X-MC-Unique: Qd_dwfLzMMKMaN-VudyKYg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 70FD1804140; Tue, 6 Jul 2021 14:26:44 +0000 (UTC) Received: from eperezma.remote.csb (ovpn-113-20.ams2.redhat.com [10.36.113.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 010B0369A; Tue, 6 Jul 2021 14:26:42 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: mst@redhat.com, linux-kernel@vger.kernel.org Cc: Matthew Wilcox , Jason Wang , Stefano Garzarella , Yunsheng Lin Subject: [PATCH 2/2] vringh: Include spinlock.h Date: Tue, 6 Jul 2021 16:26:32 +0200 Message-Id: <20210706142632.670483-3-eperezma@redhat.com> In-Reply-To: <20210706142632.670483-1-eperezma@redhat.com> References: <20210706142632.670483-1-eperezma@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit f53d9910d009 ("vringh: add 'iotlb_lock' to synchronize iotlb accesses") introduces this dependency, but does not include spinlock.h. While kernel seems to compile as usual, tools/virtio cannot do the same. Fixes: f53d9910d009 ("vringh: add 'iotlb_lock' to synchronize iotlb accesses") Signed-off-by: Eugenio PĂ©rez --- include/linux/vringh.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/vringh.h b/include/linux/vringh.h index 84db7b8f912f..212892cf9822 100644 --- a/include/linux/vringh.h +++ b/include/linux/vringh.h @@ -14,6 +14,7 @@ #include #include #include +#include #if IS_REACHABLE(CONFIG_VHOST_IOTLB) #include #include -- 2.27.0