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 62857A00C3 for ; Thu, 16 Jun 2022 16:30:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C7F740141; Thu, 16 Jun 2022 16:30:01 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 0A511410D0 for ; Thu, 16 Jun 2022 16:29:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655389799; 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: in-reply-to:in-reply-to:references:references; bh=ayDvoaxQ+DkWkwlH0BzbHCiao7RE0mHngXdEVClXyEw=; b=B1S7FIDqeXaQD+VfPJfEMRXghWQwwVB1PAp5TovpSz3EFUTs3nSpt9mKxNJKbBppboXgfE Vuhyl5tkQv6xq1dskC4kvdkmvqnuapghMfNCUQ2mZuh0qq/Vyiiq0Jfkz7UV8+RLWqKow3 bkrlegICdS17EHFu7DrP1HdVr4bGHu4= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-528-mkojfbwfPuun-jDB4Mea4A-1; Thu, 16 Jun 2022 10:29:28 -0400 X-MC-Unique: mkojfbwfPuun-jDB4Mea4A-1 Received: by mail-lj1-f197.google.com with SMTP id 8-20020a05651c008800b00259ac238d0fso237680ljq.6 for ; Thu, 16 Jun 2022 07:29:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ayDvoaxQ+DkWkwlH0BzbHCiao7RE0mHngXdEVClXyEw=; b=1z02FoHgzqb9/unYiFlBZoc1Ci1xjcnGtPTBFGAFVnplVDiQqveKChnhtRXAJY8cn/ TykH6UeRtWkvzDm1y81SnN671sat0TVJx6CcpDX0fg2Tuaz+epHLMdIu+7hD1j4R9UhI pO5l1duZvISUIQT8M3170uz24av3gu5iZHqzh2BYC4ow+WFTIIV/oWa5c8Wf/WyiUgBN fUfq1DzyE1v2ifCbMijdxNtt3fbgJdj+0tS0UcWIMH1NpX3Ra2S8fp6IgEtGqosTCQ/2 jD0AQrrKXvYQsgVCzuNgX+AG6KNDJNapGj2TLIRSuXTgyrdEteCgz65nTUXoraae2zVD 8eRA== X-Gm-Message-State: AJIora9+D0vup/qDklPptQDqWSSgoCh3kXhFX4MnMwRESY/8+9iCa/f+ 71HbQ2FcxSErwoK/PzsPjvlM+NykSu6xZlRQgm/tfe2/fgCui+1R6dah5TQoprqNYTLfxIvMoT5 e1JfN2OoedH8Isyv559CbiLs= X-Received: by 2002:a2e:6e0c:0:b0:255:98fb:cb45 with SMTP id j12-20020a2e6e0c000000b0025598fbcb45mr2776583ljc.55.1655389766871; Thu, 16 Jun 2022 07:29:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1snQyl2UVuoLBxH/4tOCQtk8vn6KMYbEBczVRLDPsFvjasr1Y06EoRRGoMlPQqyZ3bx2pfKGkrjhgxP3Fumdlc= X-Received: by 2002:a2e:6e0c:0:b0:255:98fb:cb45 with SMTP id j12-20020a2e6e0c000000b0025598fbcb45mr2776564ljc.55.1655389766564; Thu, 16 Jun 2022 07:29:26 -0700 (PDT) MIME-Version: 1.0 References: <20220616103304.132368-1-wenxuanx.wu@intel.com> In-Reply-To: <20220616103304.132368-1-wenxuanx.wu@intel.com> From: David Marchand Date: Thu, 16 Jun 2022 16:29:15 +0200 Message-ID: Subject: Re: [PATCH] ice/base: fix gcc 12 warning stringop-overflow To: Wenxuan Wu Cc: Qiming Yang , Qi Zhang , dev , Thomas Monjalon , Stephen Hemminger , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 Title should start with net/ice/base:. On Thu, Jun 16, 2022 at 12:35 PM wrote: > > From: Wenxuan Wu > > Gcc with -O2 flag, would retrieve the value in one time. > This patch changed the type of fv_idx in struct ice_recp_grp_entry to > align with its callers which is also u8 type. > > When u8 idx[5] = a value u16 index[4], gcc12 would give this warning, > because it is not big enough to store the bytes(bigger than 5 bytes) > in one time (-O2 would do it in this way). > > Fixes: 04b8ec1ea807 ("net/ice/base: add protocol structures and defines") > Cc: stable@dpdk.org Missing empty line. > Signed-off-by: Wenxuan Wu Only build tested. Tested-by: David Marchand -- David Marchand