ARM: 9354/1: ptrace: Use bitfield helpers
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 26 Feb 2024 11:25:01 +0000 (12:25 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 11 Mar 2024 15:48:10 +0000 (15:48 +0000)
commitb36e78b216e632d90138751e4ff80044de303656
tree0875d5b964c205903d50862c3b66472362135eba
parentb9920fdd5a751df129808e7fa512e9928223ee05
ARM: 9354/1: ptrace: Use bitfield helpers

The isa_mode() macro extracts two fields, and recombines them into a
single value.

Make this more obvious by using the FIELD_GET() helper, and shifting the
result into its final resting place.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/ptrace.h