mm/lib: code cleanup

Since there're a lot functions in mm/lib, some of them only used inside
the lib, some of them only used by specific tests, while the others are
general-purpose functions. I made a cleanup for the lib, so that a mm
case developer can write cases easier. No new functions added in this
patch.

Tested-by: Caspar Zhang <caspar@casparzhang.com>
Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
2 files changed