From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) (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 9F36A3EF66A for ; Wed, 20 May 2026 15:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779290007; cv=none; b=gb12q8mzazJixotJCJXZfakTT/2FD9DOusLGjDXJqjsaUBWjUxJ6LOWueLcnSbPa7zsTOCVasCUerWJ2Qa1BtnHbG8CPEfRMfMUb/Yg1BW3UgjBP1e3YudJZbuJVGXjaj0mX2s/tqdmXh3De7ePK6uDPkiiCRoFsPqA9jt90zoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779290007; c=relaxed/simple; bh=9oAiyd9FU5WLS55T0M0wJkmQE4m+TciK6Ie7iUZzdXw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=tYAlQiarmWs9tsydr8kkEc2lRmJw3RFK4QX0OqRXHr15+ZSEiwGwIFZgnUf+hHO0unL+wPsgd5pey2r0mp4rp9tSUMK00qZl0CmXsgmdABm8eLd9UZ3BQT2Zvu0y/c+rgWfBy7V2r8JJOsbNVgPKxiqeB7+5CQqcxoSgPpiwsLg= 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.15 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 omf08.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay04.hostedemail.com (Postfix) with ESMTP id CF3151A0345; Wed, 20 May 2026 15:13:23 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA id D413C2002B; Wed, 20 May 2026 15:13:21 +0000 (UTC) Message-ID: <825c889d29ad7332678d6bd0a467465252f4797b.camel@perches.com> Subject: Re: [PATCH v3 1/3] checkpatch: Add more user space directories to is_userspace() From: Joe Perches To: Petr Vorel , linux-kernel@vger.kernel.org Cc: Simon Glass , Dwaipayan Ray , Lukas Bulwahn Date: Wed, 20 May 2026 08:13:20 -0700 In-Reply-To: <20260520100829.93791-2-pvorel@suse.cz> References: <20260520100829.93791-1-pvorel@suse.cz> <20260520100829.93791-2-pvorel@suse.cz> 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-Queue-Id: D413C2002B X-Stat-Signature: udpgk5i97ssqm8jfzwzjmcgxjc7txpta X-Rspamd-Server: rspamout01 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19xAwQaRRKhf6OE4f1e8qtxWPj2pqnbvZ0= X-HE-Tag: 1779290001-723891 X-HE-Meta: U2FsdGVkX19WM0c0iVCBzrIT7i0JIygFIpcqe4EF7U+7ewo2CVPbZ8/Tr8qXEj6WkWJHgOeASUHsbda3uGnLuyjNLLsqj6BNBxH1vVqqu7wpVulam8AikCR69wIfUmUZZAMWxV8Qa76ONIDAfWDJ1lka8Wo4pV44RNwIRsQT0ETVvwFR49QIAgaQWKJooU+khzGaNSv3fgI3h4uQo3hL0ryz3jGkMOmThxUIDg84xpTmTs4+pe+U5lOJmumuRvfzRivJfkjnFBZlJ4aRMiaCFPF8/hm9Jfr6DIgPisrEmAU6/Es3RDcd/lI2hSf2cD35 On Wed, 2026-05-20 at 12:08 +0200, Petr Vorel wrote: > arch/*/tools/ and arch/*/boot/tools/ are directories containing user > space tools. This helps not only to strscpy checks but also to CamelCase > checks in the next commit to be more precise. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -2669,7 +2669,10 @@ sub exclude_global_initialisers { > =20 > sub is_userspace { > my ($realfile) =3D @_; > - return ($realfile =3D~ m@^tools/@ || $realfile =3D~ m@^scripts/@); > + return ($realfile =3D~ m@^tools/@ || > + $realfile =3D~ m@^scripts/@ || > + $realfile =3D~ m@^arch/[^/]+/tools/@ || > + $realfile =3D~ m@^arch/[^/]+/boot/tools/@); Perhaps a more generic test like m@^arch/.*\btools\b@