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 BB92941E90 for ; Tue, 14 Mar 2023 10:02:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B170E41144; Tue, 14 Mar 2023 10:02:46 +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 B2F10410DF for ; Tue, 14 Mar 2023 10:02:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678784564; 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=SCTCccqVK66FTvp2XFUUkwPrGixVoRRLQfu3fMkE7u6dJL5+zafY4pXRUwm+CwaJ+H8NA9 tx3I/K8KyVuU0jknR26SOKwoUP6I5nQaV4VI3BPyQHt2s5PnNtbFHCnvwxUcfgnG87qWqD kRvLd52G5AAWg05rFe5PGjvWVZG/SK8= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-645-igKzh-4PN6K6TBZK0os6dw-1; Tue, 14 Mar 2023 05:02:41 -0400 X-MC-Unique: igKzh-4PN6K6TBZK0os6dw-1 Received: by mail-pj1-f70.google.com with SMTP id x6-20020a17090aa38600b0023b4895719eso2696190pjp.1 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=aEzt936YXxmAHAj7yQr6nBAcZHnhvGn4gfmmKmt5hMvxFbks/XYNz4/od5JS4PUqoO Pg7vBxEhqhO2ulBBk5YqhJsnGqRztLEP+Jw4I8siliKXDgJWvBE+z9OKZpW8OCZwmVb2 mBYztx+vDqBcIPqSjRuTPyV9VvJLKEn7hcGHCQKoHSEBO5En4TIOkP6/TQfuRMRKzD/P /IMe2A42WPXdNbd/EPDX7iux0sDJYK6cdCzvTvbKUf3XWFCbyvo8hxY3uTatUmI4F6t3 SxMm8IpQqBicWaz1blCJ0edPW/gxpIj+8S4+cJQ+q90d/dkCRgsm5IN9NOmBF0/LgDqf AnCQ== X-Gm-Message-State: AO0yUKV84nAnweEHal8qBxtaxJwVaO4ildUUM5t4HWG4WTyA27HTVtF7 0ydaYlpXqCQI/ihqrPiW3HeKn/X7MjSpXiMp/xJ/jDWBZr4goJUFuT6tp6GCs1GGWwszbz22Vkc DFXhVQ4pnDd5dBNcCEofhoQI= X-Received: by 2002:a62:1a57:0:b0:624:5886:4b4b with SMTP id a84-20020a621a57000000b0062458864b4bmr2158084pfa.5.1678784559994; 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: 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 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