Re: [PATCH 1/6] kbuild: record needed exported symbols for modules

Al Viro
2016-02-09T04:15:29Z

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?