Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2366964rwd; Mon, 15 May 2023 10:37:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4P4MmOYJrqM0NkZzqbHFjoPxU6Lm1dI1uva0LHvFxXcWa9d7bJ93h8lIwC/KALcimkZdyH X-Received: by 2002:a17:902:6b03:b0:1a6:a1ec:53a3 with SMTP id o3-20020a1709026b0300b001a6a1ec53a3mr33924858plk.3.1684172235085; Mon, 15 May 2023 10:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684172235; cv=none; d=google.com; s=arc-20160816; b=rcwy8e6YfJSfTxhpXJGSV6U1LtQ1m9r370JfKMwL9RzELVnZWuB/vNAv71eOQtf4rK 86GOYxOAPe8qnt1u7N3tlc0/4OARtTSMoKowOaFMldnsSiyQDjqPL3lPc2bW3EYmKPjg 3mF8CP01lXyeqD55Isu9Cmhsv5Ue4eq5DRp4C0uSrxiteSin0rLQPOuEmn/Wa+JdRFXd XuibEq8EaW6geo6VPT7TA+4GXIvUa0xzYNuSUtifgR1fL6izsU2cfIZKmjHTKV9Apqm5 JhGYYLj7hDSg8WsRVcCM/whpgj254Dzx5w6kLpoUVJB2d4no33BQBEpBulezUiTXfNzV 971Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=addFDOwDN7zZOiUqIBZIOtdDS3nxDvnw4XQVLZNyeFE=; b=JTl4/Av1TrRzTOHnhIqwnSgGEZv8p2Vc/JKZHIzXKlxbkxMTTWDCLtZZOYIIfLgE5B adX+00p+8m4PAh9WPuE+ltD+vtegNtjptRzb58Buif9k6o4g65p2cmebLefi4k5bxmMs 3Ff1Kb/2rTZ1uBhX1e3nNGwAPgKgnhqVmPLg73og36pjwtb3oIXFvMrEh90juRy3AmMY 6CHa0QFzNIvjuHKkzLrI4YzdYdBKyFOQJ327ezTUgLtD82Y8Q1HbekokpSKDyzIZKZqM O9nL0C91pUA0lJUR6XxCSLTsCafb/Xtl5hoLdZakSdU/F+1i3TcflbrKZg32n5OUe7z0 B74g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CtwUIOBi; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=6Gld4Iyb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a170902ea8400b001ab09a66f8dsi11948295plb.106.2023.05.15.10.37.02; Mon, 15 May 2023 10:37:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CtwUIOBi; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=6Gld4Iyb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244387AbjEORfS (ORCPT + 99 others); Mon, 15 May 2023 13:35:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244375AbjEORev (ORCPT ); Mon, 15 May 2023 13:34:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B5911D9E; Mon, 15 May 2023 10:33:04 -0700 (PDT) From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684171982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=addFDOwDN7zZOiUqIBZIOtdDS3nxDvnw4XQVLZNyeFE=; b=CtwUIOBiO8mT7INtttL6eBklQycc+hSjSGoxJ4Qt/mwAUXF9M0de2D3IT8zhoPiYH8TGkB GjCN+Eo2HTfWHUbjSW0XvbF8SLtZeQS0kvKA6CFjXcmGC6R4aEWGaJ3hDDMUOCGL/IrmoT rSGQYozqizEQChQOvtmHneRUMMmB8ehSsF9ql5eQOvmZDNPpMUkBb84FB7auqU8XDM5cRl GkckFngE4jZZpK2j/h4ymCY27uT/vytDuruTbWVyIiOvtp1n1VIIG7QXzI8F+KxwFwbZA7 nfQbTnMnZKom5ukNc10t6M+2DluvJSK4PzR+BGzejKJOJpGWLNWfKr8puQnYkQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684171982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=addFDOwDN7zZOiUqIBZIOtdDS3nxDvnw4XQVLZNyeFE=; b=6Gld4IybAdW1wma4ZMe7d8oj+OENAl6+jJreuNMYWukmat/MAMUA5MYQQSnnGicGiddMn9 n8EtALGZtY1+XHAQ== To: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Jonathan Corbet Cc: Thomas Gleixner , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, LKML , "Ahmed S. Darwish" Subject: [PATCH v3 0/2] scripts: Resolve gtags empty index generation Date: Mon, 15 May 2023 19:32:15 +0200 Message-Id: <20230515173217.64864-1-darwi@linutronix.de> In-Reply-To: <20230509012616.81579-1-darwi@linutronix.de> References: <20230509012616.81579-1-darwi@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, v3-changelog ------------ Handle review remarks from Masahiro Yamada: - Apply shellcheck on new "scripts/tags.sh" code. - Shorten code through shell's "default value" parameter expansion. NEW: - Cc docs maintainer (Documentation/process/changes.rst change). Thanks! v2-changelog ------------ https://lkml.kernel.org/r/20230509012616.81579-1-darwi@linutronix.de Handle review remarks from Masahiro Yamada: - scripts/tags.sh: remove the O= language, and focus on the general case of the build directory being different from the kernel source tree, as specified in kernel Makefile L159. - Fix failure when build directory is a subdirectory of the kernel source tree. NEW: - Update Documentation/process/changes.rst with new gtags (GNU GLOBAL) requirements. Thanks! Cover letter / v1 ----------------- https://lkml.kernel.org/r/20230504201833.202494-1-darwi@linutronix.de make gtags for O= kernel builds is currently broken. For example, when doing: make O=../build/ x86_64_defconfig make O=../build/ gtags gtags generates a warning for each kernel source file to be indexed: make[1]: Entering directory '/home/darwi/build' GEN gtags Warning: '/home/darwi/linux/arch/x86/include/asm/qspinlock.h' is out of source tree. ignored. Warning: '/home/darwi/linux/arch/x86/include/asm/hpet.h' is out of source tree. ignored. ... Warning: '/home/darwi/linux/virt/lib/irqbypass.c' is out of source tree. ignored. make[1]: Leaving directory '/home/darwi/build/' and then generates an empty index: $ du -hs ~/build/G* 16K /home/darwi/build/GPATH 16K /home/darwi/build/GRTAGS 16K /home/darwi/build/GTAGS This series includes a proposed fix. After applying it: $ make O=../build/ gtags make[1]: Entering directory '/home/darwi/build' GEN gtags make[1]: Leaving directory '/home/darwi/build' $ du -hs ~/build/G* 9.1M /home/darwi/build/GPATH 506M /home/darwi/build/GRTAGS 696M /home/darwi/build/GTAGS The generated files can then be integrated with editors or IDEs as usual. => Ahmed S. Darwish (2): scripts/tags.sh: Resolve gtags empty index generation docs: Set minimal gtags / GNU GLOBAL version to 6.6.5 Documentation/process/changes.rst | 7 +++++++ scripts/tags.sh | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) base-commit: f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 -- 2.30.2