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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 04:59:06 +0000 (06:59 +0200)
commit7bf934b871b94ccd576d82e9bb0396e45c6e421f
treee2d474f808b1656a5f668e6e3096d8614376a2b8
parentca2c0e7ee242ecf6b970a441ed5e8ab33b0d9d9a
sed regex in Makefile.build requires line break between exported symbols

[ Upstream commit d16c0649feb4fe4e814f44803df5a617769c3233 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/lib/atomic_64.S