Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6019468rwd; Wed, 24 May 2023 09:42:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PDz3HRFrkRxE4R7CeiibNV2Ex07T2GbzcrY/z+V7tNRvMVCCyCdaCO27M17wnM5WKTtU0 X-Received: by 2002:a05:6a20:3c8d:b0:10c:467a:536f with SMTP id b13-20020a056a203c8d00b0010c467a536fmr8403724pzj.14.1684946529102; Wed, 24 May 2023 09:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684946529; cv=none; d=google.com; s=arc-20160816; b=qnZEefhW3wFgJHW50EKrp20+nq/rb3mgVyiESlXK7FoJ70e5XzDDOSqh8bjvLXLx+/ QeAcvQxynctAbYRlbs+pkyNxig0g9QYmcb4G+DoX0GQ8kFr5OgXiH0mV8hdiW5sq/nBY 6UQa1WGSsoQ/seh+bjUEXVzV8Rtih2lMZYJapzZDE6F1Mau2hTQz0vbdSfxrVmgb1px0 m6O07tm6fpweR/NCvrRHQqVqRd/wlnPLKfYl0ewSqSRRWn2n1mNmpVGTC8J8soqYVIpW g8Rr6PXvTdDDvyT+w0sFZR7CblUA/+d5sQc+4D7wbms6h759YjnOzH9vkZxx9IQfnnIz Ntpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DAOLtkgl++ZaUIbUqvEG8vYlbrCs6LpYkEDUBJQWXys=; b=f9DUNAsBqEtcqOb3tgOMY9+VO3KkXmTCG2ffuSH37/ckjDGVteoiWfZiR3UNXi7LkU FomvKpmXDwOq/K+wf+oDmzSTuEEGhaTuWLHU+aa7TXvcSKfZv4FKze+Qg3MvfwmOizb3 jzjeSiz+OTPCuAJ+7wF8PodmfyYXzGaOxa4pp/yFHqYfWlpNIChfbB32xLgMt2VJedyk zv1cQ/D+i/C92+6LEtfnvOKMQhwEOYgnCL+AUR/jA2yn3dlNr60skd//D+q9h/+DsMS5 gxMFHTjUgP1brDOo6VXAwvDSIHCTf98vrxTpbioCNTsJGdHKqlS9fC27lC1zJcXVAXYw m7bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=F11jg424; 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=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a63b254000000b0053413a8294fsi7279485pgo.899.2023.05.24.09.41.56; Wed, 24 May 2023 09:42:09 -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=@lunn.ch header.s=20171124 header.b=F11jg424; 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=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232199AbjEXQh0 (ORCPT + 99 others); Wed, 24 May 2023 12:37:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbjEXQhZ (ORCPT ); Wed, 24 May 2023 12:37:25 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39980E9; Wed, 24 May 2023 09:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=DAOLtkgl++ZaUIbUqvEG8vYlbrCs6LpYkEDUBJQWXys=; b=F11jg424/ylaN67WRXdL2jIGoM 0eBJyChaR9MjAvDP97H2duDxmjYzk9CIwdnWHXXMMSxQFjhkJXMN9egYpH4Vb4c/6yuam9TSVE1vM 9lqFsb7zX4IZE08nbKHvY7gZ96nNx352U3nCe3FYqM6kfmZx0qCYcOFoliyHlWgm3Ieo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q1qvm-00DoMd-Gz; Wed, 24 May 2023 18:01:42 +0200 Date: Wed, 24 May 2023 18:01:42 +0200 From: Andrew Lunn To: Marc Dionne Cc: 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, y2kenny@gmail.com Subject: Re: [PATCH] Remove hardcoded static string length Message-ID: References: <20230523223944.691076-1-Kenny.Ho@amd.com> <01936d68-85d3-4d20-9beb-27ff9f62d826@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 > I don't think there is an RFC describing RX, but the closest thing to > a spec (https://web.mit.edu/kolya/afs/rx/rx-spec) states: > > "If a server receives a packet with a type value of 13, and the > client-initiated flag set, it should respond with a 65-byte payload > containing a string that identifies the version of AFS software it is > running." > > So while it may not actually cause any issues (the few things that > look at the data just truncate past 65), it's probably best to keep > the response at a fixed 65 bytes. Thanks for the link and the quote. So the compiler warning/error needs to be fixed a different want. Andrew --- pw-bot: cr