arm64: insn: Add BUILD_BUG_ON() for invalid masks
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Fri, 24 May 2019 12:52:20 +0000 (13:52 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 24 May 2019 13:58:30 +0000 (14:58 +0100)
commitedbcf50eb8aea5f81ae6d83bb969cb0bc02805a1
treeb9bec48a44af4df52cb718ae5ae2e7c6ef0f6f02
parentc5e2edeb01ae9ffbdde95bdcdb6d3614ba1eb195
arm64: insn: Add BUILD_BUG_ON() for invalid masks

Detect invalid instruction masks at build time. Some versions of GCC can
warn about the situation, but not all of them, it seems.

Suggested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/insn.h