Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1839914lqg; Mon, 4 Mar 2024 05:40:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXaX7jzDlVsJrus0b5MYtc2MtfB2IgB1Yep/xyOz7ehaRLrtAd5MIG8g+bBSh7V3vN0wlXnVnnEXGVTwcO/S+XVH3H5tjo6Re9pZ1Ut9A== X-Google-Smtp-Source: AGHT+IEmVuNxc8ImKUXnfQuyZKTl3BWhbf7AD7dKcnBs9e7QOQrUeLHEYpo5RcSTN5sCwDySNlcB X-Received: by 2002:aa7:d61a:0:b0:567:17bb:14d2 with SMTP id c26-20020aa7d61a000000b0056717bb14d2mr3717898edr.16.1709559600928; Mon, 04 Mar 2024 05:40:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709559600; cv=pass; d=google.com; s=arc-20160816; b=Soegt4m2sq7OP7BykrFIKHAAnQ1pMBVznwswoQn7nkgxNCNRGf9lDbV8zNvmOcrkUo 3DUUjbz3cHz7y85Bo87jrK+L7oTg9VY05tffFpsgWHp+RvZtlmw/MFBNvePmrYdFnzr4 9jqrDTCFk9MLvPLSZSUHkGHlm8NaZhT9nOKEbkK6YvyH5dNMjJem2ww/xAWQsaTR7W0D hYNtLHz4Y2G+LWZR15wjYHu7e3Kp0q1PRIahSPCE9yj+Rif0TowwSTtWSVcqXSDUkyp8 rg73PJ0ePpOocSTrPPVxItMhdnqknnRXnF1OesQ2UWcjoyZlHFf+SlihqJ1v+3TSOvdI z1+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=g/HLnVv992UFJH8TinGv51zquGqHoXPwXe5EaET4ry8=; fh=a4ehwBtHsU9za8MITFtg6cIWbm431Bb+5ubNmrNKJGU=; b=jCrJ9CJRoK0vkon6oNzcJUm3nu5HIKgbhT8IJ2U1Irgp2LbrzfhZHGe0fzUJamj9kB hCHZHMV0DkGj22SWjFXxTDMDBr00a6y7qBj1x70WX3AVaQdpHBrw0RBlv8KP+zToA/6C ZK4YBLAUYlIGN01bZkD5dwIO/iKOm1xVcXl7O4oy1YTDxtcnrKMiEMtwyzvorcNMMm+h +I7JD2IU+J/l3hwnGXfHKp1Rm/AeYRlDkaiR5O/Wz1qnwFCy9j4Mwn60OAnIVtSyL6X0 qpcnzaweEzYrUXBvV38Ga7zcVTeMkdnLPsSpQ3T5YQSkkHBKk51HhpTz1g9wbRGItjn4 7t6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=KF1Y+MPC; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-90667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r11-20020aa7da0b000000b0056715de2645si1776873eds.661.2024.03.04.05.40.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 05:40:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=KF1Y+MPC; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-90667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A83D91F26A86 for ; Mon, 4 Mar 2024 13:40:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C98443F9FE; Mon, 4 Mar 2024 13:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="KF1Y+MPC" Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EC4C3E494; Mon, 4 Mar 2024 13:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559570; cv=none; b=Q42uBL73TQ6nXlvbmeC+PO4Bb/HxJxsBe7Vt/XnecDZ+7Q0F8pQMK4hMlspR00HU0yOLqmya/+tkAC5J/Z/Anh6RvRBjtibIC8lKHwodQmmQs08sxXx8jl5bOlKJsp2k0QfvMj5dw/t2dRwzA4K6VgGIHmCci3ZQeI8AvcwmkCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559570; c=relaxed/simple; bh=lMEQDj4wA9CSoQcPHMZJJYk/61VCQ5aWH38lX7E2mnM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=IHuPoDAkPe+WIQIGdPwYiHPIWAxrsyukjVUcWSx5MhcTAspkXmptZZsXFyKyxRq0pCkTANweuSg/jNhWOk3rYxEKoks8wyiyb45sJymOBWxpaZyYccVkx5MNcm2Sa9F0y52iYI7pyAwdfjrteLq7JtIBCEqZqStFZivMz8yIjoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=KF1Y+MPC; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 95400418BA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1709559567; bh=g/HLnVv992UFJH8TinGv51zquGqHoXPwXe5EaET4ry8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KF1Y+MPCWxeBr/CzWgXbVtwk+PHp4e2ll2QZXoK9uugY79bxprrAudOWkYvGcHcZc gldJYfNEIgTvFUsYXWS2A/9xqxIPSinfIppWBNwfyqd/mK8SPX+gNvPxlFjmmZKhoJ Sns6MArjjkc+oUP+J8nYzgkUncB5ozJSdOFely+kgk6BP8JnsmBuybujrK1Hqq3tuN StUWiR4BCDTUGF2DghM1RiCR2VMHMl5d6yINwaiFLq9iUqOS9ESZpTPew3tMqm5zAy 77EXkhBHZQPn/NZlRBiBXG6okfowFNwHCU+RHYQ5U6hQ+AG1a0N+NZkO8Z2lly3tvT j35uFqcnTcigQ== Received: from localhost (mdns.lwn.net [45.79.72.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 95400418BA; Mon, 4 Mar 2024 13:39:27 +0000 (UTC) From: Jonathan Corbet To: Salvatore Bonaccorso , regressions@lists.linux.dev, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Ben Hutchings , Kees Cook , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Aditya Srivastava , 1064035@bugs.debian.org Subject: Re: [regression 5.10.y] linux-doc builds: Global symbol "$args" requires explicit package name (did you forget to declare "my $args"?) at ./scripts/kernel-doc line 1236. In-Reply-To: References: Date: Mon, 04 Mar 2024 06:39:26 -0700 Message-ID: <877ciiw1yp.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Salvatore Bonaccorso writes: > Hi, > > Ben Hutchings reported in https://bugs.debian.org/1064035 a problem > with the kernel-doc builds once 3080ea5553cc ("stddef: Introduce > DECLARE_FLEX_ARRAY() helper") got applied in 5.10.210 (as > prerequisite of another fix in 5.10.y): > >> The backport of commit 3080ea5553cc "stddef: Introduce >> DECLARE_FLEX_ARRAY() helper" modified scripts/kernel-doc and >> introduced a syntax error: >> >> Global symbol "$args" requires explicit package name (did you forget to declare "my $args"?) at ./scripts/kernel-doc line 1236. >> Global symbol "$args" requires explicit package name (did you forget to declare "my $args"?) at ./scripts/kernel-doc line 1236. >> Execution of ./scripts/kernel-doc aborted due to compilation errors. >> >> This doesn't stop the documentation build process, but causes the >> documentation that should be extracted by kernel-doc to be missing >> from linux-doc-5.10. >> >> We should be able to fix this by eithering backport commit >> e86bdb24375a "scripts: kernel-doc: reduce repeated regex expressions >> into variables" or replacing /$args/ with /([^,)]+)/. >> >> Ben. > > What would be prefered here from stable maintainers point of view? > AFAICS e86bdb24375a ("scripts: kernel-doc: reduce repeated regex > expressions into variables") won't apply cleanly and needs some > refactoring. The alternative pointed out by Ben would be to replace > the /$args/ with /([^,)]+)/. Hmm...this is the first I see of any of this... The latter fix seems like the more straightforward of the two. The only concern might be if there are other kernel-doc backports that might run afoul of the same problem, hopefully not. But this makes me wonder if there are other stable kernels that are affected as well. I guess that, despite all of the testing being done on stable updates, nobody is testing the docs build? Thanks, jon