Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp482431ybe; Wed, 4 Sep 2019 02:56:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNaBodGEmByHeiEMqrJnro+wPgEy51PrLn8tX1hB6uTP2YfWFhsXl7jYgDa7tTkV2IYLwo X-Received: by 2002:a63:ed50:: with SMTP id m16mr34019621pgk.209.1567591007065; Wed, 04 Sep 2019 02:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567591007; cv=none; d=google.com; s=arc-20160816; b=E0zHINgyzhpue+wnPLGFSzO6eBBh9n0OdNbZdtkTktB3EDiVbpvxpYd3NI7toGRJz6 J1St3eE97DBa+s/vawDvs89ZeMhXwgL8zGmtxNnxUWDtQGsL6ecgmybJ30OiNWYd2s3D cY+vYKrsiZ56/J4hzsl1/rOuA/AEX7GJyF4dc0K7c8uasYIWH6J5noUpFiaXsInbDYHZ mWdTTfVhbDc5T1WmlmJXHfziGzRtLuMvTjXieUy11OsWoeHfqaMCv8RYv03QhL3jLjPj Gooc2LkZm82k3i90qiEemg8ReYzo7LwEP+xcW+C8Rdoy1Ifnvj8+SDGANKX7+sdDc6B3 J1Mw== 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=JhR6cBZJXNkOmtdDQlpAlb7TvbwSunLjm1s429y9/Dc=; b=srMppDPisWTfFWEpU1YyyP1OCNm4OcH2QGU7LV34aSMjuXKHIfjaOqyEzaivSE1ny3 uUd5FLcTEYBxknFYCg22qxKkaaGswfA9Y0VqsDw0T094wdWDJMckwJorEsd9ehGgW0Bd aAY3HXr3r86Y5v7UXaHHSyD75l3TJgu7PBAvvu4A1KLJagUdLGrv3mriK+wSnEtrKXkV McEEYXmRTbszdxnLyOGWHOpGZzbUkVDpueXF78F6uaD+U6HdGaARbMIFB3fYQKKfH0XG bG8Ivoxmf/M3eCt19BmTnomr0I7XkBjwBTiDBGoUwaQMzAEX++Hzd5dfo3SyMgHiFTbF 9UFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=tc1bbOw3; 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 q5si2054254pjq.11.2019.09.04.02.56.31; Wed, 04 Sep 2019 02:56:47 -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=tc1bbOw3; 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 S1729774AbfIDJyR (ORCPT + 99 others); Wed, 4 Sep 2019 05:54:17 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:36550 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729045AbfIDJyQ (ORCPT ); Wed, 4 Sep 2019 05:54:16 -0400 Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x849s15r014209; Wed, 4 Sep 2019 18:54:02 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x849s15r014209 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567590842; bh=JhR6cBZJXNkOmtdDQlpAlb7TvbwSunLjm1s429y9/Dc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tc1bbOw3q/fS5ESOlY4iWeAPsZZbollJrad1rcRIqARjafvBEG1L+szF2i0iuxMPB mOBSwDvJaIEqaWWvI4fc6KCfVZmuntO3U2gMm3dqAkrSqBaw/bvizI0nuadnKyZvnO 5jc7G4eWKcJKuQ0II/T4Dt4hm1RTHUdzJjVYIMcMjswkke/fj42M15xAKAGss/rgeZ rAYuC5BI98+uj8cX5/KKvSlspeH/HHZAi5RMDOr1tPaRHs1rnmqW1VvJU+o8tHBVuL ZLWc80VaCc+CZHnbxjGOZ1QD+qhaOp/tHcj+4s9tZ2Aeq8luTur+sSSRLm4Af1XGmD 52vqUUmANWokw== X-Nifty-SrcIP: [209.85.217.44] Received: by mail-vs1-f44.google.com with SMTP id b11so7831266vsq.2; Wed, 04 Sep 2019 02:54:02 -0700 (PDT) X-Gm-Message-State: APjAAAUznz7Try3leflUU5c/Vx/rXl8QBV4J9bSMyq+DyL3kdeyE8jvn Tt2HyLBB+VNuIMseXHs25POLE86V2iMbfSy3zcI= X-Received: by 2002:a67:fd97:: with SMTP id k23mr21110513vsq.179.1567590841199; Wed, 04 Sep 2019 02:54:01 -0700 (PDT) MIME-Version: 1.0 References: <20180716122125.175792-1-maco@android.com> <20190903150638.242049-1-maennich@google.com> <20190903150638.242049-9-maennich@google.com> In-Reply-To: <20190903150638.242049-9-maennich@google.com> From: Masahiro Yamada Date: Wed, 4 Sep 2019 18:53:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 08/12] scripts: Coccinelle script for namespace dependencies. To: Matthias Maennich Cc: Linux Kernel Mailing List , "Cc: Android Kernel" , Arnd Bergmann , Greg Kroah-Hartman , Jessica Yu , "Joel Fernandes (Google)" , Lucas De Marchi , maco@android.com, sspatil@google.com, Will Deacon , Linux Kbuild mailing list , linux-modules@vger.kernel.org, linux-usb , usb-storage@lists.one-eyed-alien.net, linux-watchdog@vger.kernel.org, Julia Lawall 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 Wed, Sep 4, 2019 at 12:07 AM Matthias Maennich wrote: > > A script that uses the '.ns_deps' files generated by modpost to > automatically add the required symbol namespace dependencies to each > module. > > Usage: > 1) Move some symbols to a namespace with EXPORT_SYMBOL_NS() or define > DEFAULT_SYMBOL_NAMESPACE > 2) Run 'make' (or 'make modules') and get warnings about modules not > importing that namespace. > 3) Run 'make nsdeps' to automatically add required import statements > to said modules. > > This makes it easer for subsystem maintainers to introduce and maintain > symbol namespaces into their codebase. > > Co-developed-by: Martijn Coenen > Signed-off-by: Martijn Coenen > Acked-by: Julia Lawall > Reviewed-by: Greg Kroah-Hartman > Signed-off-by: Matthias Maennich Without any correct dependency, this does not work. $ make clean; make nsdeps cat: modules.order: No such file or directory cat: ./modules.order: No such file or directory I do not see any point in the Makefile changes. -- Best Regards Masahiro Yamada