Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1162463rwd; Thu, 25 May 2023 08:48:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Gqv6G/CzbpxhCYqff0Zg2JYm+mq/ei+8FONV1dZmNQh55QPuxf/VZwxhyKZ2RCvQulDhS X-Received: by 2002:a05:6a21:7899:b0:10b:cc13:5ac8 with SMTP id bf25-20020a056a21789900b0010bcc135ac8mr14761887pzc.27.1685029683903; Thu, 25 May 2023 08:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685029683; cv=none; d=google.com; s=arc-20160816; b=Jcurm7+DNJpEzfqgJuJ3Ebd19A4QaWgUSVnvznMcJAAMzDQZWdArnWV8IvVUkmhW4+ zaqVwXclN8cY0HpCZS12RVpPXIYH7KHev7GXRnri03e7Wje6DkdD1hwXd2S/RJ8glWmT KPwc6WRlGNxcz2gzuNDJBxCzrrlC+KP9SUSMeqirlAelqR9KpCdO/qT6Trto/Ziei/lN S+90xQpocpeDgnasCm1+cPBL23xXvDjcYm0+FxvBmYPBqZszt0p/dXjoAdGvbvEEKsqN Di36zT8YkOZoPpMtePjwQcbkSDgSv4N4vaEGQ8yE7xnwfZU5/e/2sfTJy/2Qnhq0d31d lwNg== 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=/9d5HraNv7RlWulERyCsylj00zboFv7KU4ycsvo9n/0=; b=fiD3AvdrwqXJHJLsz7MQdfBS0N8hLqr8PXb4zFyWJ8OBJWd/cQqfwMjcdggW7c3noU fI4JJH1GmpfFD2X6KkP5wOb/AEuzBGqvq2/pjhm946otXh/QCsgkRHXdG+eI3PaMix5M +kKV1uDiFV90eIhq9sOuq2oxS28PEKToXgHS2w91BbnAXyygYGWPQiSFTNlvMyf1L5X4 ISyRUDUzmtXvxBZOTgrs+E7hz8JxIZ8TGZEIJ8qr7IakdTYNE+SWKxkaehrtSPrv68lb TwmklNb9IFHWB773Yzbe7APTqtYFse4+Qz06G0XtEtxsP4Kr1dbJnEXIgQFabw6Nulit Bjbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="TZzb5+2/"; 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 k17-20020aa79991000000b0064cf289a2d8si1764276pfh.127.2023.05.25.08.47.48; Thu, 25 May 2023 08:48:03 -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="TZzb5+2/"; 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 S241455AbjEYPiI (ORCPT + 99 others); Thu, 25 May 2023 11:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234225AbjEYPiH (ORCPT ); Thu, 25 May 2023 11:38:07 -0400 Received: from mail-vk1-xa2b.google.com (mail-vk1-xa2b.google.com [IPv6:2607:f8b0:4864:20::a2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7FC99; Thu, 25 May 2023 08:38:07 -0700 (PDT) Received: by mail-vk1-xa2b.google.com with SMTP id 71dfb90a1353d-456f7ea8694so237357e0c.0; Thu, 25 May 2023 08:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685029086; x=1687621086; 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=/9d5HraNv7RlWulERyCsylj00zboFv7KU4ycsvo9n/0=; b=TZzb5+2/XZxAz9DJKwqmMw7eEONON3ZLhRN2IzIcwwV8U/9lRUVWaoqY3P9GL/EGbk lHycfck0D0xnwuf9zv3933Jz3UjhS9mM0YLFQOqWRHju0zNrBLfCT4agxSQk/Af755vY hfruqStbC4UQDilS0swaaLIKFT+dIt5lICIDi0E1Oxglx0UBDioJ2XjBvSmhE+C0UA5H j9RebkYy8DQqCRnuTv7IOx8l/jXGxTmc5vUtqhwsYttr1xrCSQ9LpUN2fLTOzXDUC6sQ bYIIeVqT7AggfNtyCtK7cJ6vTFtlpTN3e2efPD/vZWZAJ4ad4DWxCNbuzCHyw06eGw6P f/wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029086; x=1687621086; 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=/9d5HraNv7RlWulERyCsylj00zboFv7KU4ycsvo9n/0=; b=COyK/rgmq0air5TrClTvsbA/PczhWJaoJ8bhb+l1eoiqGegpVUCn73uHvgnDnI+req WO6o3ceLWyPSvsAfijoYmIiEvh48Afba1fdUPAajiSNKxhej078VEfM9bMPjzJi+XOwF J+qJqw9fh/2AiPHEWtyiaGcnGc1rIAcrURz6hatT6wrek3Trog5Fn2nSWHGaj7SyFJ94 Hvi8qlA8wj1SVjXM3KZkHjma2fSoELqHuVdyjE/KqRHVGmGMAb4dDC6PI0FtrfHMASyA R0y81aPty+GIi96R25nrtqHemiNlOAUfxnDibLLeq9oskMshzFXMcdx11Ivh5JfiLVD8 +MaA== X-Gm-Message-State: AC+VfDzKTYAgn2VSc9MTKCXmB+bNsbl1qsm5B4i8RAvJaMe1BqtzcmQS Sd97SCQ4ehk3oQB9kHHPBvqK3vM06cNYAPqqh3s= X-Received: by 2002:a1f:5584:0:b0:450:a3:7c2e with SMTP id j126-20020a1f5584000000b0045000a37c2emr5960444vkb.7.1685029086050; Thu, 25 May 2023 08:38:06 -0700 (PDT) MIME-Version: 1.0 References: <20230523223944.691076-1-Kenny.Ho@amd.com> <01936d68-85d3-4d20-9beb-27ff9f62d826@lunn.ch> <5b1355b8-17f7-49c8-b7b5-3d9ecdb146ce@lunn.ch> <30d65ea9170d4f60bd76ed516541cb46@AcuMS.aculab.com> <81d01562a59a4fb49cd4681ebcf2e74a@AcuMS.aculab.com> In-Reply-To: <81d01562a59a4fb49cd4681ebcf2e74a@AcuMS.aculab.com> From: Kenny Ho Date: Thu, 25 May 2023 11:37:54 -0400 Message-ID: Subject: Re: [PATCH] Remove hardcoded static string length To: David Laight Cc: Andrew Lunn , 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 Thu, May 25, 2023 at 11:04=E2=80=AFAM David Laight wrote: > But isn't UTS_RELEASE usually much shorter? > I think it is what 'uname -r' prints, the longest I've seen recently > is "3.10.0-1127.19.1.el7.x86_64" - well under the limit. Usually yes, but I believe LOCALVERSION can be appended to KERNELRELEASE / UTS_RELEASE which can makes it much longer. > > "The standard formulation seems to be: built > > --
" > > Which I don't recall the string actually matching? > Also the people who like reproducible builds don't like __DATE__. That's correct, it was not matching even when it was introduced. I am simply taking that as people caring about the content and not simply making rxrpc_version_string =3D=3D UTS_RELEASE. The current format is: "linux-" UTS_RELEASE " AF_RXRPC" Kenny