Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3323456ybp; Sun, 13 Oct 2019 05:03:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9iljrYAtoaum7E6ydgeecdudXO/qt3EPh0lRR+GtB/tsP+mAIwjgBJh3Btd4Ad2Vt/KOb X-Received: by 2002:aa7:d908:: with SMTP id a8mr23225409edr.49.1570968229982; Sun, 13 Oct 2019 05:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570968229; cv=none; d=google.com; s=arc-20160816; b=OxeJCIFgOMASJnOAsdyVBRRlbxj1xuGtAT6x9Gjco9Ceb2rU75XlX90nKIks8vhFpt nN640h6+Y0FWWK66qoG/QpKI4m3dR+VBmgjgHbN1yFxUVeJOUZUJPXJavjnYnr40QrfL PewmfeEjyvO34r6rlWBCtAH+v67PEBK0W7hhD7sqVCHtk9T8yAE8JUhyjL4ZlQkunVoD IEbuPLAo6CCnzjMfVimp4vDtaFYiR1QZzH8DJe8Gvjog/WdySWXE8QdFVUKl/7CqwRPG H191+AvwUAv8jKGEJgcuFyjIODQjrQQ1UazccW6x3tnxvjm59aO9yoR4DyoNsO3w1zXq QErA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=HlGMKvMQC89t9ukoJPzeN2TavK4i+ggZmaz3sJmBSzU=; b=it3bYYSyX8gfruG4cHvJswPuDUU8Qyf3WHyLm4kXPFppm1jFg8yW+QEuZSD0od0ext 5a/fnVTZ+IbsUM+iHZWrxW0BUzpfhdSYweBv0BvNV4oJCx794CbzDIxzQFW+jagDJbUk uIlln7UXMYpmSnpSJApF0FVzD2T4Gi95y3fchcVkd5sZIMY6Xr1mrRK3L0L8bMirIBxl Ea5RH1elLG4ZO77Vhz+JF7uZDuK3uDClEZj6evXdmmYi+ze3mFLZb0EaKHohD4fOy7Xf IIY+D3mDk21wNDWsp+DNyF3ErnWRZXEx+a+Ub/uDSUBWoVofdgRyRGKgxTe4eyzFL3jM 910g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=FgeZ2IwC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si11024104ede.86.2019.10.13.05.03.24; Sun, 13 Oct 2019 05:03:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=FgeZ2IwC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728987AbfJMMBI (ORCPT + 99 others); Sun, 13 Oct 2019 08:01:08 -0400 Received: from mout.web.de ([212.227.15.4]:57873 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728956AbfJMMBI (ORCPT ); Sun, 13 Oct 2019 08:01:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1570968064; bh=zkVikWj3rydfNcm+Xoq/QEW9TfTobJDKETVMlO8u4Qw=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=FgeZ2IwCJd9As1cD1JAnVbr/K6oK0OvlPBl4hMwyAYB8/uEKrtW32heN0YQ82ZzI+ 0uhNwbk29KlW5UgQCDZAp36+ZJcSGMXzmKJDo2krTqm6BeGQ4SluwNGWnLc7qDQ0w1 z0O3v8+KDQJFgyPP/HjPHIsWi2jLxpq00Yr8TwNU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.10] ([95.157.55.156]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MP047-1iOHWp0hYl-006Pt8; Sun, 13 Oct 2019 14:01:04 +0200 Subject: Re: [PATCH] tools/virtio: Fix build To: "Michael S. Tsirkin" Cc: Jason Wang , "virtualization@lists.linux-foundation.org" , Linux Kernel Mailing List References: <4b686914-075b-a0a9-c97b-9def82ee0336@web.de> <20191013075107-mutt-send-email-mst@kernel.org> From: Jan Kiszka Message-ID: <08c1e081-765b-7c3a-ed31-2059dc521fd0@web.de> Date: Sun, 13 Oct 2019 14:01:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191013075107-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:XIC4E25Ila5IabwhKzDJLfSktbAUNiL1h/Z1laTjqOl/uSmn5ZJ p1+l57O65WSlab5fR9quhOrAQ8ZjI4palVMKDlX+BkFoaA3LRx/vnRI83Xsju+7jV7faovk 7VBo8b3wSwAd5CD4eo+G4cLoWejNKDM/+y5nbZGUtPI5Z60PJMGGx+Aob+PdO65vPA9RzkI Z00hv1xkvK13mbcnyI0tA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q/mlyFMjhfQ=:Uba6L31Yxx0a/9byemws44 vi/2SA1DtNqZfn1D/hbJIPJrvI7/K8H00fZmvvVi1uALVNc9RoJcJf2UOuvSvfRkRh2/LaEQv ZuzWVftoxI+4VpUEEMYZTLxDUt8vEZm4qVPJ+hEoq6PK8ZH55J25jP6a3zxDAKX1V1mdJdSao RsCA3T3a473iJNShMygTILTekaUCowy0aNJmBUhfgGb/C0MZWhtZ8gH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OjVxt13HOFfPgmypZ2GiFlqs7ExcjQi8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.10.19 13:52, Michael S. Tsirkin wrote: > On Sun, Oct 13, 2019 at 11:03:30AM +0200, Jan Kiszka wrote: >> From: Jan Kiszka >> >> Various changes in the recent kernel versions broke the build due to >> missing function and header stubs. >> >> Signed-off-by: Jan Kiszka > > Thanks! > I think it's already fixes in the vhost tree. > That tree also includes a bugfix for the test. > Can you pls give it a spin and report? Mostly fixed: the xen_domain stup is missing. Jan > Thanks! > >> --- >> tools/virtio/crypto/hash.h | 0 >> tools/virtio/linux/dma-mapping.h | 2 ++ >> tools/virtio/linux/kernel.h | 2 ++ >> 3 files changed, 4 insertions(+) >> create mode 100644 tools/virtio/crypto/hash.h >> >> diff --git a/tools/virtio/crypto/hash.h b/tools/virtio/crypto/hash.h >> new file mode 100644 >> index 000000000000..e69de29bb2d1 >> diff --git a/tools/virtio/linux/dma-mapping.h b/tools/virtio/linux/dma-= mapping.h >> index f91aeb5fe571..db96cb4bf877 100644 >> --- a/tools/virtio/linux/dma-mapping.h >> +++ b/tools/virtio/linux/dma-mapping.h >> @@ -29,4 +29,6 @@ enum dma_data_direction { >> #define dma_unmap_single(...) do { } while (0) >> #define dma_unmap_page(...) do { } while (0) >> >> +#define dma_max_mapping_size(d) 0 >> + >> #endif >> diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h >> index 6683b4a70b05..ccf321173210 100644 >> --- a/tools/virtio/linux/kernel.h >> +++ b/tools/virtio/linux/kernel.h >> @@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr) >> #define list_for_each_entry(a, b, c) while (0) >> /* end of stubs */ >> >> +#define xen_domain() 0 >> + >> #endif /* KERNEL_H */ >> -- >> 2.16.4