Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp378024ybg; Tue, 22 Oct 2019 22:47:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKjV/O6wciBiRor/xAFg7MM9F0LdCO8QDpzmMk4GFqRYAf2Ly4Trl6K8YfHUFzGXcOjuCV X-Received: by 2002:a50:e40c:: with SMTP id d12mr34712112edm.256.1571809646258; Tue, 22 Oct 2019 22:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571809646; cv=none; d=google.com; s=arc-20160816; b=wxyDw43akRM3t9AqZk14znJJPbOJMrwXKDlquCzH07i2J9kKHG01YXTdSCUQ1CO35I MBY3bOSCL3TvTbBhMDpDFFkrjtu4kHjJoYlQJUMK0rQkMDzMv68r/g/iZpMjkXffi3zm E3yBr+1u64EmXL/kwZfXxR1iRv6y1yyo/JnB/7WGn3e4j+dhDr4NEeI6XBtS31xICxdK 8T8aX/+gubhtsGfyo/BEN6lWOkAKZYw51HRF9zsjaBbw3FTpe5fPafMRXUQ1XSuN91ql wmRwRmNdcH3PNAH+hVCRF3wL7+s01D7aYO1kdXgv6wqMfYG7ucfrIcxmhIK3ZOmsMQIO Ycsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=4uWhQkSgKJyJpi9dgEd8rnoW9JQaybqUylXhhSC0nec=; b=vxnZw5+QQ5vNenevYM40Hj5FhIdZFpYLRC8Uhbi9YXK/Zmbbr19JU5xnkmPSmHwEbj m4DEXdEyG7UIf7yjcFkkBqqMudTWRt6hKkIB5QgJba0SqXCw5eMY7wREsLFY60lMpQ83 U6yEa57RdASdl2HeOTCqH+2Zv08/D0W6cFS5NI9v/zUFsmRwAUvbr0bP1E2EsS/f90Aa Iz1oTmJgwL9990dbBCgFhq1AAo9VVrOqFRGy1OblytjparjM2zdNKGXcV9Qk0skXNDAn OOnSY0A7ye2A9xYli1UY6ADioGg0aADskpU5GgIYgvSyuwSf8hMePfrwpnnT2xm/i+rh SjNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=AzcLO0Mj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l47si8035305edb.111.2019.10.22.22.47.02; Tue, 22 Oct 2019 22:47:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=AzcLO0Mj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389139AbfJWFWV (ORCPT + 99 others); Wed, 23 Oct 2019 01:22:21 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:39393 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732286AbfJWFWU (ORCPT ); Wed, 23 Oct 2019 01:22:20 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x9N5MD1d007091; Wed, 23 Oct 2019 14:22:13 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x9N5MD1d007091 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1571808134; bh=4uWhQkSgKJyJpi9dgEd8rnoW9JQaybqUylXhhSC0nec=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AzcLO0MjlBC1/BEeJm9qyRkRgcPAkYv4QxMtxeUo3Re7hVadzJzlkr5g7u8mhf8wL I+FMIbGBt8bkCzOTcIPamlUfqvlNGvtpEsBYRyKfjRIYHYFT4wSiqZzNWOFUEnb15o hWUQlgxEJv3mbTl/jyR4fr/ZdqE8uH/8GN+Fhd4ko8xwKe9gfKUG2g20ZZDWqO0P1s /plJux5tDnUCVn4pFMz+DABNLRK0tD114Ty+lCe15mBfEA3Kb8QH9RQ4GjOb4doMG6 DAl4aRfvENZzyWk7XJ0sBdiLQHwbQOS3gTV2ItHPoVXIXamYJsftRc+Hk8VhWOJ9zs 8PZTF/aGNWHVA== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id c25so359145uap.10; Tue, 22 Oct 2019 22:22:13 -0700 (PDT) X-Gm-Message-State: APjAAAWGp1y1nH591KZ/9/uQ/oi+d2onTR7whgW3HK3buHnMglNPfh6E g20YLU1NngUZnQZCrgqOXk2g8by3vryN9O2KrOo= X-Received: by 2002:a9f:3824:: with SMTP id p33mr4091753uad.109.1571808132530; Tue, 22 Oct 2019 22:22:12 -0700 (PDT) MIME-Version: 1.0 References: <20190129204319.15238-1-jacob.e.keller@intel.com> <7b26e6cc-10ce-5df2-6375-1f95bc4da04e@infradead.org> <02874ECE860811409154E81DA85FBB58968DBE54@ORSMSX121.amr.corp.intel.com> <02874ECE860811409154E81DA85FBB58968E1402@ORSMSX121.amr.corp.intel.com> In-Reply-To: <02874ECE860811409154E81DA85FBB58968E1402@ORSMSX121.amr.corp.intel.com> From: Masahiro Yamada Date: Wed, 23 Oct 2019 14:21:34 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] namespace: fix namespace.pl script to support relative paths To: "Keller, Jacob E" , Randy Dunlap Cc: "intel-wired-lan@lists.osuosl.org" , "linux-kernel@vger.kernel.org" , linux-kbuild Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 1, 2019 at 5:49 AM Keller, Jacob E wrote: > > > -----Original Message----- > > From: Masahiro Yamada [mailto:yamada.masahiro@socionext.com] > > Sent: Saturday, September 28, 2019 5:21 PM > > To: Keller, Jacob E > > Cc: Randy Dunlap ; intel-wired-lan@lists.osuosl.org; linux- > > kernel@vger.kernel.org; linux-kbuild > > Subject: Re: [PATCH] namespace: fix namespace.pl script to support relative paths > > > > On Sat, Sep 28, 2019 at 8:30 AM Keller, Jacob E > > wrote: > > > > > > > -----Original Message----- > > > > From: Randy Dunlap [mailto:rdunlap@infradead.org] > > > > Sent: Friday, September 27, 2019 4:12 PM > > > > To: Keller, Jacob E > > > > Cc: intel-wired-lan@lists.osuosl.org; linux-kernel@vger.kernel.org; linux-kbuild > > > > > kbuild@vger.kernel.org>; Masahiro Yamada > > > > Subject: Re: [PATCH] namespace: fix namespace.pl script to support relative paths > > > > > > > > > > > > re: https://lore.kernel.org/lkml/20190129204319.15238-1- > > jacob.e.keller@intel.com/ > > > > > > > > Did anything happen with this patch? > > > > > > > > Please send it to linux-kbuild@vger.kernel.org and > > > > Cc: Masahiro Yamada > > > > > > > > You can also add: > > > > Acked-by: Randy Dunlap > > > > Tested-by: Randy Dunlap > > > > > > > > > > > > I was just about to fix this script but I decided to first see if anyone else > > > > had already done so. Thanks. > > > > > > > > -- > > > > ~Randy > > > > > > Done, thanks. > > > > > > Regards, > > > Jake > > > > > > Applied to linux/kbuild. Thanks. > > > > Great, thanks! This scripts has been 5-year broken, and I did not see any complaint except from you. So, I wonder how many people are using this. Nor, do I understand how to use it. Could you teach me a bit more about this script? Something might be missing in my mind, but I do not know how to use this script in a useful way. It provides three checks. [1] list_multiply_defined() This warns multiple definition of functions. The compiler would fail if it saw any multiple definition, so the reports from this check are all false-positive. [2] resolve_external_references() This warns unresolved symbols. The compiler would fail if it saw any unresolved symbol, so the reports from this check are all false-positive, too. [3] list_extra_externals This warns symbols with no reference. This potentially contains lots of false-positives. For example, the core framework provides APIs, but if all drivers are disabled, there is no user of those APIs. I built the kernel with x86_64_defconfig, and namespacecheck provides 1400 line reports for [1]. 200 line reports for [2]. 6800 line reports for [3]. Most of these seem false-positives. How can I use it for the code improvement? [3] might be still useful to find 'static' candidates, but it would be difficult given the amount of the report. -- Best Regards Masahiro Yamada