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 8ACC5A00C4 for ; 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 863934113F; Thu, 6 Oct 2022 02:01:49 +0200 (CEST) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id A061540697 for ; Thu, 6 Oct 2022 02:01:47 +0200 (CEST) Received: by mail-pj1-f53.google.com with SMTP id gf8so310665pjb.5 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=AR41qkLP9IEOXXwn1y8Ud4RjzTZI7ycowtnLkgiqzjgsnVEFrKYuHKCqEHuPkfGiWN C4+L0wU7/m3TdVWZzSwFJ61tGCpa5557R7CGFa9BOoGNIupBPC8PEo+NWBahLTwM6oD3 yB2m2bDlvld0eLVlEmLx5NywnWfccNl4ppugcynxplJy71n80IruqmGRTQ0hw+YmB8vX F947dyBXco1uvhZb9qDVf766o0Hj/hFYucbZdv9+20N2PwFLtaPJBEsJ20uvhC77yuEQ yLqSAdCcdZiMBK+TAZ2LEkjv1Wd0HHABnw7ElutzWkvlR+HKE//QF+vxWQvdUYeDdYyi OFpw== X-Gm-Message-State: ACrzQf3fSzRXhBK1rqhxjiJXOJdMBe7r1ml4wVHRp2Dm8tqs0ELJb2a4 bDAjrLJAjy8bbF9cA3h90WlmSQ== 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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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.