From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 DD1433B6BE5 for ; Fri, 31 Jul 2026 18:09:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785521362; cv=none; b=ijcknGUnkqhezoDu5ViAe7egFlkaULGgLyF1EHnVe/LhfhINirO+yIW3KtN1PzwQOOArauTEikUUM6Nw+QGeqZt9I+CuRUiEIG8ToQnC+zjGPT3ef4mcHGQ/JMQpYvZHgUytzLgzC9oKe5iTqMCVUxDIaN2JoSCocvup1LyjGjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785521362; c=relaxed/simple; bh=v8/ZUm4ukvjja6zhmdBPRnI8b2VSscGWWFRNveMjLUc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JcdaXQ74+FoHw9OoCn8Rhwij/WuGERghuBSx2eH/jVjvt9haprbNJQ4kzgflEV3Z2UG6HzG79j/0bQCAG1HaEgnlrFtXRAz8k4UBIAkoDnqEVpND7klAWjcu0uYeaJ1nKrPNBt3LkKXkbI+W52ZqvrW0DRRpirf57PWoRxqcS4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Cx2rykXs; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=gF7Qc5xH; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Cx2rykXs"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="gF7Qc5xH" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66VFP8gt108902 for ; Fri, 31 Jul 2026 18:09:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Ar+ZIfFn71fVOlogmTWVxCY4mj0bEutG584kMHVtKtI=; b=Cx2rykXsABEKH0aA C1JNfSYNqCxiAVa2nUlv6o4pFc/nbKMXXCiVMo4NojTAKMDbyHynnEXUzzQHf8+B JxYXPfLBuXifmvwzczGderrQndxCuD+ctZ/cGBB+mUeC3TN1yorATRIwEDQU/V72 5nINQ6V340ClgM7FCtT6WjHd5qr0FiP7Dd0Eh/vARuNr230Sgb7dfQMk6mHmYDGV TIsYZnsAT+WkE8l6aELMMTryO0TVjhljQPfRP+rCyBFsq3SQvumRZf+J1GYa0ch4 IOQdZFfReln6EYIgLkrPlmCh/glUs3+PA98uOHrpFmALL9uNgFFyDdQkdOXhm0mO bgIoTQ== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fru2u1rng-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 31 Jul 2026 18:09:20 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-8484ba00601so1588378b3a.1 for ; Fri, 31 Jul 2026 11:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785521359; x=1786126159; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Ar+ZIfFn71fVOlogmTWVxCY4mj0bEutG584kMHVtKtI=; b=gF7Qc5xHEJDc3T+bwS6jteizEL2z3iCOdmU5ySs21bnasXXmynU+WshcGyc2yUM8v0 4n2HxMyqrhJKLuBj6ZIetpWOLQToTQ6GJXZOr3ALrsEQcdS6qmPslR8f/tNulj1C3cjq oRjl0M478xONREfDITY02pgsus0ATUqfnhUSYCmBzlJHulkYpnD2pE1xC/gkI/ZsuElV 0gmJvjuuz2f71g6RAHN7XDKAWzUvtoa5ZEiHYmrvtHaz2yrTiIg+ghBLr3Dn0+CLTQzN PmU9QLfi8M1MZVvWkXgkVv/rGF4kAOoAmIMjxPVLq6d+ITwuDqOVz/ITvwuG3rmS4KtY pPzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785521359; x=1786126159; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Ar+ZIfFn71fVOlogmTWVxCY4mj0bEutG584kMHVtKtI=; b=BanLxh05+4WeGuoEoaa6vkKBNYilJbiaYcgbzz79h6dbZyZKs+HMA3CneBm2aOPVnT yeXZgglesh/hs7ZqG77s5bIOQUOS59OMpwI78ortJ4dKIoq2Yx9t6TiUpyw9OjvWfQcO kAa+4cdlpsPBJ5l+W0w/5CmPF95J9GflJQZPiS2vIkOyiRRLgIQzOSc4c1NzlPqZtcyy hGPsoij4CdTzBOyWYOCgKkfQADHuNzJJLC8bAciUuPYaGzjNIENAMa81Xo9IVJNLluZf L89fIsnZpB8e639gJ0Tjtqyy+1PxPcnc4yJsgXWXm8OIyejLSwJRxcn2Ni+SqQ89PxkA Pq1A== X-Forwarded-Encrypted: i=1; AHgh+RqZqlJNpXQF+fikAGhD+VQPPyYoMdn3bDHZdDkEyfZtj8bAtlme47OOA5KCkANGvOs25ts0/5TlLs8KHUk=@vger.kernel.org X-Gm-Message-State: AOJu0Yyd5lDIj/56Ket23ROvfyBEZ4fKpXni40HOOe6/IidVUhROZJgm OITB92Ww9XK9DowAbiepIZTSnRm1ZskTkvBA5SSYmnOccft5Ium+8buOuMg14jc7ZZfO96roAhu s6F54cVx0iANWnrdQ/1XAyCbgSqQ2vVqQI6k/fX2PZ1FQ58MXSqUXPeLmWOYQGByEQP6GJyxDgL U= X-Gm-Gg: AR+sD13lZ8Pb/kBq9EWkpKlFcGxbyQrPqnmbjVHkOtlpL9rXDZddJHKYh9b3yzirCGx K3TBfPm3vv7z++DjSM10vabJtHENc+kaBQz4wxEHPtxVqFcuwV9vr1I17N6jltmZshShrPFsCnq vxczUM/aTTafSPEi6O/74XJzlSuS80HuHidZLoJIGalQJxBIQ6I/SDaZZ8pfHUlnfL9Y0/C5rj9 NY3Vv0/RSyKHiBohZ8KkPhjp50+T0YgAA1+hyAGPNVhfdKIC0ZLzBw+tmRUSX7kk0IPRPUGCpXr hTLgQuWyBTvTv3plysvmqUHYC28l7oGTDGojZ7UvrPve1HkHsNZRBo3+rAjZgtXVSlYctvk2A95 4G7YMhe4c52z2ETOiXop8ulEKyY020F0rEE0rn9Iz55mQH2aJCThiuC2SvUeW X-Received: by 2002:a05:6a21:50e:b0:3c3:a20f:f720 with SMTP id adf61e73a8af0-3c92a89be2cmr694534637.36.1785521359398; Fri, 31 Jul 2026 11:09:19 -0700 (PDT) X-Received: by 2002:a05:6a21:50e:b0:3c3:a20f:f720 with SMTP id adf61e73a8af0-3c92a89be2cmr694494637.36.1785521358950; Fri, 31 Jul 2026 11:09:18 -0700 (PDT) Received: from [10.227.110.203] (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3153e29a126sm8699946eec.31.2026.07.31.11.09.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Jul 2026 11:09:18 -0700 (PDT) Message-ID: Date: Fri, 31 Jul 2026 11:09:17 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] checkpatch: warn about possible missing gitignore coverage in selftests To: Krzysztof Kozlowski , Cihan Karadag , Jakub Kicinski Cc: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org, workflows@vger.kernel.org, linux-doc@vger.kernel.org References: <20260728052442.626076-1-cihan.cihan@gmail.com> <20260728073143.0e665e36@kernel.org> <6e7009f3-ed2f-4a84-868b-661b5ac7ab8f@kernel.org> Content-Language: en-US From: Jeff Johnson In-Reply-To: <6e7009f3-ed2f-4a84-868b-661b5ac7ab8f@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: 3e00j9Nq4IqTJiJx8Z8Ka0nSXvESWly1 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzMxMDEzOSBTYWx0ZWRfX/nZxm0mgDnE2 7jqWFlWVf+E5XvwujJYusPfiMYoAWk+IIVEQnR80HFV/WEti1FY/wdhAbxDmVbgb8Pc0abKGNaN NxRl1OVn8IAXMDtWSAyj8dkSCVIdyEVRHoGX/LeuQsarKpUtoE0O+4nlJn3gWqOOm8hsdpbjITl bGgvIpvK2hOAEtJvGQLZ/ldhNot3DrAnEHYRfv8kCsiBWXFHt3E7xqetW3uJxtuzlRY7nI9Lcd+ NhSTpa5e9BMxTkAQHxbXwUXQ+PvmXem35Mu4PfkzfNFqHGCuSutYdWu9i1gwgZG9jdZy25vQwc0 RPs1i1wYp7orQrCEMZEjjnuLq9tqp8pRo4bZBPGBuUaBH92CVp+Cz8HK2A8LAHag5kyFdu/StR/ cxiHSaW2FxahMcoJPZpfKMVSuocW+TZPbKEpUIW9gGD8i3u3YFl9gGsdDCCw0xls5EgtcKyvxye tr8uMuqVGIuD7DgXO7g== X-Proofpoint-GUID: 3e00j9Nq4IqTJiJx8Z8Ka0nSXvESWly1 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMxMDEzOSBTYWx0ZWRfX/ZtHjeQtk9/y U3BDo6FPywps03kEtuabRzeNbTIlG1hn9fbBOJgKiU/VuvgCt5QlfLSAweEdifDl0jVyZ88+s7U GesdIgWIhC5OmJJDDb2cc/4bI9aHZCo= X-Authority-Analysis: v=2.4 cv=b+uCJNGx c=1 sm=1 tr=0 ts=6a6ce4d0 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=Bs_rlm9j55hZLUUMUG4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-31_05,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607310139 On 7/30/2026 11:26 PM, Krzysztof Kozlowski wrote: > On 29/07/2026 10:01, Cihan Karadag wrote: >> On Tue, Jul 28, 2026 at 8:31 AM Jakub Kicinski wrote: >>> >>> On Mon, 27 Jul 2026 23:24:41 -0600 Cihan Karadag wrote: >>>> Per selftests documentation [1], every generated test binary must be >>>> added to gitignore to prevent leaving untracked files in the kernel >>>> tree. >>>> >>>> This is an easy mistake to make when adding a new test. In fact, a >>>> search of selftests history turns up dozens of standalone follow-up >>>> patches with titles like "add missing gitignore for ", each >>>> needed only because the original patch adding a new test >>>> didn't also update gitignore. >>>> >>>> Add a SELFTESTS_GITIGNORE check that warns about gitignore coverage >>>> whenever a patch adds a new file under tools/testing/selftests/, the >>>> same way FILE_PATH_CHANGES warns about MAINTAINERS on any added, >>>> moved, or deleted file. >>> >>> What percentage of changes to selftests from last 2 releases will >>> false-positive trigger this? Would be good to know, checkpatch has >>> a tendency of generating false positives which is quite counter >>> productive. >> >> It will trigger whenever a new file is added to selftests, which has >> a chance of introducing a test artifact into the tree. I checked the >> last 20 commits touching selftests and only 6 of them were new file >> additions, so this warning would have fired 6 times. Actually, one of >> those 6 had a missing gitignore entry that this check is supposed to >> warn about (fuse_acl_cache_test, 9acb102522b9). >> >> Comparing to other WARNINGs that checkpatch generates, such as >> FILE_PATH_CHANGES which has existed since 2014, this seems like a >> reasonable and already accepted way for checkpatch to operate. >> >> For comparison, I checked the last 20 commits that triggered >> FILE_PATH_CHANGES in the tree, and none of them actually needed a >> MAINTAINERS update. > > FILE_PATH_CHANGES causes many false-positives, honestly for my work of > getting 100-200 commits per release it was screaming like 20% of time > and never had it right. All of its reports are false positives to me. > > And I saw many times people do weird commits and weird MAINTAINERS > updates, just because checkpatch asked them. > > So your argument of "reasonable and already accepted way for checkpatch > to operate" is simply wrong. Don't add more poor tests jut because we > have one which is IMO terrible. Concur. In my tooling I always set: --ignore COMMIT_LOG_LONG_LINE,FILE_PATH_CHANGES /jeff