Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp493370ybl; Wed, 14 Aug 2019 01:05:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzol8+NXJmvDVAXs1r8ilfSYFYKj41fEytBJb5Gg3WtuUROfaJgwDanOgBmouJ/VQk8VOt/ X-Received: by 2002:a62:1715:: with SMTP id 21mr19879464pfx.134.1565769950056; Wed, 14 Aug 2019 01:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565769950; cv=none; d=google.com; s=arc-20160816; b=zwxF+ZfyxAKWbi8MnbwM9RH5KCkm1Pjl+obiN/RHRomuzvZRG1ClBua74URWJr8mk4 ov0nYfbn9gKb+oiznTAYyw3ZyPmqQJslGQKpQXkO7YrPLOXSgidissRBW0EaGB0GMBz7 ODj0UsYNdl3Y5VzKnrK2Va5EQjuSc2DgKqS3TfEjPsGlfFAbmKCJGY5NyyYEQAUz1I0V O3e3d3QSYXqguNaurUN8fYu73S5h1m57zwhp9XSaBF79YFJG7uLxraQEWim5UOb4FSLy 9Li1gx9FMrNNqxnlrJPu9791dGSF1QmLUrhtnFw1LdN3wm1AeovaYPdtA1SwfPPGZ343 WLGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u1kTruUi3YdB800wT1pXkaOjMSivOUWKVyyY/Zt731g=; b=B0XZF4tZ6PUuTN7PvM0n0yCr2m3qvJP+48B8zEsE5MU4kxvKzrz9DmkIXaxcWSfAVw HFdmqm2eav7kfroesKqbXc+a1ba7RgVghyEROwVPquh0FPrC7nCWSI/Xk7A0bTMDOK+z TPwpGNyUX2uhzdIkHvFDlj5L+QYDPrAU5R5uSZN5BzSsoD5hjj46xy6l1xeoaSE5txOE RDFT0LhiGyo1tWYUwbHzSRi/DzUTlb3kzUBknhoTdVd7Z4RP6fVqucfhkAb7rCefLxo+ 8mDVjhHLFRyqfpaLqbjXuDXL5yQSNg+arRfJhzz12EgQf+SWjMeJ45q/ujzaS8GPltLP 3/XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aBPUev9Z; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l40si25403891plb.205.2019.08.14.01.05.33; Wed, 14 Aug 2019 01:05:50 -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=@google.com header.s=20161025 header.b=aBPUev9Z; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727009AbfHNIDR (ORCPT + 99 others); Wed, 14 Aug 2019 04:03:17 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52445 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbfHNIDP (ORCPT ); Wed, 14 Aug 2019 04:03:15 -0400 Received: by mail-wm1-f66.google.com with SMTP id o4so3585172wmh.2 for ; Wed, 14 Aug 2019 01:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=u1kTruUi3YdB800wT1pXkaOjMSivOUWKVyyY/Zt731g=; b=aBPUev9Ze7ZpXmccQd1KFcRQ9+YZEvEIJ2mXE7D/eE4mW0NWELCy32Z9swdThfnFBF uwtFZsx0n+nZPSfcdbUAoi2maYUPyAGE6VZvX1lxXucBNdBbPTrKrpL+APlXG6nq0usR 7T3hKQZ8OfkYXRqYiqYd86anCcfqziM9dMWWG97DVfu1X0mjwovdY+J6TV25XUuh6Vhq Xi3Ng7NKhUr4M0lpXoNBdpFRyjhTf0YlPodDH3z4Nge4kVC3ptXr9zrGX9HD6K0+NbYi EuCHR8LyYsg3WfxgBZyJ7LK6acjuYTK/s2Uy/3kWehj3pEeX80Z6NVS08CjMjM7+MPUt 6B4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=u1kTruUi3YdB800wT1pXkaOjMSivOUWKVyyY/Zt731g=; b=gym7DH7Rv6B8SuM9Kq+tNR1CFxC8cfB7BJIPRG3Qb6XmmTv4ipQ01VBac+DCTCNGyw DUiD70zuhpRiXWbBbdy6O7g/U5lYicu4WR5apkot5G1v7IaEdEb3z6amyuapQwU/YAd9 6J3r8VW5KURtuwze6hPUVJluzQZ/Z6xqYaszQToT15OrcNVGvKkdCtQTIHFpppcz5VI3 8LNlq07GQnfaRgDKPgl8ORM3PY8eFB9GUFCgBD3z/rnqOjS15Qh2rl2ogbGYel+KMeMf uqY2faVJZnHRrvw6flMxFJU1+R4DHZRpS7PDIYB4+1npjKnF1UHXQTEJV6L7xUEiUCDN Vn4Q== X-Gm-Message-State: APjAAAWXX6H37oqzuLU9Yp1DFf+80YfbVRE7tjtLOsWvrsJlDyOe0HCX Oiun7irIrdx/7qNVBn+YLDHMuA== X-Received: by 2002:a7b:ca5a:: with SMTP id m26mr6573824wml.134.1565769792542; Wed, 14 Aug 2019 01:03:12 -0700 (PDT) Received: from google.com ([2a00:79e0:d:210:e8f7:125b:61e9:733d]) by smtp.gmail.com with ESMTPSA id 39sm28546562wrc.45.2019.08.14.01.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 01:03:11 -0700 (PDT) Date: Wed, 14 Aug 2019 09:03:07 +0100 From: Matthias Maennich To: Himanshu Jha Cc: linux-kernel@vger.kernel.org, maco@android.com, kstewart@linuxfoundation.org, linux-m68k@vger.kernel.org, oneukum@suse.com, Mauro Carvalho Chehab , usb-storage@lists.one-eyed-alien.net, hpa@zytor.com, joel@joelfernandes.org, sam@ravnborg.org, cocci@systeme.lip6.fr, linux-arch@vger.kernel.org, linux-scsi@vger.kernel.org, x86@kernel.org, lucas.de.marchi@gmail.com, mingo@redhat.com, geert@linux-m68k.org, stern@rowland.harvard.edu, kernel-team@android.com, sspatil@google.com, arnd@arndb.de, linux-kbuild@vger.kernel.org, Nicolas Palix , jeyu@kernel.org, Jonathan Cameron , tglx@linutronix.de, michal.lkml@markovi.net, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, Nicolas Ferre , maco@google.com, pombredanne@nexb.com, "David S. Miller" , linux-modules@vger.kernel.org Subject: Re: [Cocci] [PATCH v2 08/10] scripts: Coccinelle script for namespace dependencies. Message-ID: <20190814080307.GA2911@google.com> References: <20180716122125.175792-1-maco@android.com> <20190813121733.52480-1-maennich@google.com> <20190813121733.52480-9-maennich@google.com> <20190814063611.GA22387@himanshu-Vostro-3559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190814063611.GA22387@himanshu-Vostro-3559> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 14, 2019 at 12:06:11PM +0530, Himanshu Jha wrote: >On Tue, Aug 13, 2019 at 01:17:05PM +0100, Matthias Maennich wrote: >> A script that uses the '.ns_deps' file 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 >> Signed-off-by: Matthias Maennich >> --- > >[] > >> MAINTAINERS | 5 ++ >> Makefile | 12 +++++ >> scripts/Makefile.modpost | 4 +- >> scripts/coccinelle/misc/add_namespace.cocci | 23 +++++++++ >> scripts/nsdeps | 54 +++++++++++++++++++++ >> 5 files changed, 97 insertions(+), 1 deletion(-) >> create mode 100644 scripts/coccinelle/misc/add_namespace.cocci >> create mode 100644 scripts/nsdeps > >[] > >> +if [ "$SPATCH_VERSION_NUM" -lt "$SPATCH_REQ_VERSION_NUM" ] ; then >> + echo 'spatch needs to be version 1.06 or higher' > >Nitpick: 1.0.6 > Good catch! Thanks! Actually it needs to be even 1.0.4, so I will just use $SPATCH_REQ_VERSION from above. >> + exit 1 >> +fi > > >-- >Himanshu Jha >Undergraduate Student >Department of Electronics & Communication >Guru Tegh Bahadur Institute of Technology