]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Treat the bitops index argument as an 'int'
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 7 May 2013 17:02:58 +0000 (18:02 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 8 May 2013 09:33:17 +0000 (10:33 +0100)
commit1854988e9560b2d2a9587dfb1978c911a538c9a0
treee9cc98dbd2bf308b4d1b2ac58eb8659342ca7aca
parent1973f2a682a10ad22dc85a40ee3b5323c6f278fa
arm64: Treat the bitops index argument as an 'int'

The bitops prototype use an 'int' as the bit index type but the asm
implementation assume it to be a 'long'. Since the compiler does not
guarantee zeroing the upper 32-bits in a register when used as 'int',
change the bitops implementation accordingly.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/lib/bitops.S