Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4137147ybg; Fri, 25 Oct 2019 13:56:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6/e9cwsJSKpF3SfYF/v5ffGFbHodsr6n3w1ItF8JP9DDhSuSvkfuwVckRc4CE/6jV4LKt X-Received: by 2002:a17:906:c444:: with SMTP id ck4mr2614671ejb.110.1572036970441; Fri, 25 Oct 2019 13:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036970; cv=none; d=google.com; s=arc-20160816; b=sznIiDGdHPV8gRQJVloEs9jawHLK9/2DNXkpIZ/oFsI9/UOv2CFRAGs1y1Ls6gF1Wh ZjkpoEIZJ7fQkoNV7ubnvtTDyNBBfHvZwJuKL1lo246Fc8DZ34V9bhyKdQIiYQgMXVdw OWYZ0+D3KGmxM5PiTnic6SKiOwrGcKGiyHxCJvAhKcYpHG/2ftpjdSt2R7YoeiFPXUuD ucB8H9fiG4sdv5b5tIaUhne7VlAEpW7OoQNq3hN+rFXPM1VDd3ung8HrcVZ79GKlTZ5f +XRXtx06BoLZQkgwaroCsSuqEmKG/UHJ5AJdWDw5FuKA7krl1DIGws4iP5D41oPsd++n GzgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=eRmEhu6UaEE9aDlNXBAMxFiri2OdztWgkwKxSJoiZ7s=; b=PTCj9aIbaGjKXOm46pPbxxTsJsWrPwjpZuvofKuquOinyZGs94X62WgxUbneoVC7vt 9LpJ9Tx30lo92cOyNGoQRolQhMRxnStKZnz+dY+FwwD2g+t7fZ29RlKmMjaGpkptaC42 +9BcPRWYLUAaAmbSQNpfn2Brem5/qjXC7eyDsOUppHF30w0FmxM1jr7czxkb2nJhsDTE qQfZAMQqjREmqaRU83LWfpSZErW5wu4wx9AZNxFDcG4Qcug/lINAzqTdwrUCJ2QoOzQL qi7aesft7PmFmvL9AqnVqHk3v4XWZW2lawHt0PHnc0Y1XweFiV3iJ5SyzwNjiJLvIZPv cGAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N0sE4R4O; 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 c2si2028911eda.322.2019.10.25.13.55.41; Fri, 25 Oct 2019 13:56:10 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N0sE4R4O; 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 S1727118AbfJYTaE (ORCPT + 99 others); Fri, 25 Oct 2019 15:30:04 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35134 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfJYTaD (ORCPT ); Fri, 25 Oct 2019 15:30:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eRmEhu6UaEE9aDlNXBAMxFiri2OdztWgkwKxSJoiZ7s=; b=N0sE4R4O6dRfbhhWJpeT2AZCV 5qYj2nO9mONNABKxdKeG5MU9hjSvSqIyIU/ZowuG3q1df2Mt5b6L+AEwwrbVGmuivPhzfAeVJsuxe llD1ZFLQL8MHpA+KduLWRmHp1xqT5+hgS0V74Gbm2Q6SBS0aiuD7nf2S4lhioXwcIDbFUMXVC69cd sAxkeE42hfhRi7u5Uk01raoShpsq6U9iHP2Pw9nd67tEF4E8QjAgzWESB5Q2DGv0bce9YhNnJoKZW MteCGtihh7nGLw56DwWPDYGsUoTc8+U428/IpU9P7mnAMWKyWZs6VtULssZFyI084NS1MW9EwpdOH Bo2KVaH4Q==; Received: from [2601:1c0:6280:3f0::9ef4] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iO5He-0003Ig-Tg; Fri, 25 Oct 2019 19:30:02 +0000 Subject: Re: [PATCH] namespace: fix namespace.pl script to support relative paths To: "Keller, Jacob E" , Masahiro Yamada Cc: "intel-wired-lan@lists.osuosl.org" , "linux-kernel@vger.kernel.org" , linux-kbuild 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> <02874ECE860811409154E81DA85FBB589693A38A@ORSMSX121.amr.corp.intel.com> <02874ECE860811409154E81DA85FBB589693D053@ORSMSX121.amr.corp.intel.com> From: Randy Dunlap Message-ID: <6127ec91-ad81-f0d7-576e-22e06e677442@infradead.org> Date: Fri, 25 Oct 2019 12:30:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <02874ECE860811409154E81DA85FBB589693D053@ORSMSX121.amr.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/25/19 10:45 AM, Keller, Jacob E wrote: > >> -----Original Message----- >> From: Masahiro Yamada >> Sent: Wednesday, October 23, 2019 6:22 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 Thu, Oct 24, 2019 at 6:34 AM Keller, Jacob E >> wrote: >>> >>>> -----Original Message----- >>>> From: Masahiro Yamada >>>> Sent: Tuesday, October 22, 2019 10:22 PM >>>> To: Keller, Jacob E ; Randy Dunlap >>>> >>>> Cc: 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 >>>> >>>> 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. >>>> >>>> >>> >>> The compiler won't necessarily fail when building modules, because the symbol >> might be in another loadable module. >> >> Right, but this is already checked by modpost, isn't it? >> >> >> >>>> >>>> >>>> [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. >>>> >>> >>> We use this to help verify that driver modules do not expose symbols. >> >> Ah, the output is quite large, so >> you search for only modules in your interest. Right? >> > > We run it on only one module at a time, yes. > >> >> If you want to detect missing 'static', >> have you tried 'sparse'? >> > > We've used that as well. > > To be fair, I agree that it covers similar functionality as other tools. I haven't looked directly at namespace.pl output in a while, and the fix here is multiple years old that took a long time to get picked up. > > If it's agreed that the tool has no value, and especially if it results in false indications of a problem, then maybe removing it to prevent someone from mis-reading its output makes sense? If there is a satisfactory alternative, I expect that namespace.pl is old, unmaintained, and unneeded, and should go away. -- ~Randy