From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) (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 542B5356748 for ; Mon, 11 May 2026 23:25:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778541939; cv=none; b=knOq6TYuzpJqb3BUN6fJQQhTsgyw8MyH3Np7X/McyUUEAjE6hz91IdbyZogSA8qpqaPU2kSRp2iEil1E6D/h4vpqcl2fUWJ/kxG4Q5vlJI1rM4xNmn0ahc9hRR33IaKwyHNNby31W4ZMihdwg4fqKaLuk+sObLhQAvHQBctl6p0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778541939; c=relaxed/simple; bh=Nr9q7W8L+zul6obCOrGl0qhHwjtu2fHA3X4/XpvgOic=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Jjxyv8Yd+hQzkq1k2/Z8e7/U/uvn8gUjC2kz+ctbQf20Vyn4FC7HPrvhOt8o0cqUha7Bqsh3ADfPiCICXvejYwJSqPSbGf+y608sNTlkZkMHvR4TVAsQUxVl6Lcc+1tM7hwtqMzoiqlU/6CxyGG9lHKo9Ti1D3UsfIur/WkogZI= 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.14 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 omf10.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C61941C0670; Mon, 11 May 2026 23:18:23 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA id A083741; Mon, 11 May 2026 23:18:21 +0000 (UTC) Message-ID: Subject: Re: [PATCH 1/1] checkpatch: Ignore format macros From: Joe Perches To: Petr Vorel Cc: linux-kernel@vger.kernel.org, Simon Glass , Dwaipayan Ray , Lukas Bulwahn , Przemek Kitszel Date: Mon, 11 May 2026 16:18:20 -0700 In-Reply-To: <20260511215757.GB20488@pevik> References: <20260511121237.11030-1-pvorel@suse.cz> <48d091b644b205b1dad326a855d5b766b042c120.camel@perches.com> <20260511215757.GB20488@pevik> 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: aw7w8sa1b8o8s1purckp7gaeuuaheejb X-Rspamd-Server: rspamout08 X-Rspamd-Queue-Id: A083741 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX186K0R8PDXGt1offdrk+uWHJ4Wng2o/53Y= X-HE-Tag: 1778541501-460859 X-HE-Meta: U2FsdGVkX1+z0TJM5RqfnjGqRhyntYkowNgQ13cvvH2C48QY+28Z57yRRgkQCrR1dNvZw3YEykAcJM1E1ShAPzJzJxz8qy8QlMrC4op+K6XpA+k52JXp+ZhECOz7q0LyHWapkNVgz4Hygvj0GZA4flpd3iCPPo5eMyFOiiHfYxUv7/YlOBecPp55DQ3RKGei600TbS6kJwW9azWCeDiJ6CcAqy05o02JIAsDtpv+9Ltc5eXDorSIhSNDOreSkZG5jAACsLajI8KCbAu5P6EEV1UE/+J9V2yjpcONob82t0dipaCUw2s27xHLLwuDsJ3qV5+c1A2/x9zsaPJb9/j3ZJXf7vJh55h1 On Mon, 2026-05-11 at 23:57 +0200, Petr Vorel wrote: > On Mon, 2026-05-11 at 14:12 +0200, Petr Vorel wrote: > > > Constants from are used only in userspace tools, they ar= e > > > from ISO C99, let's don't report it: > > > 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:= > > Nack. This is userspace only and should be tested as such. >=20 >=20 > Thanks for info. >=20 > Yes, warning is correct for kernel space code. Do I understand correctly = that > false positives are ok for user space code in the Linux kernel tree? >=20 > Or is it just because checkpatch.pl has no idea which sources are for use= r > space? Hello Petr. I suppose another check could be added. There is function 'is_userspace' available. I don't know if userspace cares at all about camelcase anyway.