Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1203529lko; Tue, 13 Jul 2021 19:30:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTG1igXnBi7aD1zV7khdI6zqKjBbBh7gjLHRa+orte1kqxDJ0koBsz1Re7q2qM2yYugeIh X-Received: by 2002:a92:db4e:: with SMTP id w14mr5284538ilq.188.1626229838028; Tue, 13 Jul 2021 19:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626229838; cv=none; d=google.com; s=arc-20160816; b=vYroB2jEedb1CC3Malp4nXQmBvwoMC9IcUfUwGo0lKZcBTQ7pCcyvBeCRvwTqs4Jy7 U4+d/u5Jz39oqhA2d150OVmsqh6oODBPEbmm3gOkpfHhGuwSd/4pKHGDTfMo+V36Vqlh gLPm9lDd9w8dU2VgrgZvESz2ExT+p2STcRtO/Fgzk5yWYgoChuqYteemVksUPg0GRleX LiNa45GIGTMDu4gYrxoHSmwxkH2nNS4bSftcjkYd0MkYMui9GVJlZcxkwk4eX2Rmr1dL qhWSmVmyWXNdnm9SiethYrLJLu319Mzb5+/l+3S1g1X3eNMIAutm86kNMdEmU+R2b9ju yWDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=G/fFWwzyU0yNWyjCqFeOqWWFBcrCBmuLY65NaDW+ppk=; b=sM9T9IzSCA0ZTnA7j/zhhlzhWEkvdyp4DEGK5dY4/nL1EHTzCOjKdtSoR8UpiVV8lT KczfVwblb1m3rGoNyTv0sGPRwcPgU9OS6hahghgGKjfY4QnYS+pZnxzXdNYsEkng+tDc 9hjtvaI6bsUsk7ZBofUwr16JyzRb71R07nl0cS+xsCqAcjBZF9o9N10InTNcnQOg1Iwb AxIEwzf7VGJJCYrddesf2QsqxigSiYKlyZsM35HKMZ5k83AwobSHyLZp1xQssnCmfs3t Mcj1lhDBh6D6Ob8auJxkN9mZtVjvEzdcAhgo9E336JxOQpU1jBKBTtKAvGZfheRfSdjD xqeg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si867676ioq.84.2021.07.13.19.30.26; Tue, 13 Jul 2021 19:30:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237639AbhGNCcG (ORCPT + 99 others); Tue, 13 Jul 2021 22:32:06 -0400 Received: from usmx01.baidu.com ([12.0.243.41]:36268 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237593AbhGNCcE (ORCPT ); Tue, 13 Jul 2021 22:32:04 -0400 Received: from BC-Mail-HQEx02.internal.baidu.com (unknown [172.31.51.58]) by Forcepoint Email with ESMTPS id 482C4258739D676063E3; Tue, 13 Jul 2021 19:29:07 -0700 (PDT) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-HQEx02.internal.baidu.com (172.31.51.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.10; Wed, 14 Jul 2021 10:29:05 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.4; Wed, 14 Jul 2021 10:29:04 +0800 From: Cai Huoqing To: , , CC: , , Cai Huoqing Subject: [PATCH 1/2] virtio_ring: fix error - unknown type name 'spinlock_t' Date: Wed, 14 Jul 2021 10:28:53 +0800 Message-ID: <20210714022854.1077-2-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210714022854.1077-1-caihuoqing@baidu.com> References: <20210714022854.1077-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex16.internal.baidu.com (10.127.64.39) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org when run "make virtio" in linux/tools, the error: unknown type name 'spinlock_t' occurs Signed-off-by: Cai Huoqing --- include/linux/vringh.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/vringh.h b/include/linux/vringh.h index 84db7b8f912f..ff21c2643792 100644 --- a/include/linux/vringh.h +++ b/include/linux/vringh.h @@ -43,11 +43,13 @@ struct vringh { /* The vring (note: it may contain user pointers!) */ struct vring vring; +#if IS_REACHABLE(CONFIG_VHOST_IOTLB) /* IOTLB for this vring */ struct vhost_iotlb *iotlb; /* spinlock to synchronize IOTLB accesses */ spinlock_t *iotlb_lock; +#endif /* The function to call to notify the guest about added buffers */ void (*notify)(struct vringh *); -- 2.25.1