From nobody Mon Jun 8 09:47:55 2026 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 30BB5390CB9 for ; Sat, 30 May 2026 08:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780131523; cv=none; b=kNSTiZ+ruTfShttQN1BUm8HdqsqaYbcIx8TH795GCM1Qzh8TZxbTLsav7A9N+3eGGxUbDdaiHsJfrNF+XXMAADQDy8Tawx/HY1/HKhqm1czmAkuAj2f0Smt7ktPo6KLF78BQJ7BX+cKy5AZKuAn3pDFcYFsaqSmNyv/aFyDFFmw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780131523; c=relaxed/simple; bh=XRJSf3ftIv03/qui+8SqaGNF84m2IEKZj5de66SRlhA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ky6MXhuzKDugBtRfq53xBepo+RxCA4qGa4HM/IsUe6KXcrD+VC++M55FEmHgCsQ5K427w2yeqNZ5klidB5ecsgy7SL5wuP7LUT2uKZaOCVlwyiM6f/E1MsT4DgVrhCB/wejpdJRQMoSYzGXGtYP2JyjFOWBX46u+a/y+QujBK+A= 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=cB6ncJX0; arc=none smtp.client-ip=209.85.221.49 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="cB6ncJX0" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-45eecb8bf67so1774321f8f.2 for ; Sat, 30 May 2026 01:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780131521; x=1780736321; 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=eOj7K5QUJdDs386HYdmbDYGPD84wYNIL17LY6chhIIM=; b=cB6ncJX0i0r29NR5EVFGzi6yHHAqQ8DqatXGIqEll6m4fpYBouGtgZyAN5n65DNWna GeEVGhiT3Qm1KCEAr8K8/p5RVyErlYlBCyZRnNVc1euJFGv8rSvqdFWdx9vx3j5h1vxM pOERyOXpcRb/qAGUzbo9XZF4u8w/6tNqCH5379csBqv7tly9FxnG5u49rJJ0SDZaX0UX MU0ejIESXIiWuFLTQql8EKPJ8/PZinfF+nY7oIn7nmuNf8HZlijvgjqjMo9U0BGZAB7O IC1KR8AeRusNtf7rHXbZ1C0Eh1AWZOfOdlJUNRCkOJzyXvq0IxUxhUZiskv8ls4u7ujL HJIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780131521; x=1780736321; 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=eOj7K5QUJdDs386HYdmbDYGPD84wYNIL17LY6chhIIM=; b=Sca4Sj0vOqYaePsrDAQg1gNCVbyvPCNNrjk6+Wo/7fgcEZfuJlfKVP4p4prXA3mdgY +iKvH1wVvtiFBbilXzPPsbiwDw+k86yaZjH8N1er4Yw6ct/AvKxIxf9NEhk3E+I/+Wfw UnB/aPDtB+Xk7c50uGxXjysbz0XLjiICczLMv2rIDPCxuMGrNnbJlo++VJEvrLfDZmAf /eLRaRnV7oxmn63hPDOn1cHaJAefod8CxD2GqiOVn1U9QLJ2ag8RRTgDRfDcrAlECYyb S3kY8ok4pvX8kygO2cjn8wYwKEfj308xz6z/RC4HTNW2W/1QsApZ/M/xttQj7y5BCQV3 k/eQ== X-Gm-Message-State: AOJu0YxDUMJciIyzYgvqFqywDoONUjnkRjDbHC9ZWdzUF2YfeAQh2PyN atwZFjH8v+JSbmfvuSAYRx47Hi57q+hjHsZF5/ibDLS0V1GYiTWIPDZiBCuDAkE4 X-Gm-Gg: Acq92OGEiuHXaM13KUpOSJ8grFeb8SaYFaa96gFvrHr3L9vEv0RqvNgl5yAe2hXkhje zg/6dqCHKV4FA+Nh+6JAiIRiJ7t35sz9B4mDw0oGDBAbkV0PJMU6f5rq70WdXx0VgVVptGouMqo DvS9pRyubEaz4YR4tQN3LxWtzoahkOb7FJFEFGgJUsovTLke5dsMrPrcx2P4c2TFAWvgsZol0VN PygnGA5gXGQEP/jBCfU4EI37XZVw1jvxKX6/ZgcYrdG8ABd7bhxQsYg9SyBwqxjzp04kTQhrs8/ r/Le/emawBc4cRJf4Gl9Wr76r5dGGweqxXutYrnyQjZrv4SbElVvFeP0Gl5G2Ujh1ysoatkPsrr Ws7yYDtBO8ma88aR7JCyKloYwtRKdqZ4UabXwdyTWgSxyaXPoA2BRt1rLXr8fApGjo11R2kgMom dnoWpzUgHcmQswb2xtgNzoPM8e9//YxX0ZQlDVw5eChHCjdLaH4qXReIM= X-Received: by 2002:a05:6000:2213:b0:439:b8b2:fad0 with SMTP id ffacd0b85a97d-45ef6aec74bmr4896282f8f.5.1780131520404; Sat, 30 May 2026 01:58:40 -0700 (PDT) Received: from localhost (a89-182-201-132.net-htp.de. [89.182.201.132]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-45ef3559645sm8925833f8f.26.2026.05.30.01.58.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 May 2026 01:58:39 -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 v2] 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 10:58:21 +0200 Message-ID: <20260530085821.19689-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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 243373683f98..9a58fed694b7 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -84,15 +84,20 @@ find_other_sources() all_sources() { find_arch_include_sources ${SRCARCH} '*.[chS]' + find_arch_include_sources ${SRCARCH} '*.rs' if [ -n "$archinclude" ]; then find_arch_include_sources $archinclude '*.[chS]' + find_arch_include_sources $archinclude '*.rs' fi find_include_sources '*.[chS]' + find_include_sources '*.rs' for arch in $ALLSOURCE_ARCHS do find_arch_sources $arch '*.[chS]' + find_arch_sources $arch '*.rs' done find_other_sources '*.[chS]' + find_other_sources '*.rs' } =20 all_compiled_sources() @@ -100,7 +105,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