From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B295B3ACA60 for ; Wed, 20 May 2026 10:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779271716; cv=none; b=ModuKUhN6tyaZp7/wLahNoqF7qYzxrOYxAwMEYNngDbUSdpbgisNUYHsxrmC+e/MOmponEXcDxpx9QYJDbJkOe/cwHxUGUpfVuHbOslzl5MC+xwUJCqhDUHq6e8Qvj+LtDtsfiaN1MBonqAckq0e2WQA9afdWuhjEIdCucjVGPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779271716; c=relaxed/simple; bh=1Q7ico9J0SCfW49PwVmVo8vxlG+LE0zJoVSkH2hrFso=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jlnxoJ4L9tnsami+wRmvbJXn9AdL7EF0hbnORrxZSEWXaO5MGpmSPx4nxHiw2jXlsXT7SYas1eOeGXngIleRX9jzpvg4nPHmsjponTzqeEdRwVvU17Kp6GtnRVhFIbwvoFKkoqeDO5NOBOxQonAxiEJlLcXHU3Ub2AKWG0pfmfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=XvKu1Nuy; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=Mi8THITN; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="XvKu1Nuy"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="Mi8THITN" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0EC876B4F1; Wed, 20 May 2026 10:08:33 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1779271713; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=85LES76OiG9z2yFEOZBNlbNJsh7uyjUzTNZCW8FLEKo=; b=XvKu1NuyZHf6C/SsX/r3MN9nodAMNapSN3ukYZpNhVjZdOjkTaGJXgCYK5l7T9dg8MMThg lOJ+Imz6N9JgKGnYFu1vGPDnBG+YlSJXdWjtCCU5nm2wkvxmgqnLPgk+ZhNTBn2C70maFk sMECY4uSqvfG3xWqXmr6KFlnUZz96W0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1779271713; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=85LES76OiG9z2yFEOZBNlbNJsh7uyjUzTNZCW8FLEKo=; b=Mi8THITNloe/94snZMvghGEFWrl4B0Gx8ncfvboFoWap/5QNOIdJIdVtO3dYCWq9TZWmRJ HUarMDLFFeBcrxCw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E98A1593AB; Wed, 20 May 2026 10:08:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id uIp6OCCIDWq8ewAAD6G6ig (envelope-from ); Wed, 20 May 2026 10:08:32 +0000 From: Petr Vorel To: linux-kernel@vger.kernel.org Cc: Petr Vorel , Joe Perches , Simon Glass , Dwaipayan Ray , Lukas Bulwahn Subject: [PATCH v3 1/3] checkpatch: Add more user space directories to is_userspace() Date: Wed, 20 May 2026 12:08:27 +0200 Message-ID: <20260520100829.93791-2-pvorel@suse.cz> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520100829.93791-1-pvorel@suse.cz> References: <20260520100829.93791-1-pvorel@suse.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[] X-Rspamd-Queue-Id: 0EC876B4F1 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spam-Score: -4.00 X-Spam-Level: X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Rspamd-Action: no action 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. Follow-up: 99b70ece33d8 ("checkpatch: suppress strscpy warnings for userspace tools") Signed-off-by: Petr Vorel --- New in v3. scripts/checkpatch.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 939d2b9ecebd..663064f32dae 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2669,7 +2669,10 @@ sub exclude_global_initialisers { sub is_userspace { my ($realfile) = @_; - return ($realfile =~ m@^tools/@ || $realfile =~ m@^scripts/@); + return ($realfile =~ m@^tools/@ || + $realfile =~ m@^scripts/@ || + $realfile =~ m@^arch/[^/]+/tools/@ || + $realfile =~ m@^arch/[^/]+/boot/tools/@); } sub process { -- 2.54.0