]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: sysreg: Fix unprotected macro argmuent in write_sysreg
authorDave Martin <Dave.Martin@arm.com>
Tue, 25 Jul 2017 11:52:41 +0000 (12:52 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 26 Jul 2017 08:28:18 +0000 (09:28 +0100)
commit9c5e7b1f88bed78b1d13273fdb5d922e096fff78
tree005461318580d5c57c435e8347eb5407857bfed2
parent1f1596188236c620395860b13ad4efc869d75afb
arm64: sysreg: Fix unprotected macro argmuent in write_sysreg

write_sysreg() may misparse the value argument because it is used
without parentheses to protect it.

This patch adds the ( ) in order to avoid any surprises.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
[will: same change to write_sysreg_s]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/sysreg.h