From nobody Sun Apr 19 07:17:36 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FC96C433EF for ; Tue, 5 Jul 2022 07:23:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbiGEHXB (ORCPT ); Tue, 5 Jul 2022 03:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbiGEHW6 (ORCPT ); Tue, 5 Jul 2022 03:22:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C48310FEE for ; Tue, 5 Jul 2022 00:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657005774; 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; bh=N/ASHfBlGwx6CPom7xa9MrPgEDXvopeeCGbYV8xojNw=; b=OTNLcNcmGbXXiF0FG7/UsiDa/zHmmtTYNzoQuB/eYZ11GAm+Lq6yhVKB3R6lNUounll/Xj Z2gTivcLvq8DKJA+kHmLDE4RO1PQCwC6lggTW7jhk78jh3BLiq8gE3x1zPbwGt1/SaRt11 Q4duFIDAkmZrX2SdOdH7e4FihyMBJZA= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-491-NMpAFHpKOp-IzoNehv0Zgw-1; Tue, 05 Jul 2022 03:22:53 -0400 X-MC-Unique: NMpAFHpKOp-IzoNehv0Zgw-1 Received: by mail-wm1-f72.google.com with SMTP id c126-20020a1c3584000000b003a02fa133ceso697552wma.2 for ; Tue, 05 Jul 2022 00:22:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N/ASHfBlGwx6CPom7xa9MrPgEDXvopeeCGbYV8xojNw=; b=bTnklVKI1Xi9fDEQAxKPj7bwvl4dzM7pi6ZEAzQInZT2e5Epuq6EOtUNGUFeMM71tN ovyTW/CaC3OmkP8QeFGZtUPvAoY35tUoWRw07EfHxXweGQVGK0xYihyf2F6ku3z1km9V Y44STL443bm+z6KAfcREDueOgqvB2+TCbjq15GPNJdgbNlTo0MsHvGoQNlQ8ON+4zs4E RP1DPHTpm5ShngTq99VRRw3+SAzaargRfqQYXQopBVxlne743bdjmIhsa1DgErgEkxov QfN4a8nYasdJxKf+3Qn98u5+ifU7omhn0NxT1RIynWrSsXIBvLv0lTNNc6EGBN3siSEX tl8Q== X-Gm-Message-State: AJIora+8INBwGCV0RnxId97WiqZdBrPdb81t/2ULR1r9qRBSZkOAbHiQ qFbbIZsOM+iBzO1WjdQ2hfDsNQieRNKUqu+AU8ugyTDq7ieMBJ+2VfytNRyzr/S1Bp2W9h27fbu 9umYBrWkTyfgyYWd6B3yXGmBf X-Received: by 2002:a05:6000:1883:b0:205:c0cb:33c6 with SMTP id a3-20020a056000188300b00205c0cb33c6mr31999797wri.39.1657005771730; Tue, 05 Jul 2022 00:22:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tOyPW1aqWsF8F4WjCUcs8p1xoNBXMowttVXO1mb/z/gmUozhUvn0wR3gSD7sNBb/OBsGi+sQ== X-Received: by 2002:a05:6000:1883:b0:205:c0cb:33c6 with SMTP id a3-20020a056000188300b00205c0cb33c6mr31999786wri.39.1657005771526; Tue, 05 Jul 2022 00:22:51 -0700 (PDT) Received: from step1.redhat.com (host-79-46-200-206.retail.telecomitalia.it. [79.46.200.206]) by smtp.gmail.com with ESMTPSA id p12-20020a5d638c000000b0021d6dad334bsm3551528wru.4.2022.07.05.00.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 00:22:50 -0700 (PDT) From: Stefano Garzarella To: virtualization@lists.linux-foundation.org Cc: "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, Jason Wang , Stefano Garzarella Subject: [PATCH] tools/virtio: fix build Date: Tue, 5 Jul 2022 09:22:49 +0200 Message-Id: <20220705072249.7867-1-sgarzare@redhat.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Fix the build caused by the following changes: - phys_addr_t is now defined in tools/include/linux/types.h - dev_warn_once() is used in drivers/virtio/virtio_ring.c - linux/uio.h included by vringh.h use INT_MAX defined in limits.h Signed-off-by: Stefano Garzarella Acked-by: Eugenio P=C3=A9rez --- tools/virtio/linux/kernel.h | 2 +- tools/virtio/linux/vringh.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h index 0b493542e61a..21593bf97755 100644 --- a/tools/virtio/linux/kernel.h +++ b/tools/virtio/linux/kernel.h @@ -29,7 +29,6 @@ #define READ 0 #define WRITE 1 =20 -typedef unsigned long long phys_addr_t; typedef unsigned long long dma_addr_t; typedef size_t __kernel_size_t; typedef unsigned int __wsum; @@ -136,6 +135,7 @@ static inline void *krealloc_array(void *p, size_t new_= n, size_t new_size, gfp_t #endif #define dev_err(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) #define dev_warn(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) +#define dev_warn_once(dev, format, ...) fprintf (stderr, format, ## __VA_A= RGS__) =20 #define min(x, y) ({ \ typeof(x) _min1 =3D (x); \ diff --git a/tools/virtio/linux/vringh.h b/tools/virtio/linux/vringh.h index 9348957be56e..e11c6aece734 100644 --- a/tools/virtio/linux/vringh.h +++ b/tools/virtio/linux/vringh.h @@ -1 +1,2 @@ +#include #include "../../../include/linux/vringh.h" --=20 2.36.1