From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) (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 C3ACE4C900F for ; Mon, 11 May 2026 18:54:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778525655; cv=none; b=rVgJbzJJMpemqsUQFVoFbUlmTrB1FItgNRJYOgZSzFnSwK8MoUdRb4mf80qCSaFRWiADBywXRHgM6fxiRwxcDWK17hlnC9zBTU+NBBsp3D/TnBPxej+YYnn4S+VCnxvB3JSs2emlzghdDce2Cs33L6MOIuxwOyz390X/ibsHTvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778525655; c=relaxed/simple; bh=QDHa6cy9SAuws+LIMYAhFJOzIcpivFl0ZmUWIPVyZn0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=OxFxCi6JznjWiaDX7G5dFgz0T/F6Wp5aapzjFZ3oxtIEQozfiDustSleEaS1muQFDfFm4+CU5lla1nLiF33UuIGE7azqZQjGSuKLiQezz2udR2nqV6Au4zwU6ZtdYiwrRZb6G8d5rKW63dSEG9i1Bb/CYpQF2496R4UDK2j67RU= 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.12 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 omf07.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 0631D1601D0; Mon, 11 May 2026 18:54:06 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA id BEA3620030; Mon, 11 May 2026 18:54:04 +0000 (UTC) Message-ID: <48d091b644b205b1dad326a855d5b766b042c120.camel@perches.com> Subject: Re: [PATCH 1/1] checkpatch: Ignore format macros From: Joe Perches To: Petr Vorel , linux-kernel@vger.kernel.org Cc: Simon Glass , Dwaipayan Ray , Lukas Bulwahn , Przemek Kitszel Date: Mon, 11 May 2026 11:54:03 -0700 In-Reply-To: <20260511121237.11030-1-pvorel@suse.cz> References: <20260511121237.11030-1-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-Stat-Signature: wus9uh1ghy73sfj9bq7mpow6j3is4w49 X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: BEA3620030 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19veJ2zL7iLI3htKw9L6vBRhnkOcFRxQ0Q= X-HE-Tag: 1778525644-361182 X-HE-Meta: U2FsdGVkX1/5zyOInPQ6cOrA26IJv8AZoBhpbYEu8YVzTPsh97J9NimTxIHedED82mT63whqKi7o5ohdYS8GDrieaVYzmDwTJICOyrEu1Gqf0VsHcvHEZ8rwvSIkcxFaOTAycSqld3cfxlAglB1QghOuybZrSvzgA65nQ9v8QjbcUujZ72NGqNEUvb06O9OrZlNEpuTuac9DkLa9J+kdCJrEJjNSTrmK9/gLQOk9RcGyuMp2qHomMC+Ff2TktGmUqCQTubC7yZdze53ZGbXIsUnUKtBJLFKjSG5cAsJhufiEmMHIzgQbuJmyqYt6AMxR On Mon, 2026-05-11 at 14:12 +0200, Petr Vorel wrote: > ``` > Constants from are used only in userspace tools, they are > from ISO C99, let's don't report it: >=20 > arch/mips/boot/tools/relocs.c:572: CHECK: Avoid CamelCase: > arch/s390/tools/relocs.c:52: CHECK: Avoid CamelCase: > tools/testing/selftests/mm/vm_util.c:244: CHECK: Avoid CamelCase: >=20 > Signed-off-by: Petr Vorel <[pvorel@suse.cz](mailto:pvorel@suse.cz)> Nack. This is userspace only and should be tested as such. > --- > scripts/checkpatch.pl | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 3727156e4ccad..4c7a952a418c0 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -5940,6 +5940,8 @@ sub process { > #Ignore SI style variants like nS, mV and dB > #(ie: max_uV, regulator_min_uA_show, RANGE_mA_VALUE) > $var !~ /^(?:[a-z0-9_]*|[A-Z0-9_]*)?_?[a-z][A-Z](?:_[a-z0-9_]+|_[= A-Z0-9_]+)?$/ && > +#Ignore format macros (e.g. PRIu64, SCNu64) > + $var !~ /^(?:PRI|SCN)[dioux][A-Z0-9]+$/ && > #Ignore some three character SI units explicitly, like MiB and KHz > $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) { > while ($var =3D~ m{\b($Ident)}g) { >=20 > ```