]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scripts: recordmcount: break hardlinks
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 11 Dec 2015 12:09:03 +0000 (12:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:06:50 +0000 (15:06 -0800)
commitb11202ea8547258205ef1ea15c61c7dd50d65989
treea31d305812db2a7eed2b5e5e075a2281b1b7da85
parentc1a968eced547b68eb6a584b4808fb5990c7eaa7
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/recordmcount.c