From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 7F811145B27 for ; Sun, 12 Jul 2026 08:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783844121; cv=none; b=urKqrmJ5DXkjjTTy9LP9wyK6yuy3XiDUxe2ADLyeGfvdMsKFRuwfYLIJx5CQTmu5vP4VMHn0Yo2d+lK74oW2jJpEbvy+qepb82UrbwhbfKhI73mxpob7wSCt9SeCk/7vye0Xa96wq8aY66eZ8c4LCYA+Kp1QVIzv2/mdP+1EjFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783844121; c=relaxed/simple; bh=yoRJnk1n1TUTqq3t/8ccp6gJivuTWyo75SYhqK+S+CY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=VgG1dWYQ/DFMXEzDmyhwVg4Vy9gkyYRHa6R1FuaTby7RQMd6+hTAPmzlUcZ86FWciF9zUGTIqtkaErZhGhe2JrfTHdr3spqJ2y2nkLTKCSwwtVgxEz7zmBeJpRDeRZGG8PI9I1auHXkBoUYphtDIQ7ruepFAoYcQHG7jHETqzhk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev; spf=pass smtp.mailfrom=mavick.dev; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b=VmAbmWwk; arc=none smtp.client-ip=80.241.56.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mavick.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b="VmAbmWwk" Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::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 SHA512) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4gydfS1fzjzKv3F; Sun, 12 Jul 2026 10:15:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavick.dev; s=MBO0001; t=1783844112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tHKJBpYzLo6izH6aWYjuMLKNP4WxMYIbG0o0MIwJRtk=; b=VmAbmWwkbI9w8vncGU0AWz2nIJ+3MtH5xYUyzIg22cH0pndOMx5JL5HjC6Cfd5qQilamwm gszNoLgoPUz4Ss8S46aaF6bmR1/uP7BnIXQ1rERR1F2UWMrdoKGkzcmU5lwGaWmEbHC07e d0QBvayb6kaR3N93yJGFzSMve/owfxeKDEDx61kPl4ogHFyBT1dCl1vJUEDd5nL0svPMZm RoR/51XN8cQhcZMLpLEOvPNChdQs6LQH/0z2kF/cL+6RRcPSJhZWFQbjr1CAZrXd+Nyp2Z XonRyPAQN+GuY2WTUGgBrfbhW9DqeBtPPNBuqw+49HxMLpc1Guj+DQyG7SbqVw== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of m@mavick.dev designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=m@mavick.dev From: Eugene Mavick Date: Sun, 12 Jul 2026 16:14:36 +0800 Subject: [PATCH] checkpatch: MAINTAINERS: warn on missing paths Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260712-chkpatch-file-entries-v1-1-68bcf96ff59e@mavick.dev> X-B4-Tracking: v=1; b=H4sIAOxMU2oC/x3MQQqFIBRG4a3EHXdBjYraSjQQ+8tLD19oRBDtP Wt4Bt+5KCEKEvXFRRGHJPmHHLosyHkbFrBMucko06hWG3Z+3ezuPM/yAyPsL+dOWaiq07WbQNl uEbOc33cY7/sBzos8kGcAAAA= X-Change-ID: 20260712-chkpatch-file-entries-90ae03915cde To: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, Eugene Mavick X-Developer-Signature: v=1; a=openpgp-sha256; l=1058; i=m@mavick.dev; h=from:subject:message-id; bh=yoRJnk1n1TUTqq3t/8ccp6gJivuTWyo75SYhqK+S+CY=; b=owGbwMvMwCU2V/5U3e1aE3/G02pJDFnBPl97Z01/O1c2sSfTuSyn5NOnr0tWP2dVZuCarfN/0 dc0ny3fO0pZGMS4GGTFFFlqshLcM1bOSjQ+OqkHZg4rE8gQBi5OAZjIzv8M/xQ44ndc3nXizs6j 65p1a99cFpiR+ejz22f5XUmCWR9ezXFg+GdxIDU65qrBjfvmP3Ne7A0/tPV52/OS7JI+TbGTnHk lt9gA X-Developer-Key: i=m@mavick.dev; a=openpgp; fpr=7C6A604768A99A6133C5928C9D1FCA7EDB7D344F X-Rspamd-Queue-Id: 4gydfS1fzjzKv3F Warn when F: or X: entries point to nonexistent files or patterns. There have been instances of typos in file entries in the past, and this patch helps prevents that. Signed-off-by: Eugene Mavick --- scripts/checkpatch.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0492d6afc9a1..e82e330ea460 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3750,6 +3750,15 @@ sub process { } } } +# check MAINTAINERS file entry for file existence + if ($rawline =~ /^\+[FX]:\s*+(.*)/) { + my $entry = $1; + my @matches = glob($entry); + if (!@matches) { + WARN("MAINTAINERS_FILE_MISSING", + "MAINTAINERS file entry references nonexistent file: '$entry'\n" . $herecurr); + } + } } # check for DT compatible documentation --- base-commit: 979c294509f9248fe1e7c358d582fb37dd5ca12d change-id: 20260712-chkpatch-file-entries-90ae03915cde Best regards, -- Eugene Mavick