sed regex in Makefile.build requires line break between exported symbols
authorNagarathnam Muthusamy <nagarathnam.muthusamy@oracle.com>
Mon, 19 Jun 2017 17:08:49 +0000 (13:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jun 2017 18:13:05 +0000 (11:13 -0700)
commitd16c0649feb4fe4e814f44803df5a617769c3233
tree995e2800a4efd43e9df827caf0df33e37cb49988
parentbdca8cc096203b17ad0ac4e19f50578207e054d2
sed regex in Makefile.build requires line break between exported symbols

The following regex in Makefile.build matches only one ___EXPORT_SYMBOL per line.

sed
's/.*___EXPORT_SYMBOL[[:space:]]*\([a-zA-Z0-9_]*\)[[:space:]]*,.*/EXPORT_SYMBOL(\1);/'

ATOMIC_OPS macro in atomic_64.S expands multiple symbols in same line hence
version generation is done only for the last matched symbol. This patch adds
new line between the symbol expansions.

Signed-off-by: Nagarathnam Muthusamy <nagarathnam.muthusamy@oracle.com>
Reviewed-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/lib/atomic_64.S