From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) (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 4C076217723 for ; Tue, 23 Jun 2026 19:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782242434; cv=none; b=K/9jnZMIUrxMfLR8g+xwq3B8Q3MM3ZZYPokxS2mH1sbEVfo4i5kM7uYkmuVG6sj0jDUo75mS5Rpl9bU8JRLBc3mq/dU8fgh/IVlKzsa4pRY5lGvV3tzWD44Q4anJK65uXNpZ6uwvvYGF3CF6kLl1gVEqCwTHKYolt8Qeiuivn/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782242434; c=relaxed/simple; bh=9fVaof5ztsHlayS0B5rZApkCewccK1Xwh1g0n5GgroU=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=L4slHkO60UYSapLGgH01EMKVqSJaIXmU21B4lPJlcmFNYCpiyRfWJUJ60jkM8D6ty8nMd1XxE3gZ6l9/tjgQFXpyUacPB8kFbG0oLgT+z+O+U4aZHJdwHFJ/n7f7kbA/MKw3uR8orjYorx1Hkkr/Ff9hfYtWJUTneswRX5YJs9Q= 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.16 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 omf09.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 135D2C0123; Tue, 23 Jun 2026 19:20:26 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA id 2FCE420028; Tue, 23 Jun 2026 19:20:24 +0000 (UTC) Message-ID: <5bcdddfba2d575e78a548359c9c882e06a3a558f.camel@perches.com> Subject: Re: [RFC] checkpatch: Introduce a check for the nesting of brackets From: Joe Perches To: Manuel Ebner , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , open list Date: Tue, 23 Jun 2026 12:20:23 -0700 In-Reply-To: <20260623190937.47435-3-manuelebner@mailbox.org> References: <20260623190937.47435-3-manuelebner@mailbox.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamout03 X-Rspamd-Queue-Id: 2FCE420028 X-Stat-Signature: tbprsc88cp8yzzhu8mp1ookmrbmw9318 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19Ef/10Znqqx560wgd+34A2B0bgSqnBkgc= X-HE-Tag: 1782242424-834782 X-HE-Meta: U2FsdGVkX18eaFaGCRJTYgZw+SX2q8erTwe//7qx2QX5aNkg9XNjGsheW3b7iprtXZrA7eJeko23mCXspBMUwrw/rFM/POR3ofxBT4XnctFxIFpB2ohCpNBE0qxzpuY5D6aez0H9/j2K6hTflSTqiPRzh6TILryoK6MHLVDAg+fy8kwV/I2zKkaaxBAU91thnVXGD8kMfOMSrKgvvXMZM9wANKWidpSBZsUJD+lSWvkO2gd853JOnqokRDmrxIvGEhOMiv7zEF6uQSFtH2Tka93wtm+FC54TMSSPIBjSaFcn6XVAz6P3MgAJw0qnDiXi On Tue, 2026-06-23 at 21:09 +0200, Manuel Ebner wrote: > I have a local script that checks files for the right nesting of brackets= . > With the help of the script I managed to do a couple patches [1]. Unfortu= nately > there are (still) a lot of false positives [2]. I do not filter false pos= itives > (yet). >=20 > To simplify testing the new check is enabled and warns(WARN()). The final > version would be disabled by default and would trigger CHK(). >=20 > Would this addition, if cleaned up, get into checkpatch.pl? probably not as it's not suitable for patches.