Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp45023lqc; Thu, 7 Mar 2024 09:50:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWAW9pDo82ty6IOIuKNlB5GVjtfXb5rxWsjZvsf2BXIwCd0HyyApCxacr3zVuNMDeBCF2+VxjMHR0HsFq+iR0NAXq7KsYbhkgpXgDd5Qw== X-Google-Smtp-Source: AGHT+IHSwcRuo9N2mNdyLPj1Ay7dDCx5zfdd5rj/fMyZaJviUC4W/Th5FuHnVdY0vLaOrR/NN6Tg X-Received: by 2002:a05:6214:8ed:b0:690:a707:8857 with SMTP id dr13-20020a05621408ed00b00690a7078857mr2003784qvb.62.1709833837667; Thu, 07 Mar 2024 09:50:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709833837; cv=pass; d=google.com; s=arc-20160816; b=lzT6PhBdosLhGXZX3iWEthajqgzFPRTQthnjHhlbYmq5TmX7RUe9BdjizhFGnZlB0J XRb17KzR/oK8YoElnU4WreX61/nR/mg3pIY6LA/4tJMFrfRzVw3h1Gs6c/WSekmFWxV+ UypStf6LgJjPTBgsuaHq++rzY5nby4m6nap7lxEU3sYxwlxOkBZZGB8IWUVD4TIaXiQD q6WCvX4HV9Ze1FrQCHspbJcceckIldgnjtld0hpXFLq3as+dVJ5lRybH5oHEVQGCvV7I UAbjqTYMw0mflDnuJTuGfxBVRSuCtbXzCYDTFNnC+exuTIIhSn9eYfMDsRy35DzJ/uns 9UNg== 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 :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=FRSoQ1e7xVixCsEly5PH2t5fxfvA/091EKhrvhtk0F4=; fh=Bdwo07wqwQfZeLOyf43Ja69DiRcjjFO+mXuApd4spJs=; b=SUE9WUJ1nKgj+cmmW2VB3ktry3sqPpdqoXzYDNsKCnD+MGQu5zQXp2rQ5az7UcZOQ4 sxMQSl8yG6QItigWLsHfqce4vI6EUBu+RH8O68c83C37NiXm4MgCiRyBWjnwQ9iBe6mI kUybHZESTWRNIKXrBD8KAHBL73wbHYuL1eiImXgdjT/75rgkK8d60Cjzf6kikrSxZqNE 2IcSjO5Q+9OUmHoOduFp3d3BY8qBbf6jRlD9K4SP4iuuvaHsOg4oYiTR87caqWAsusSq 0R942eyhSkPA1DPWRfVcYjs00aiVlCdPSlys7V6437kRq7ih5jKaiTMCovIPu2GtZxIt hqbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-95974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95974-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q6-20020a05621419e600b0068fcfc7c8a2si17045888qvc.382.2024.03.07.09.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 09:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-95974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95974-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1B99C1C2134E for ; Thu, 7 Mar 2024 17:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA0A5131723; Thu, 7 Mar 2024 17:50:29 +0000 (UTC) Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) (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 D457F130E23; Thu, 7 Mar 2024 17:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709833829; cv=none; b=MAklZEUdOruPMdFiK5t0navwoDKuTxDuq9Zmk6oT+rSbs8m2gSE2CwCdQumpwxyT7PTGcxtjIuucM0WYUlTTqZ9HQACJzhWXZwQ+C1y3AWMbjqSXFmmT6TYhBmE4i7Z4nXTtx4T1fKHm4NMA6xAumdIzgOsHUNA2YpeGDIwHdwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709833829; c=relaxed/simple; bh=UkQw+M2hziB+AtfHClDHqBrPe0u0iSyiMBdceYnvNxw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=O29iQhebTmK42pab0P1Sk6eoQpy+j5kgGStkiHfSSIBhSJjwypIWArFG07YIcDAI9nma7INVkqQyO3Lkm6F9lAVg1z46K4RgDwHw64SowOY3UaS5/Hzlv+DD9vIEgQINpWlYGZ8MS3jqQVl3hQJElLirTYz1nGFEzAf9lEgFhdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com; spf=pass smtp.mailfrom=perches.com; arc=none smtp.client-ip=216.40.44.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=perches.com Received: from omf03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 03BBB1C14D8; Thu, 7 Mar 2024 17:13:35 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA id 5E9B76000B; Thu, 7 Mar 2024 17:13:33 +0000 (UTC) Message-ID: <3d9e47beeb08b3319651b49b81da4271cbbcad96.camel@perches.com> Subject: Re: checkpatch.pl getting stuck on a macro in mm/kmsan/kmsan_test.c From: Joe Perches To: Lukas Bulwahn , Dan Carpenter Cc: kernel-janitors , Linux Kernel Mailing List Date: Thu, 07 Mar 2024 09:13:32 -0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Queue-Id: 5E9B76000B X-Stat-Signature: bcjmq85es8tghntjkgwc514jcdkrqkb4 X-Rspamd-Server: rspamout01 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+lFb7snM1uJiWroRAnCi7TfyQNi+Z2QnM= X-HE-Tag: 1709831613-598557 X-HE-Meta: U2FsdGVkX1/fqsZ7gRjkaPArITu2uknZnBXYsXrXUZ/0LIJoV41Ft4QGlY8WStIHj6JK0A/r25AhV4Xs1gk38f/cs+yGSdF9PNMuk6mMWMHLnIjR8OeQyOhBmTmntEML7n6fcwy1f0ywFPhBvJLBA12DqEhI3ouG8JxO1b6QMEbYC5ZwiSqARvUApEJBobDOf2A1/1woP6uPvSJzatdxN2VndGDFXCs7kpFODaYmKL/uTnOi+Lro4GK16qiZthtEkNsc1j6Lj2/i+70ZGA7mslan9AoB5tQt9CJeSSe+5DKKFGsalq787+RPFnzn6P8L On Wed, 2024-03-06 at 10:33 +0100, Lukas Bulwahn wrote: > Dear Joe, >=20 > while running checkpatch.pl -f on all files in the kernel repository > (v6.8-rc1) for some experiment, I noticed that checkpatch.pl got stuck > on mm/kmsan/kmsan_test.c, i.e., ./scripts/checkpatch.pl -f > mm/kmsan/kmsan_test.c never terminates. >=20 > I could already boil it down to checkpatch getting stuck on the macro > #define DEFINE_TEST_MEMSETXX(size), see lines 541 to 554 in > mm/kmsan/kmsan_test.c on v6.8-rc1. >=20 > I do not know if it is worth fixing, but certainly I was surprised > that reasonable code can put checkpatch into some stuck state. >=20 I know why it hangs. I'll give it a think for a bit. I rather doubt Dan's suggestion is the appropriate one. Code is: volatile uint##size##_t uninit; \ and in checkpatch line 2304: $possible =3D~ s/\s*$Type\s*//g; where uint is a $Type it removes.