From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 656D1C43334 for ; Fri, 17 Jun 2022 03:24:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379656AbiFQDYw (ORCPT ); Thu, 16 Jun 2022 23:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233449AbiFQDYu (ORCPT ); Thu, 16 Jun 2022 23:24:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D43C864BDB for ; Thu, 16 Jun 2022 20:24:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8C010B826F9 for ; Fri, 17 Jun 2022 03:24:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0350BC3411C; Fri, 17 Jun 2022 03:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655436287; bh=1DagKBUhCUSPYrZZeXYgKRjvuZGSVJ+ipuiOEP7/ikM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mPRUBxtSI2WFB9cy6gmtVz47LaEe1MiXZoao1SMEbWE10pEVRjH+t8eWJHpdsvcws TQGXtow1vbh0PyrCXdO7pSm832R+PeViAkOTl/B5YwBxKmY+WAUILHIL/ZZD/f91Ec 2xtgpMtKIs0a5FqzpPZuKzt5XPPNGX58++bIWNLxuMwhOtjgUnJUmv9okDhTs4hyII 7QMJzoP2NsFCPSpeWi9qX6+ga5u9b/5QSuumJcZWAgU7/yK8QYeUidiVZGcNhsmk1t ms7+3/ztMd3L/ThyQ0L9Vr4A9IYWfD124iLNsS8sLQvkSXEUFgTlf0XcbFIAVsaJEE 19H2bGLuLQbgg== Date: Thu, 16 Jun 2022 20:24:45 -0700 From: Jakub Kicinski To: Stephen Hemminger Cc: HighW4y2H3ll , netdev@vger.kernel.org Subject: Re: [PATCH] Fix Fortify String build warnings caused by the memcpy check in hinic_devlink.c. Message-ID: <20220616202445.559b95c9@kernel.org> In-Reply-To: <20220616201216.2eefad10@hermes.local> References: <20220616235727.36546-1-huzh@nyu.edu> <20220616201216.2eefad10@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 16 Jun 2022 20:12:16 -0700 Stephen Hemminger wrote: > Patch is missing signed-of-by > > Using [0] inside union will cause warnings in future since you are referencing > outside of bounds of array. > > Also indentation is wrong, you need to indent the union BTW there's already a fix from Kees pending for this.