From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 79B42403146 for ; Tue, 14 Jul 2026 08:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784018029; cv=none; b=G8NgNjsh7tMwmxGmoCBM4wqbVoFTfsp5pItGzRZ/Sl2Igyr4eM24LbEsAtyKIPKiW01CuwHzqpyk6T138XFZEYDH8/hnmNKLWH16pnDthi8yRrHd4HUUtmLLl1+PsKPT7QucdTonKUD/Ok6+fXWoEdhBmpShEpyvQTw6uaAFbNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784018029; c=relaxed/simple; bh=IHW0jrVYKirRz4xFnRAvekmWCpqi2k7RyAf7Y5W4PyI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ekkhyP5jLJzT8XeMRZ3AP9/xTwEgBEqCicmyJPVkSbBqlug0h8SDKLuQLX0wRnxRMa1omtETgR1IXdBzhNpfijEpwyV3kEBCxBQ09MjDZW6Y0xc3CMyEjgRDHDBBVHp3LXaOZkNz8b/L506hNh7A/jL6RIkEl7g5Ap8GHDPklfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZRNHBawA; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZRNHBawA" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-493f431e317so5968745e9.0 for ; Tue, 14 Jul 2026 01:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784018020; x=1784622820; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=dN43QeMKt3opRlURLs9WAJqq1Kw1gcGP8C53HZV1wz0=; b=ZRNHBawAzRsgDKjWIYbkX/L1AqJpGi259NXywqFklR5avA8/pAhNQPKxfaa7liKDGY NV9ytgt92T/KO1vMDsKuWiBcWT9AtNz/q4ge3CeGVXADTLhavvQiF9NVejobzMQizcy+ OSYECwuCUW4yzY99N0TT7xKej9FCV+CvkR+uyeaFsaQupoT92k3dVzY9RvibPF+ZrP+k PnAoa2EWiPB8TPl/VQMTjpbig2UNMZ7cS8uNkIMfR+3jOe8IBchyDeaoSngsoWYBhj9N GKF0e4AZ0teyjC1rpeqSD2d/+7s9DVcmuPxCqSuEKn4MaUjLkoWCwiF302XoWJHMFDu+ PJCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784018020; x=1784622820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=dN43QeMKt3opRlURLs9WAJqq1Kw1gcGP8C53HZV1wz0=; b=J5eP+DGR59x5ty/yFqyDmY5lfgHQ/vBNl9PgCmtu8KEApWgyaZuewU+ICEV8JAgpk5 m0PwsH+HurbswCX2s7DJZxVqSDNpNMtLrUynz1orkglsTg1IA0jdRoEwFWZrXiaswTI2 6568xwKLHe4UX3ilRYxte0JUU1uOgnxAWSaH87qJGLn5YuxMP3VbVo++QfA5QS/em5CR 9cNeXpsXUDj3nYsJjbLqq/3Z8SW7qlvzBKLlmEg1ZVckkLP+IFpe54USzyf4R83PwsqO qJCDMe9eQf8akePicQ0Stmz8ZGvR6wnpTNWefLqT9vWqbcRdi7vnicEBt5TMzTy2lv8j VaPw== X-Forwarded-Encrypted: i=1; AHgh+RoORBuTHlQ9HlZ+ljkrj8LyEyrQRnAeVF02w10j19kBRU2De22RTe8bU1KpbRe7rt9haG7dyCMtBp06IF4=@vger.kernel.org X-Gm-Message-State: AOJu0YzAWhr8MO6Hs4U+LoZwOyKK1OMC9Ddz/3YaWagwStBGRs8hHkv4 tI5R9k6qsDJSI9KLL3pE4hfkOTBCnrfsFuSbsCfbcxjx/oTymrkl7Y0Y X-Gm-Gg: AfdE7cnXd0tgnIqAn3Ig5kJxLZ/iejf+E899Ux9k02KIZeLDClBrFy+wUVysG6y+ull hQ2VuZlkz6Lp78j+M1uYs6oXhYNosUtUhA2sqM5Jf09GbdjGsgFgxx+Qy12GX1w20ONPzcRr/pt t9EreTfMTyv4KOFbyzQsNTCFaJinX9RoF32eWjY8cVcj0TtyY9KovtSBCg+OIN+5javVbiFOwdV VjJrzgcnh/BTELi+0khyIlsbI8ZLxIXFNaGTN5mR5oZ5qoJ6MbE0uF8GmmT1QDSGKTtJhaeM2S7 ysVq1JjzxeyLWRoXVXzmZTi89tV45tSSN7/hWALz/dOHcM5O5zGogeSPv2aTwsygPgg7EzzmMLv kTg00O4jTYqOLsbUm1+Ot1cXBWPl8FHTDNJmUEG4Wo3MlwdT7/wqWzfC2zjCrhQr+lFRAc40l1u vhvJwhvdTRRE6gRGGdSaUU7LwS6Kw4EuDQng== X-Received: by 2002:a05:600c:1392:b0:493:f753:24e8 with SMTP id 5b1f17b1804b1-493fed59338mr109265975e9.6.1784018019335; Tue, 14 Jul 2026 01:33:39 -0700 (PDT) Received: from localhost (a89-182-201-216.net-htp.de. [89.182.201.216]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4950a33a926sm52933245e9.15.2026.07.14.01.33.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jul 2026 01:33:38 -0700 (PDT) From: Sergei Litvin To: miguel.ojeda.sandonis@gmail.com Cc: ojeda@kernel.org, nathan@kernel.org, nsc@kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Sergei Litvin , stable@vger.kernel.org Subject: [PATCH v2] scripts/tags.sh: Prevent binary files appearing in cscope.files Date: Tue, 14 Jul 2026 10:33:31 +0200 Message-ID: <20260714083331.69482-1-litvindev@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When executing the command `make COMPILED_SOURCE=1 cscope`, the resulting `cscope.files` file contains filenames with the extensions *.rlib, *.rmeta, and *.so. To fix this, modify the regular expression in the `all_compiled_sources()` function so that only files with the extensions *.h, *.c, *.S, and *.rs are accepted. The issue has been introduced by commit 4f491bb6ea2a ("scripts/tags.sh: collect compiled source precisely") which implemented the parsing of compiled sources from *.cmd files instead of using the "find" command. Cc: ojeda@kernel.org Cc: nsc@kernel.org Cc: nathan@kernel.org Cc: stable@vger.kernel.org Fixes: 4f491bb6ea2a ("scripts/tags.sh: collect compiled source precisely") Signed-off-by: Sergei Litvin --- This is the first part of this patch: https://lore.kernel.org/lkml/20260602121521.11650-1-litvindev@gmail.com/ which I have split into two parts, as suggested by Nicolas Schier here: https://lore.kernel.org/lkml/akVkIrcpNxZrrfii@levanger/ Changes since V1: https://lore.kernel.org/lkml/20260705175936.4653-1-litvindev@gmail.com/ as suggested by Miguel Ojeda here: https://lore.kernel.org/lkml/CANiq72kHbVQfNrum5D2a5sCd3mFQHNtigrQxP1WW=YcggxA=WQ@mail.gmail.com/ - Add "Cc: stable@vger.kernel.org" tag - Add "Fixes:" tag - Add missed "Signed-off-by:" tag --- scripts/tags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 243373683f98..c9dc2763a505 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -100,7 +100,7 @@ all_compiled_sources() { echo include/generated/autoconf.h find $ignore -name "*.cmd" -exec \ - grep -Poh '(?<=^ )\S+|(?<== )\S+[^\\](?=$)' {} \+ | + grep -Poh '(?<=^ )\S+\.([chS]|rs)(?=\s)|(?<== )\S+\.(?1)(?=$)' {} \+ | awk '!a[$0]++' } | xargs realpath -esq $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) | sort -u -- 2.55.0