From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11562A00C2; Thu, 6 Oct 2022 02:01:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA55840A82; Thu, 6 Oct 2022 02:01:48 +0200 (CEST) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id A1D3B40A82 for ; Thu, 6 Oct 2022 02:01:47 +0200 (CEST) Received: by mail-pj1-f49.google.com with SMTP id e11-20020a17090a77cb00b00205edbfd646so2846464pjs.1 for ; Wed, 05 Oct 2022 17:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=XenEAYIID69ftc1+cWXjrIcpUR256nB5QUoBY2vU2Gg=; b=vUbi0GXUlEJfwj+Ds7dG4sbSPrlqA/kz9pMDQrbf5L5aFO9Kd0ZLNUUcR1PP+NKhGv lF0ycJtjLY6UmoCCRfYbGA8UrE/PoUy5GqNNd/y5esKmkEU6SifMbM4wIHQe+RroJajE hA8ItQgNaSNzAWmYIQtg8mPXbXLDnciG2QwW4IwUo8wT6pSK9nEN3I31cqS/k7JmTc/s Vjx8Cmqd6TK+sOFIDH3lofU+LhwFHYIDrbfyw3ZOmRbKIhv1rNbHjEDCPebP5N1Oat7V DhGZXytTTO4ggCzRcYe/NvWlB4VibDJK4qx2nQOg7xg5JQYoPj6HVJZ5LFRvyFiXXc3L OvUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=XenEAYIID69ftc1+cWXjrIcpUR256nB5QUoBY2vU2Gg=; b=I5zy3EpI7U5eUHDtxIRyKMttszuBLnTWUEdSgREq4xWBbGnvGmEvugg+Q4QsecXTBo /wFvwFLGxLcM853/n35W1qpTlF+CDOXaw+U/db7yqD+FxNnhdLrNUsNGMo/kpQZrBw8X ND0PYJfEZD4jboQzvA9PfMC1bpQHp4ERXTysAnDoh46bcN8cS+N5dIrQ+E/H+cAD9n31 ruFUHZVGylUhGsZCEqDJSbGF+2osKEzNnGZ8C+ZklwoOkveyljZRAiYTDZg/FQobsESL 2nreho3wgAZSx71PsDAiNpbyRu3m6/I1IFvKmtgv8KRkuU+4y7A0I5JQURuD1lyr1QBq WiVQ== X-Gm-Message-State: ACrzQf3+uJcJhMQ3GtGR4alEUcIOyL3y33XyABwn5am64gI+Ad4CtAln 3c0syknb29uLcNSFxD79LFJe6g== X-Google-Smtp-Source: AMsMyM7ysPBExE/SkwMKROoz5xDDaVwYIX9uYbaiW7FKxblQCPfD5h4sDw1ofjvz0ltF/OV1Wx6K7w== X-Received: by 2002:a17:902:f683:b0:176:cc02:ce83 with SMTP id l3-20020a170902f68300b00176cc02ce83mr1735440plg.88.1665014506691; Wed, 05 Oct 2022 17:01:46 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id c12-20020a17090a4d0c00b0020ad8223f9asm1661274pjg.9.2022.10.05.17.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 17:01:46 -0700 (PDT) Date: Wed, 5 Oct 2022 17:01:43 -0700 From: Stephen Hemminger To: Maxime Coquelin Cc: dev@dpdk.org, cheng1.jiang@intel.com, chenbo.xia@intel.com, zhoumin@loongson.cn, david.marchand@redhat.com, thomas@monjalon.net, stable@dpdk.org Subject: Re: [PATCH v3] vhost: fix build issues with GCC 12 Message-ID: <20221005170143.6235a939@hermes.local> In-Reply-To: <20221005203524.89336-1-maxime.coquelin@redhat.com> References: <20221005151159.72366-1-maxime.coquelin@redhat.com> <20221005203524.89336-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 5 Oct 2022 22:35:24 +0200 Maxime Coquelin wrote: > In practice, it would never happen since 'pkt->pkt_len' is > unlikely to be close to UINT32_MAX, but let's just change > 'size' to uint64_t to make the compiler happy without > having to add runtime checks. Would the standard typedef size_t work since that is what sizeof() returns.