Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp181553iog; Tue, 28 Jun 2022 19:52:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZ4s3c4+H5CZ45GfQ1JZCfL0/g8DlVYdoRIozdVMeURZaXjHB4hQxwPcnOIspOPDRn/gqf X-Received: by 2002:a63:481a:0:b0:411:7951:cbcd with SMTP id v26-20020a63481a000000b004117951cbcdmr1049312pga.66.1656471176363; Tue, 28 Jun 2022 19:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656471176; cv=none; d=google.com; s=arc-20160816; b=nzlL9TSFEMQAHjLn5fS6xkCB2ZJEuExO+IrIlGjnZtYtQze/3Nkn595NHRfgDuxJG7 23UsuxM7wLb9UCnNeTI8kOmIAZrl0IZPoGITn9ZMSgzafIA1fFfyUH9OzXQU2ZxxQpxV u+TvolKKLdPigt8DPO4TMyGlhEKf1/+8mCWZpkeTLBGHzMQ+t24N0tHQHsr+sOr/w0ts MK52DcHdXJrk9b8lPCo1uPs/YqFq2RJXMfWVWtixQ+llcrNeH7M75kQAPSFNRoRiuHz5 RvkDArzwt9g8MM0nXJX8tZJAAa5PuR8s0xhszSY/olRqy486k3x+HBC98euW+cvrgBO3 6UiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=XuRRlV6DEIohD5LwyniED6YKhD1PNvGzty9vC0eaPEQ=; b=PqD8ckaYbP4alDAod9apstg9ns4qt6Ip/N3gMLv/Tob710d1wakT4R4nwXUfC42Wkb ZfqvTHaKtzkSSkDYVcdtfZ0raQ4E8pYitQ5XI/ouQb6sbN/vCQOCIQCyR4p6hRWvSr3m bqfyQqLwW3HRY+OIhRnRvFS4jY0La165q/n1dgpkpOASljPqOIRHsu6CE5b2sXjdcxCe ELRRuU+2wqWd+K4/FMcewQT1346PK53YrNI21gcj5oMM+p45xM4drIf9BDtcNsnoKz3t BVk+57IQySIhRbemunas0cdz7YL/J7OPGSShnZe8Fk9hqoQaxJt09a9m57dvfRj5IyxB NiSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VYAeGbpN; 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 j64-20020a638043000000b003f8a48ed403si20523937pgd.580.2022.06.28.19.52.23; Tue, 28 Jun 2022 19:52:56 -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=@nifty.com header.s=dec2015msa header.b=VYAeGbpN; 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 S229573AbiF2CqP (ORCPT + 99 others); Tue, 28 Jun 2022 22:46:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiF2CqM (ORCPT ); Tue, 28 Jun 2022 22:46:12 -0400 Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 882FD22BD6 for ; Tue, 28 Jun 2022 19:46:11 -0700 (PDT) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 25T2jrox026729 for ; Wed, 29 Jun 2022 11:45:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 25T2jrox026729 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1656470754; bh=XuRRlV6DEIohD5LwyniED6YKhD1PNvGzty9vC0eaPEQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VYAeGbpN0CHJ3SntlK30JJguH7UZgMetFseKlwixXVAtSheRMEWSXpvDkL8IelisQ LdwoNEp/cFLNJgaf4gQkv8iky9sJ5ys8hxmwgHk8P1QCsvKjjGnDmIWWGZOsuXf/tG 0wcuFLlP1inhBeS9khIDdraktlpREvr1aK51UPcpZicgCh5oZLN4FOW7pMy0Vd92cl c0fviKw44cIAL8FZklxksUC57eV9sj3AOVj1wq3RqwtN48pIqLgN2AfrGBGz3unn4g FfSZD6sauc6zbW1V/m5pkYgy+YdDqlPTybETtea2cLazk9ALfc9GJaj5/KSF/MLQzX icyZn4KrxmsFg== X-Nifty-SrcIP: [209.85.128.42] Received: by mail-wm1-f42.google.com with SMTP id o19-20020a05600c4fd300b003a0489f414cso5140169wmq.4 for ; Tue, 28 Jun 2022 19:45:53 -0700 (PDT) X-Gm-Message-State: AJIora/BjfMSbLB+T/GdlyLsMQ8fMbBNM2x+D6LWuX5PPHZGInOeVamS v7NHXq9jTWk7a2jOOqwDmkkwCCGRraG+5nLKJ10= X-Received: by 2002:a1c:6a06:0:b0:3a0:5099:f849 with SMTP id f6-20020a1c6a06000000b003a05099f849mr2804764wmc.14.1656470752486; Tue, 28 Jun 2022 19:45:52 -0700 (PDT) MIME-Version: 1.0 References: <20220628012353.13995-1-jhubbard@nvidia.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 29 Jun 2022 11:45:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] gen_compile_commands: handle multiple lines per .mod file To: Nick Desaulniers Cc: John Hubbard , Nathan Chancellor , Tom Rix , Jason Gunthorpe , LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Jun 29, 2022 at 3:45 AM Nick Desaulniers wrote: > > On Mon, Jun 27, 2022 at 6:24 PM John Hubbard wrote: > > > > scripts/clang-tools/gen_compile_commands.py incorrectly assumes that > > each .mod file only contains one line. That assumption was correct when > > the script was originally created, but commit 9413e7640564 ("kbuild: > > split the second line of *.mod into *.usyms") changed the .mod file > > format so that there is one entry per line, and potentially many lines. > > > > The problem can be reproduced by using Kbuild to generate > > compile_commands.json, like this: > > > > make CC=clang compile_commands.json > > > > In many cases, the problem might be overlooked because many subsystems > > only have one line anyway. However, in some subsystems (Nouveau, with > > 762 entries, is a notable example) it results in skipping most of the > > subsystem. > > > > Fix this by fully processing each .mod file. > > > > Fixes: 9413e7640564 ("kbuild: split the second line of *.mod into *.usyms") > > Cc: Masahiro Yamada > > Cc: Nick Desaulniers > > Thanks for the fix, John! > Reviewed-by: Nick Desaulniers Applied to linux-kbuild/fixes with Nick's reviewed-by. Thanks. -- Best Regards Masahiro Yamada