[PATCH] arm64/kprobes: Tidy up sign-extension usage

Catalin Marinas catalin.marinas at arm.com
Sun Oct 30 07:24:46 PDT 2016


On Tue, Oct 18, 2016 at 01:46:27PM +0100, Robin Murphy wrote:
> Kprobes does not need its own homebrewed (and frankly inscrutable) sign
> extension macro; just use the standard kernel functions instead. Since
> the compiler actually recognises the sign-extension idiom of the latter,
> we also get the small bonus of some nicer codegen, as each displacement
> calculation helper then compiles to a single optimal SBFX instruction.
> 
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>

Queued for 4.10. Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list