Breno Leitao 897bc3df8c powerpc/tm: Limit TM code inside PPC_TRANSACTIONAL_MEM
Commit e1c3743e1a20 ("powerpc/tm: Set MSR[TS] just prior to recheckpoint")
moved a code block around and this block uses a 'msr' variable outside of
the CONFIG_PPC_TRANSACTIONAL_MEM, however the 'msr' variable is declared
inside a CONFIG_PPC_TRANSACTIONAL_MEM block, causing a possible error when
CONFIG_PPC_TRANSACTION_MEM is not defined.

	error: 'msr' undeclared (first use in this function)

This is not causing a compilation error in the mainline kernel, because
'msr' is being used as an argument of MSR_TM_ACTIVE(), which is defined as
the following when CONFIG_PPC_TRANSACTIONAL_MEM is *not* set:

	#define MSR_TM_ACTIVE(x) 0

This patch just fixes this issue avoiding the 'msr' variable usage outside
the CONFIG_PPC_TRANSACTIONAL_MEM block, avoiding trusting in the
MSR_TM_ACTIVE() definition.

Cc: stable@vger.kernel.org
Reported-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Fixes: e1c3743e1a20 ("powerpc/tm: Set MSR[TS] just prior to recheckpoint")
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-01-11 23:45:00 +11:00
..
2018-12-27 10:43:24 -08:00
2018-10-26 14:36:21 -07:00
2018-07-30 22:47:53 +10:00
2018-12-28 14:12:21 -08:00
2018-12-20 22:21:20 +11:00
2019-01-01 15:55:29 -08:00
2018-12-27 10:43:24 -08:00
2018-08-13 15:59:06 +10:00
2019-01-01 15:55:29 -08:00
2017-12-11 13:03:35 +11:00
2018-08-17 11:32:50 -07:00
2018-06-07 10:23:33 -07:00
2018-10-09 16:51:05 +11:00
2015-04-07 17:15:13 +10:00
2018-05-25 12:04:46 +10:00