OSDN Git Service

powerpc/process: Constify the number of insns printed by show instructions functions.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Sat, 6 Oct 2018 16:51:16 +0000 (16:51 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
commitdf13102f82f1c8d0a1f43505275bf18246d7f9a0
tree4d0d79e97e481ef5d863b8927431fbcbfb375b87
parentfb2d9505c0dbd4f5e00db70f7ca0ca7a3d75ca63
powerpc/process: Constify the number of insns printed by show instructions functions.

instructions_to_print var is assigned value 16 and there is no
way to change it.

This patch replaces it by a constant.

Reviewed-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c