<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 4:49 PM, Kamalesh Babulal <span dir="ltr"><<a href="mailto:kamalesh@linux.vnet.ibm.com" target="_blank">kamalesh@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Module make on ppc64le, fails with:<br>
<br>
make -C /root/kernel/linux M=/root/.kpatch/tmp/patch kpatch-data-read-mostly.ko<br>
make[1]: Entering directory '/root/kernel/linux'<br>
CC [M] /root/.kpatch/tmp/patch/patch-<wbr>hook.o<br>
Arch ppc64le is not supported with CONFIG_FTRACE_MCOUNT_RECORD at ./scripts/<a href="http://recordmcount.pl" rel="noreferrer" target="_blank">recordmcount.pl</a> line 379.<br>
<br>
Fix it by adding 'ppc64le' to list of supported architectures<br>
in <a href="http://recordmcount.pl" rel="noreferrer" target="_blank">recordmcount.pl</a> script.<br>
<br>
Signed-off-by: Kamalesh Babulal <<a href="mailto:kamalesh@linux.vnet.ibm.com">kamalesh@linux.vnet.ibm.com</a>><br>
Cc: Michael Ellerman <<a href="mailto:mpe@ellerman.id.au">mpe@ellerman.id.au</a>><br>
Cc: Balbir Singh <<a href="mailto:bsingharora@gmail.com">bsingharora@gmail.com</a>><br>
---<br>
scripts/<a href="http://recordmcount.pl" rel="noreferrer" target="_blank">recordmcount.pl</a> | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/scripts/<a href="http://recordmcount.pl" rel="noreferrer" target="_blank">recordmcount.pl</a> b/scripts/<a href="http://recordmcount.pl" rel="noreferrer" target="_blank">recordmcount.pl</a><br>
index 1633c3e..683b8b5 100755<br>
--- a/scripts/<a href="http://recordmcount.pl" rel="noreferrer" target="_blank">recordmcount.pl</a><br>
+++ b/scripts/<a href="http://recordmcount.pl" rel="noreferrer" target="_blank">recordmcount.pl</a><br>
@@ -264,7 +264,7 @@ if ($arch eq "x86_64") {<br>
$ld .= " -m shlelf_linux";<br>
$objcopy .= " -O elf32-sh-linux";<br>
<br>
-} elsif ($arch eq "powerpc") {<br>
+} elsif ($arch eq "powerpc" || $arch eq "ppc64le") {<br></blockquote><div><br></div><div>I don't get this, the arch should always be powerpc. Where did you get the ppc64le</div><div>from? Am I missing anything?</div><div> <br></div><div>Balbir Singh.</div></div><br></div></div>