Revert "powerpc/code-patching: Improve verification of patchability"
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Nov 2021 06:41:52 +0000 (17:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Nov 2021 06:41:52 +0000 (17:41 +1100)
commitaf3fdce4ab0781ea183107c90de9cbf21d701c54
tree1807637ca2308d4edf08ea0a5750ab8f914b4303
parent3d030e301856da366380b3865fce6c03037b08a6
Revert "powerpc/code-patching: Improve verification of patchability"

This reverts commit 8b8a8f0ab3f5519e45c526f826a655817486c5bb.

As reported[1] by Sachin this causes problems with ftrace, and it also
causes the code patching selftests to fail as reported[2] by Stephen.

So revert it for now.

1: https://lore.kernel.org/linuxppc-dev/3668743C-09DF-4673-B15C-2FFE2A57F7D7@linux.vnet.ibm.com/
2: https://lore.kernel.org/linuxppc-dev/20211126161747.1f7795b0@canb.auug.org.au/

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/setup.h
arch/powerpc/lib/code-patching.c
arch/powerpc/mm/mem.c