Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1208597ybl; Tue, 13 Aug 2019 09:01:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5Qw6wVNbyp4AIEkxwOrdHy/a7S0zOPxKGRb3kPSxLsaPyONKI+Ms0B9r6mHDqrsE7mXTp X-Received: by 2002:a63:4823:: with SMTP id v35mr35106079pga.138.1565712063176; Tue, 13 Aug 2019 09:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565712063; cv=none; d=google.com; s=arc-20160816; b=nIFEwNEL17Dx6CmFk1lsK4OheaeR6qHnYmORsaeodhGqjkdfrkVzj3zDPvdBpBCXvq im9SKwCbeoiyhTcUwmkdPGs5QKxJsjOsRHf7C0Fhvf652YlmlSVcAZVRTnFaaex3Q0JC Hn5onFRB1j1FH8fWauA6Z5QuD/Gkwl5XGQd4xOJqoWAasSHtiKcvOQDja04D/Rcdni8P RL1+Eg77GebQfwygaZnMRmWxMNC0dJQjBRdk4sHUT8P5H0D/vJCTNlQR3jSM5N/iclnO P9il+itVTr4MsxkWPo4F5z4swPxkC4ydRV8uUeJ3o0fiYkNLK1YInnhH20ZjrSShg+Uj /a/w== 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=KZWw9hyplOk9oHe7HVHwB7vc6Z8N9VaamWjEf/bPu5g=; b=SjZ/pJ58MEoo8euJhFkeyJPD3F6ifdXDNStFysr5bCmNKnbv82a9UGtyuvUu94TF/r IosRBfSKLFjHKLEFL7m5Cm54W6zOWhR+gE/VYYYlZ/AI/1H10yV0DclgZpIX6xVvlwR/ K7t/8KZHa1a0ojCaCfuJHpQcp7Kgq8s94TlAizOJc/OVP0nqb+c/591IyiRtQBK2mlev z82fMF5rtquiS4k44lnxyXsa+mYGJcsH8Zis6n3j9yN9SQC33NbRjfgNei9GXWR9Gm60 KdSXcWVGmPInFYoctSKJ0utEcN68bmKpeWSR30D669G1kcmrOTF7QaMaiC5MThDcYGt7 jbJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XP2ar++x; 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 gn16si132218plb.97.2019.08.13.09.00.47; Tue, 13 Aug 2019 09:01:03 -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=@kernel.org header.s=default header.b=XP2ar++x; 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 S1728724AbfHMMof (ORCPT + 99 others); Tue, 13 Aug 2019 08:44:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:51546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728290AbfHMMof (ORCPT ); Tue, 13 Aug 2019 08:44:35 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 350A720578; Tue, 13 Aug 2019 12:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565700274; bh=4lux6yzclVlNzDLsmndEIT6hVCOxBFLTgWTeazzHxYM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XP2ar++xOgoTzbdf3R0qY7+PRC7JV/s1rpD5lsEk2BH7d8XouLHwH1qwwkysDnxTp BCdvvqDfNMCxqqvVkA7kRt1FMSuFaaeCvQmI0E8RHZJTcbPrhFgRZD6SAnE1Xb0qWx tHxPXYbnoM/KJ5ZCx0APTUWSC/Z5ckgIjnIrYXUc= Date: Tue, 13 Aug 2019 14:44:32 +0200 From: Greg KH To: Matthias Maennich Cc: linux-kernel@vger.kernel.org, maco@android.com, kernel-team@android.com, arnd@arndb.de, geert@linux-m68k.org, hpa@zytor.com, jeyu@kernel.org, joel@joelfernandes.org, kstewart@linuxfoundation.org, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-modules@vger.kernel.org, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, lucas.de.marchi@gmail.com, maco@google.com, michal.lkml@markovi.net, mingo@redhat.com, oneukum@suse.com, pombredanne@nexb.com, sam@ravnborg.org, sboyd@codeaurora.org, sspatil@google.com, stern@rowland.harvard.edu, tglx@linutronix.de, usb-storage@lists.one-eyed-alien.net, x86@kernel.org, yamada.masahiro@socionext.com, Julia Lawall , Gilles Muller , Nicolas Palix , Mauro Carvalho Chehab , "David S. Miller" , Jonathan Cameron , Nicolas Ferre , cocci@systeme.lip6.fr Subject: Re: [PATCH v2 08/10] scripts: Coccinelle script for namespace dependencies. Message-ID: <20190813124432.GA12475@kroah.com> References: <20180716122125.175792-1-maco@android.com> <20190813121733.52480-1-maennich@google.com> <20190813121733.52480-9-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190813121733.52480-9-maennich@google.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- I really can't express just how cool this patch is. I was amazed when I first saw it in action a long time ago, and still am. Reviewed-by: Greg Kroah-Hartman