scripts: recordmcount: break hardlinks
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 11 Dec 2015 12:09:03 +0000 (12:09 +0000)
committerZefan Li <lizefan@huawei.com>
Wed, 26 Oct 2016 15:15:38 +0000 (23:15 +0800)
commit38b8ae4f5e4e766b206950a978f9a9051d55318a
tree977f240207f0a005d50990346cd573e6cd2800d4
parent1b17302a80d89c84ea3bdf7205ae363b7c12e3b7
scripts: recordmcount: break hardlinks

commit dd39a26538e37f6c6131e829a4a510787e43c783 upstream.

recordmcount edits the file in-place, which can cause problems when
using ccache in hardlink mode.  Arrange for recordmcount to break a
hardlinked object.

Link: http://lkml.kernel.org/r/E1a7MVT-0000et-62@rmk-PC.arm.linux.org.uk
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
scripts/recordmcount.c