[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.20.1602082331040.17825@knanqh.ubzr>
Date: Mon, 8 Feb 2016 23:36:18 -0500 (EST)
From: Nicolas Pitre <nicolas.pitre@...aro.org>
To: Al Viro <viro@...IV.linux.org.uk>
cc: Michal Marek <mmarek@...e.com>, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org, Rusty Russell <rusty@...tcorp.com.au>
Subject: Re: [PATCH 1/6] kbuild: record needed exported symbols for modules
On Tue, 9 Feb 2016, Al Viro wrote:
> On Mon, Feb 08, 2016 at 03:28:30PM -0500, Nicolas Pitre wrote:
> > +ifdef CONFIG_TRIM_UNUSED_EXPSYMS
> > +cmd_undef_syms = $(NM) $@ | sed -n 's/^ \+U \(.*\)/\1/p' | xargs echo
>
> Umm... sed -nre 's/^ +U //p', perhaps?
Yep, I like it better.
Although I might be tempted by sed -n 's/^ \+U //p' to avoid the "non
portable" mention that comes with -r (do we actually care?).
Nicolas
Powered by blists - more mailing lists