From nobody Mon Jun 8 09:47:58 2026 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 10627385D8E for ; Sat, 30 May 2026 07:06:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780124798; cv=none; b=AjiDFbmW+YdJtwQThP1/OuayzEQBPcb6SoD5N74QDIuGJTrel7mOszOBBX2EFWMm+SEl1qZKrT/bRmOzPOScdl2PLfIA4p6Z1SO3C1ygm99hZlq631iho6EwmkUKdNJZaAgRmnND/GKMSiEElmbNVcsmRg79CjzlBg/JolftuSI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780124798; c=relaxed/simple; bh=2N1CfdEjIp9UZ5olaB3KnwZIGIv8BcFHL7Wp9Xuj+6g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M03sVASfCCJWN+y8LTg5cGbFpYLv2mP9LxTNnwbOJJRDryomtlnUSXUC7DkaP8BesQz0C1+nkhcpiHMXz6kjrycPX4ckwbWWkYZRhll2IRIgfiT1Bmdxw/uVRdFQczQqp85gLQryOwCLlShSyE8eVlKRqTL52GJXKU87B041VUo= 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=XnTzG5Lz; arc=none smtp.client-ip=209.85.221.52 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="XnTzG5Lz" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-45ee1a56328so2801022f8f.3 for ; Sat, 30 May 2026 00:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780124795; x=1780729595; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/ikebuPUf41dJZeKHSamjbBCXgK2fFPq++GSjJDx1ew=; b=XnTzG5LzssubPnDy6/PMDnf4163T/4pHOfjcZtcxiSSooI1ToHk4OwQhmjj+PXZHJK +j91bxOU/CGD2ev6MyEKMIAKn4vcMPt584HfFql/TynbOBJ4oXqVftfNHg316zPbIu69 REYbna1Z8ukTsQxIeZ944hwH7FzWmMQ908Z37fhmb964kilH9vIEEj66+w0myzG/qNa/ UHrva0r9JmwD9PnsEQ2GjmTfbUyJrQZBpL5PY2lXM+n7IN26dfjbCrG/0jIKdqpZk5/Z pjzJ6Rfu/2lp1r0AN49BPyHDdUezkAmTm95k3p3koJsK37LBLHLhnIaU9GRAJNptCf5W xy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780124795; x=1780729595; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/ikebuPUf41dJZeKHSamjbBCXgK2fFPq++GSjJDx1ew=; b=B1KuOPW9DwqgN3g6rBHBFt2nntRCqZP3hjUEFRcoUgPvZ5pI+9BiRJ6LQAgIMHBjQ8 EdkRC92X3og8jxvwmBZaBThd+/wHVFsuiVLGSXV/gT9s8nrgl7yWNrFW3ALm8JnFqD4n PQzZa+dBlqUcql35a2O475BH/YyE8VF3BpXWUFByKtrXp0TKq/CgmN6l1VyQieoHn3Rf Y4tBIwvpKM0wQzuelNTjXh6RqJe+zQ4cpx19XuhdlzZZxSKmzEosXaeLYOwBUCO/f8DC xKa0HHNUViwtDPOpAqUlPqZnCYzS2F91r+FUqNwpUYisAZoP+Di/6pehRMpvl7ZRYxxx /Z7g== X-Gm-Message-State: AOJu0YwmBgjgSlDWSnaESTckq9b6P28mRyuuSTbPuZdOus5/UGjYdOQO 0um1bGD8hy7ZjFCuL9nbdqoprpJ7x+O7uBbhUhdMXaHFBef6UnWPtCSg X-Gm-Gg: Acq92OGltxSRD9KZscI5QXpm4k2Y4pBrQerVi7h5YFTO8X5rwXKBj4GBBFsUVi5dDAB Wh25m4ksKJTTYm6IaXmsOQyIsxCVf8VMSPxJDT00vF3xd+Rer1Ea+Mn40hB/FOTAqAE0ZAXFhhh e/LEByb2mY8vBqIDuy9Fo8s4+CwwMvD+wxXyAbTXJZS0K7GG3mr1VB+eOb3fGIhlbEDu3V6FsuZ gSn2pk4rbCzuQU9+MzRtysSsWm03Sn00+W5UCYf6aF7VD52qywl73zNLvCAaithG56MG8yWz7Ig t/9nMywEhtW4YtVx/6I6yoxOY9GOAxgasItx2Ne2vlWSIoQDn6H21bPucXIjSblr9fawxaM17Hv 7R59tKlXx0Zf3Wz9nDb7A4vB1cLUwrXE916cj2fkWmX74BoCnWoxdheY1+u4KH1zce4FYn580kR ztChWce3HKlddXlbsA0obeINdTcEaZj5YWlaHF8OPIjYxLVOyih0PeQL8= X-Received: by 2002:a05:6000:4388:b0:45e:de0a:178e with SMTP id ffacd0b85a97d-45ef6b55c09mr3549373f8f.20.1780124795448; Sat, 30 May 2026 00:06:35 -0700 (PDT) Received: from localhost (a89-182-201-132.net-htp.de. [89.182.201.132]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-45ef34a0403sm9170895f8f.6.2026.05.30.00.06.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 May 2026 00:06:35 -0700 (PDT) From: Sergei Litvin To: rust-for-linux@vger.kernel.org Cc: linux-kernel@vger.kernel.org, ojeda@kernel.org, Sergei Litvin Subject: [PATCH] scripts/tags.sh: fix "make COMPILED_SOURCE=1 cscope" command ends up with *.rlib, *.rmeta, *.so filenames in cscope.files Date: Sat, 30 May 2026 09:06:31 +0200 Message-ID: <20260530070631.14955-1-litvindev@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When executing the command `make COMPILED_SOURCE=3D1 cscope`, the `cscope.f= iles` file generated by it includes filenames with the extensions *.rlib, *.rmeta, and *.so (taken from *.cmd files, which, in turn, are generated from *.d dependency files by the `fixdep` utility). Signed-off-by: Sergei Litvin --- scripts/tags.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 243373683f98..f6642bb0f8ee 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -52,7 +52,7 @@ find_arch_sources() for i in $archincludedir; do local prune=3D"$prune ( -path $i ) -prune -o" done - find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print; + find ${tree}arch/$1 $ignore $prune -regextype posix-extended -regex "$2" = -not -type l -print; } =20 # find sources in arch/$1/include @@ -61,14 +61,14 @@ find_arch_include_sources() local include=3D$(find ${tree}arch/$1/ -name include -type d -print); if [ -n "$include" ]; then archincludedir=3D"$archincludedir $include" - find $include $ignore -name "$2" -not -type l -print; + find $include $ignore -regextype posix-extended -regex "$2" -not -type l= -print; fi } =20 # find sources in include/ find_include_sources() { - find ${tree}include $ignore -name config -prune -o -name "$1" \ + find ${tree}include $ignore -name config -prune -o -regextype posix-exten= ded -regex "$1" \ -not -type l -print; } =20 @@ -78,21 +78,21 @@ find_other_sources() { find ${tree}* $ignore \ \( -path ${tree}include -o -path ${tree}arch -o -name '.tmp_*' \) -p= rune -o \ - -name "$1" -not -type l -print; + -regextype posix-extended -regex "$1" -not -type l -print; } =20 all_sources() { - find_arch_include_sources ${SRCARCH} '*.[chS]' + find_arch_include_sources ${SRCARCH} '.*\.([chS]|rs)' if [ -n "$archinclude" ]; then - find_arch_include_sources $archinclude '*.[chS]' + find_arch_include_sources $archinclude '.*\.([chS]|rs)' fi - find_include_sources '*.[chS]' + find_include_sources '.*\.([chS]|rs)' for arch in $ALLSOURCE_ARCHS do - find_arch_sources $arch '*.[chS]' + find_arch_sources $arch '.*\.([chS]|rs)' done - find_other_sources '*.[chS]' + find_other_sources '.*\.([chS]|rs)' } =20 all_compiled_sources() @@ -100,7 +100,7 @@ all_compiled_sources() { echo include/generated/autoconf.h find $ignore -name "*.cmd" -exec \ - grep -Poh '(?<=3D^ )\S+|(?<=3D=3D )\S+[^\\](?=3D$)' {} \+ | + grep -Poh '(?<=3D^ )\S+\.([chS]|rs)|(?<=3D=3D )\S+\.(?1)(?=3D$)' {} \+= | awk '!a[$0]++' } | xargs realpath -esq $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative= -to=3D.) | sort -u --=20 2.54.0