[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1c4420f4-361c-7358-49d9-87d8a51f7920@web.de>
Date: Thu, 15 Aug 2019 15:50:38 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Matthias Maennich <maennich@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Julia Lawall <Julia.Lawall@...6.fr>,
Martijn Coenen <maco@...roid.com>, cocci@...teme.lip6.fr,
kernel-janitors@...r.kernel.org
Cc: linux-arch@...r.kernel.org, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-m68k@...ts.linux-m68k.org,
linux-modules@...r.kernel.org, linux-scsi@...r.kernel.org,
linux-usb@...r.kernel.org, kernel-team@...roid.com,
usb-storage@...ts.one-eyed-alien.net, x86@...nel.org,
Alan Stern <stern@...land.harvard.edu>,
Arnd Bergmann <arnd@...db.de>,
"David S. Miller" <davem@...emloft.net>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Gilles Muller <Gilles.Muller@...6.fr>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...hat.com>,
Jessica Yu <jeyu@...nel.org>,
Joel Fernandes <joel@...lfernandes.org>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Kate Stewart <kstewart@...uxfoundation.org>,
Lucas De Marchi <lucas.de.marchi@...il.com>,
Martijn Coenen <maco@...gle.com>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Nicolas Palix <nicolas.palix@...g.fr>,
Oliver Neukum <oneukum@...e.com>,
Philippe Ombredanne <pombredanne@...b.com>,
Sam Ravnborg <sam@...nborg.org>,
Sandeep Patil <sspatil@...gle.com>,
Stephen Boyd <sboyd@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [v2 08/10] scripts: Coccinelle script for namespace dependencies
> +generate_deps_for_ns() {
> + $SPATCH --very-quiet --in-place --sp-file \
> + $srctree/scripts/coccinelle/misc/add_namespace.cocci -D ns=$1 $2
> +}
* Where will the variable “srctree” be set for the file “scripts/nsdeps”?
* Would you like to support a separate build directory for desired adjustments?
* How do you think about to check error handling around such commands?
> +generate_deps() {
…
> + for source_file in $mod_source_files; do
> + sed '/MODULE_IMPORT_NS/Q' $source_file > ${source_file}.tmp
…
I suggest to assign the name for the temporary file to a variable
which should be used by subsequent commands.
Regards,
Markus
Powered by blists - more mailing lists