disas/microblaze: Fix warnings caused by missing 'static' attribute
commit52b831de0099e627ee3505cb1c0c3d8eeefd3d65
authorStefan Weil <sw@weilnetz.de>
Sun, 1 Mar 2015 13:18:35 +0000 (1 14:18 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Mar 2015 05:15:34 +0000 (10 08:15 +0300)
tree24aa55925dcb236d2fa0d09f30add1a92e687d91
parent35ff0798130b654a866dc4c944e8bf45575ad990
disas/microblaze: Fix warnings caused by missing 'static' attribute

Warnings from the Sparse static analysis tool:

disas/microblaze.c:289:3: warning:
 symbol 'opcodes' was not declared. Should it be static?
disas/microblaze.c:570:6: warning:
 symbol 'register_prefix' was not declared. Should it be static?
disas/microblaze.c:571:6: warning:
 symbol 'special_register_prefix' was not declared. Should it be static?
disas/microblaze.c:572:6: warning:
 symbol 'fsl_register_prefix' was not declared. Should it be static?
disas/microblaze.c:573:6: warning:
 symbol 'pvr_register_prefix' was not declared. Should it be static?

Remove the unused variable special_register_prefix.
The variable pvr_register_prefix was unused, too, but can be used.
Add also 'const' where possible.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
disas/microblaze.c