Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6053865rwd; Wed, 24 May 2023 10:06:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+WNFP7WnC4c8YU+A5VfpRg6UX3pJChqiD0MbkHxWaIYhuIp6nxrOL6VooZ5lwt3MlG0c6 X-Received: by 2002:a17:90b:3749:b0:247:8ce1:996e with SMTP id ne9-20020a17090b374900b002478ce1996emr15680875pjb.29.1684948018139; Wed, 24 May 2023 10:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684948018; cv=none; d=google.com; s=arc-20160816; b=SdD+3zN7hV94mtfrh9RNkiRVg4yKmdsIuLXJ7Mh7dzE3HWGI9rPMo6GyD1t7uERAcM zu2txDW6WbezYVpqTRUCv3kc4OwH3Tx2GKdaFkhkTvGVxhw69s8PEw9tXiP1sp2WlX4e lm6oEBBgaxi3nEJIUg441XzUvqZ6yP6hzEtEQebRqkQ//PKistdgIITT/rflvUH7qzPO U05sT7OSksCLcBigqFd6hHO8CSujaGtZtTghmuqJx9tIqEOTbZzxJDjDM8XhtyAl8Mwk ZAb+J3xwCfM5NalOfBvvM0Qrarl/k6SYBN0pgPpbxL/+LRloM9U6mWX3n1nT1cWg5rYi 5zWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=c52Wx5gVDucU8yW4B1ni7YIFK5C1wFPEKZmBqYnCprk=; b=AXIvIhmUM8sUV+PwpK6rhIip3fRPDvTBuLlqC536rdFGu6Lhxg/2J2WbJ2wMsKx7XS s1DEIlDllUC5UN7wCPfOwWDQ8WpA1gr2E4j6o3HA7vhr9PfLyjuh1m+EESyjaM7WtSRM YLS1brNWER2JsTmsqmCTiE4jKjbNLQGXnN9zeAogYnCFwrOltZXOV2JEkIp06wNBVcVi Le9SsY43KPTzUfANYM0fcp5yhy9t7qBUuvcWxvX3YBjW6loCDhvJ4kT44KrLEM3SSXAV nP8/e90J68IXZzpYcjcFt94+NC5a8U1EP8aE9nXoShodnJEYQxLY7GXw1r/WrjI9YwJx nEJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=D56ZvRFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a17090ae51400b002476baf6b4bsi277838pjy.149.2023.05.24.10.06.45; Wed, 24 May 2023 10:06:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=D56ZvRFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbjEXRCu (ORCPT + 99 others); Wed, 24 May 2023 13:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbjEXRCt (ORCPT ); Wed, 24 May 2023 13:02:49 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FEFDBB; Wed, 24 May 2023 10:02:48 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-75b0df7b225so92906085a.1; Wed, 24 May 2023 10:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684947768; x=1687539768; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=c52Wx5gVDucU8yW4B1ni7YIFK5C1wFPEKZmBqYnCprk=; b=D56ZvRFwklB5J3kFeIVqKOeeLB0IQH7EItC8K4tS4thFpG5MqlWh9+yo4GCNvjEoa9 TFyvLLitG7b27mz0/nitnSnD81oeGspf0vhmtkMY0bhZDUPOQd0YF8c+z6TN10mpakRD DK73pL+IotjPWSEjYty+6yfrQsuUDSpwL3HO1MD+z9fMZANo9vl83W32Qar2VRFMIGDk u072R/HZeNWeC4S9BwzpL3mKUB1IJFOqApANvCvV3i7H5+aBF2GwoZfIMJ4+2eecqeQO chfjvGN5dqb11k0khY2jf/eRj3hGnZHJzYxers5Qxnvw515Gz7VzNH1jYI9qqLYipO5y opfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684947768; x=1687539768; 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=c52Wx5gVDucU8yW4B1ni7YIFK5C1wFPEKZmBqYnCprk=; b=baD5SrRU8diEZgzfDbAxSeMUIJCWBntCANWu9wmlAutDsnzsFMcMYfd7KJv6NUlApQ hWGNfa5odwrYoAbRxG1Metb74dkwSVjjxRL0ROPYdyGUay41i41bj76szz5yW6B1KXfV dB3HqQiLoBHnV7qDfzLFxdVWpCc1RBAC3tTrbdn/Ipd63TU8rHzzTMZeJczDMfvmXYLp XV8/OmE6/1xI/xBkpEgy1Wbdf9wW10xPyA+7K5pUm90322tBwbqF5vEHjxuIvSP7eSom Tyk3zOE6l/3sElb8DTPCIxDijT/M/km7ReCHJkzirp+vuk99TAPzot8xWS9DsXi3Ezzp dqAA== X-Gm-Message-State: AC+VfDwykreadVvBXwhSO7JcsoSqVBTxQrCZaw+F7SKU/tnX4ghoom1p aMJYXbl/HwZdUhe208KEYMG/TYp1Liql5gHwXywTKgAr X-Received: by 2002:a37:492:0:b0:75b:23a0:d9f4 with SMTP id 140-20020a370492000000b0075b23a0d9f4mr8426925qke.74.1684947767725; Wed, 24 May 2023 10:02:47 -0700 (PDT) MIME-Version: 1.0 References: <20230523223944.691076-1-Kenny.Ho@amd.com> <01936d68-85d3-4d20-9beb-27ff9f62d826@lunn.ch> In-Reply-To: From: Kenny Ho Date: Wed, 24 May 2023 13:02:36 -0400 Message-ID: Subject: Re: [PATCH] Remove hardcoded static string length To: Andrew Lunn Cc: Marc Dionne , Kenny Ho , David Howells , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-afs@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 24, 2023 at 12:02=E2=80=AFPM Andrew Lunn wrote= : > So the compiler warning/error needs to be fixed a different want. Understood. Would caping the length at iov_len with a ternary be sufficien= t? Regards, Kenny