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 B8D5C41E90; Tue, 14 Mar 2023 10:02:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C470410D1; Tue, 14 Mar 2023 10:02:44 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id EDDB640A7E for ; Tue, 14 Mar 2023 10:02:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678784562; 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: in-reply-to:in-reply-to:references:references; bh=YjdPkIIrL98d0pdGnDX1t4nZWnsfGN3nETDr+w9jSp0=; b=KolSise40ln2qNKQzuYsIBhqsZrKLmv64KdFhldZm6kxAoHsb8ot1Z2ElBV63Sga38jiTY +Nk808PxZvMjYstgCK4Rse3vSmgyXBlYPN6mqQvP2LKmx84OU5K2iz2U0fRyobVMmkTyKE wtc9o8xvK+N+Vaxya13ZrBGztPa4tyY= Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-37-W-IAQJrtPNawezwb69c8nQ-1; Tue, 14 Mar 2023 05:02:41 -0400 X-MC-Unique: W-IAQJrtPNawezwb69c8nQ-1 Received: by mail-pl1-f200.google.com with SMTP id bh9-20020a170902a98900b0019e506b80d0so8562752plb.13 for ; Tue, 14 Mar 2023 02:02:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678784560; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YjdPkIIrL98d0pdGnDX1t4nZWnsfGN3nETDr+w9jSp0=; b=bMPCAXj22kRGClonpDm/OhFrONd9+lXs7cR1gMcrxzJF810q2jSBLxUYzByJdpYGnj 2m3jRsA69IN+NvXnxVf2it0buRVO4b0x1EymzHmq7nif/9AdtezzuHMFwU2On/QcgZ6Z fGgQ3rR6d0cs2MfiigIBOQGaNvQTXVMgcMG/WiEqCPhmtb2yUOtR8N4IzLrEUFiCAbkb xka+myfDUGcHbbrgviqRXfZsWLaMNMcYahVFjsKtf7JfijOu8QEbb1qkqTeoZKneBVsl m4aCN1ODuXOmrpMDvv5Gg0M7LMzdIgwMJsrOzJRqa4Z6+TGJgAi5ySYMC53AOdqfR0PD zu1g== X-Gm-Message-State: AO0yUKVkE+YF//Z4kKM4dWSTx7FEhP3c2Cl3nTnrlonjP6NxeX6nhovd uF7CrYKm79Jx6vmT2T/Ap0YDEYOkc0ioKWjXR0HtYZp54j1sHcu7RONygdLgaqFLENRzYiDFhYX uOgKUKUIAd6Q9ozLhmEQ= X-Received: by 2002:a62:1a57:0:b0:624:5886:4b4b with SMTP id a84-20020a621a57000000b0062458864b4bmr2158080pfa.5.1678784559993; Tue, 14 Mar 2023 02:02:39 -0700 (PDT) X-Google-Smtp-Source: AK7set++M/CPNtV0Q1sfa0e4MjfKBcMjk3+BVNi5glvKZHpUtMD4jQJG/FuJdGk+r0PXPbm73Bnk4G0BVa/vbhyiPuU= X-Received: by 2002:a62:1a57:0:b0:624:5886:4b4b with SMTP id a84-20020a621a57000000b0062458864b4bmr2158075pfa.5.1678784559693; Tue, 14 Mar 2023 02:02:39 -0700 (PDT) MIME-Version: 1.0 References: <20230309090317.847742-1-david.marchand@redhat.com> In-Reply-To: <20230309090317.847742-1-david.marchand@redhat.com> From: David Marchand Date: Tue, 14 Mar 2023 10:02:28 +0100 Message-ID: Subject: Re: [PATCH] net/mlx5: fix build with GCC 12 and ASan To: Matan Azrad , Viacheslav Ovsiienko , Raslan Darawsheh Cc: dev@dpdk.org, stable@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Thu, Mar 9, 2023 at 10:03=E2=80=AFAM David Marchand wrote: > > Building with gcc 12 and ASan raises this warning: > > ../drivers/net/mlx5/mlx5_txpp.c: In function =E2=80=98mlx5_txpp_xstats_ge= t_names=E2=80=99: > ../drivers/net/mlx5/mlx5_txpp.c:1066:25: error: =E2=80=98strncpy=E2=80=99= specified bound > 64 equals destination size [-Werror=3Dstringop-truncation] > 1066 | strncpy(xstats_names[i + n_used].name, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1067 | mlx5_txpp_stat_names[i], > | ~~~~~~~~~~~~~~~~~~~~~~~~ > 1068 | RTE_ETH_XSTATS_NAME_SIZE); > | ~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > Prefer strlcpy. > > Fixes: 3b025c0ca425 ("net/mlx5: provide send scheduling error statistics"= ) > Cc: stable@dpdk.org > > Signed-off-by: David Marchand Review please? --=20 David Marchand