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 51466A00C3; Thu, 16 Jun 2022 16:29:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45A8B40689; Thu, 16 Jun 2022 16:29:31 +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 4B6CF40141 for ; Thu, 16 Jun 2022 16:29:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655389769; 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=KluqbLNKAOf5IHf2pDCF9QPc8q95V7XaR+l+wc4SOrj6UjfxXNUoukyNnvdGmckADde4ef ICoKjUmT0DMKmz2erhlTxcTYaVo1BfPBfMlIhahcSsxc1g4BZEkomsAyw5i+NQvJaCImF+ KlkrI2CtiHQ5/AncAwbUcQSKqAMqJxc= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-556-EqH2Kl0tNHishzB4j41Z_g-1; Thu, 16 Jun 2022 10:29:28 -0400 X-MC-Unique: EqH2Kl0tNHishzB4j41Z_g-1 Received: by mail-lj1-f199.google.com with SMTP id m14-20020a2e97ce000000b002556f5f731dso235704ljj.5 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=gY+4PaDUDZt0D5vaypyQQAAuNQQ+IMc2IViDQOOk3KC9iXS2Iciq+l21TvccAXFb6m 9U7tZuxFIqtub6F98Yk7TVga1V7m0au7Rm0XddcJP4Gg4WEL4vg7yEYMv0jF+h7+iNPK OiF7UPVi0OLq4FvmQvQ4g/EX7PkjmFN+2GZJdLuYVabfs3qSqkZaehsMlySZA6q+fTvA NffEyMI5mOQPh+OOM0VEYvfK2meEQLeWc8b2te53giYg0EgYQ9PgjvU7e0rnGI68ZAa4 S2UE/IQMyp9rGgPRvVy7mpmZaiN0pL+lIpa1P0cj/7ORYj0cF75qt73IuYOi5ktLhrBg 3msw== X-Gm-Message-State: AJIora/t+MM1G0Tdu4EgKeSsdd6qQJzsTEbIVAzI+cquvt5BlHDjXUFO AOaWQnmrDLGiEaQRDtirxg/PwHdkyUKQ40XnpeLJ/F77Pdy1qduItjpTxCnE+m75TlKDyAW1SFs hxFMH2y+n9uosb3Ycpz4= X-Received: by 2002:a2e:6e0c:0:b0:255:98fb:cb45 with SMTP id j12-20020a2e6e0c000000b0025598fbcb45mr2776571ljc.55.1655389766802; 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: 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 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