Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1235854rwd; Sat, 20 May 2023 16:05:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4f4kkTcJkyVgJyd7PYAvD0BAleZwmJuLPxTZdOn5/Luuzv0aNbO+MJ9zAD0a+44tTnaPax X-Received: by 2002:a17:903:18b:b0:1ac:82bb:ebdf with SMTP id z11-20020a170903018b00b001ac82bbebdfmr7604747plg.58.1684623946284; Sat, 20 May 2023 16:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684623946; cv=none; d=google.com; s=arc-20160816; b=SkwO5LMwKgs6SexgJG/Ka6+BbY5IfLIo4IAKYEbbvle2QvtsKOspxFQYODTq8WZDcB XRyegTdWQrCLhTR4i6TccO+GqHFAqIo9oHDnFk6lwkzqdw42eJIJuWfXJ52RUPIKUYG5 Ob5zNlqp+68RqfldpfCMTfz9SbYxNnLfWINFdftoZuIuuxEnIC+c9E67FUYcaGyTtu3j bDR5MZbNOtXP9MJ5BH8jquY5U2WnpArJb7vjY7atTKO5AZwUSyPqFz7/yGjc/XmVsWB8 v4xyZxTgWINJVpKJIayk+JdNQpkjSLCgwlriRIVx35PvmCnd4hgiXqam2Y0+QOq9qF9s Ah9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WHjrDxzWDh1R1qrkhkwqyo9zPPl+IiQHIWJSheUCpv0=; b=B39n+PklVy4OnxByCHCLK9An8unhX9qamUhbFx1d8RhDxmu/tPmQilQgshXXdxHIld pe9r6jixCBCFwrOCXF5NB/FybEdJg5LDUoqP7BoVAKEQCUwagZMYSudcS8HIr7LEe6Ph 92/Pi+jYFo0/Nw3wAE949sTlno1hDPPi1tQEl0BAWHrjlW9GwCWkq9CAIbJ8q3MCUIWP wYPQ0RVBmUTuQgN1prg6FziVNuxvGxgrZ8M7OZhwdAiUWrSi0w91oEDuI75LKqiveeC4 9wo+0ZPG51oKPHHo4LVoXc49yzNo8Uc870o82rjif1FgSnBLQlCbTnCcQr8zlTCUJse5 fHrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UNLYWE6O; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a170902b28c00b001a6c524c18asi2074566plr.40.2023.05.20.16.05.31; Sat, 20 May 2023 16:05:46 -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=@kernel.org header.s=k20201202 header.b=UNLYWE6O; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbjETWlw (ORCPT + 99 others); Sat, 20 May 2023 18:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjETWlv (ORCPT ); Sat, 20 May 2023 18:41:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B02ACDE; Sat, 20 May 2023 15:41:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B73560C3C; Sat, 20 May 2023 22:41:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5CE2C433EF; Sat, 20 May 2023 22:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684622509; bh=uoMxow7xFBBRRvshKvrIaPvVPMHtBi6h9O2RJF+yIQA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UNLYWE6OrxkNb/F3fYYUELjZEWqr71e65cwbS36XIMBrM/El6pHDcXTRCYttbaeTN Wz/+b3JevKDHS424vwjctXtpOgxNdLj/a3cPVdySMrBr9cgl7LJoTkWIFQdCZ/Yf/f Vu9sYuemDxosbs7c45T70Kfrl0IWdIFqN3RnQP+BwhneTpPu+wX6ckowcPzdWGwCa3 lliab0u+W1dU0quQAmAKlu880cqaJwptvEopyqgiP51Dk6ojwyQH6a4pPyyaSoVzoq /5r/8sWCQB8jfUcmRgEmYQiNwOk6HITbw0vse1zLWrjI2+va1vY3HYq7UL3IqJ7fHs vqfkoWUC7z/dg== Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-19a08412723so3785445fac.0; Sat, 20 May 2023 15:41:49 -0700 (PDT) X-Gm-Message-State: AC+VfDzztbbH/9vMQIHoWe+7wo8MlNo2bXHPwDAZU0I6jjJZeRtZLr/R pk2ER89dNuO7IRKDa7Is3sXi5vUBU/QlPiG2fl8= X-Received: by 2002:a05:6870:90c2:b0:18e:b6d5:7451 with SMTP id s2-20020a05687090c200b0018eb6d57451mr3979310oab.13.1684622508953; Sat, 20 May 2023 15:41:48 -0700 (PDT) MIME-Version: 1.0 References: <20230509012616.81579-1-darwi@linutronix.de> <20230515173217.64864-1-darwi@linutronix.de> In-Reply-To: <20230515173217.64864-1-darwi@linutronix.de> From: Masahiro Yamada Date: Sun, 21 May 2023 07:41:12 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/2] scripts: Resolve gtags empty index generation To: "Ahmed S. Darwish" Cc: Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Jonathan Corbet , Thomas Gleixner , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, May 16, 2023 at 2:33=E2=80=AFAM Ahmed S. Darwish wrote: > > 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=3D 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=3D kernel builds is currently broken. For example, when = doing: > > make O=3D../build/ x86_64_defconfig > make O=3D../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 o= f source tree. ignored. > Warning: '/home/darwi/linux/arch/x86/include/asm/hpet.h' is out of sou= rce tree. ignored. > ... > Warning: '/home/darwi/linux/virt/lib/irqbypass.c' is out of source tre= e. 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=3D../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. > > =3D> > > Ahmed S. Darwish (2): > scripts/tags.sh: Resolve gtags empty index generation > docs: Set minimal gtags / GNU GLOBAL version to 6.6.5 Both applied. Thanks. > > Documentation/process/changes.rst | 7 +++++++ > scripts/tags.sh | 9 ++++++++- > 2 files changed, 15 insertions(+), 1 deletion(-) > > base-commit: f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 > -- > 2.30.2 --=20 Best Regards Masahiro Yamada