Max Filippov a3d0245c58 xtensa: fix xtensa_wsr always writing 0
The commit cad6fade6e78 ("xtensa: clean up WSR*/RSR*/get_sr/set_sr")
replaced 'WSR' macro in the function xtensa_wsr with 'xtensa_set_sr',
but variable 'v' in the xtensa_set_sr body shadowed the argument 'v'
passed to it, resulting in wrong value written to debug registers.

Fix that by removing intermediate variable from the xtensa_set_sr
macro body.

Cc: stable@vger.kernel.org
Fixes: cad6fade6e78 ("xtensa: clean up WSR*/RSR*/get_sr/set_sr")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2022-03-20 09:53:01 -07:00
..
2019-11-26 11:33:38 -08:00
2021-11-17 10:36:15 -05:00
2014-01-15 00:28:11 +04:00
2018-12-17 13:48:22 -08:00
2021-12-11 23:31:51 +01:00
2018-02-11 09:18:12 -08:00
2014-01-15 00:27:03 +04:00
2021-07-01 11:06:03 -07:00
2020-01-31 12:17:25 -08:00
2019-09-01 13:11:57 -07:00
2018-01-02 03:25:41 -08:00
2019-04-03 10:32:54 +02:00
2020-02-04 21:57:02 -08:00