memblock tests: change build options to run-time options
Change verbose and movable node build options to run-time options.
Movable node usage:
$ ./main -m
Or:
$ ./main --movable-node
Verbose usage:
$ ./main -v
Or:
$ ./main --verbose
Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/20220714031717.12258-1-remckee0@gmail.com
This commit is contained in:
committed by
Mike Rapoport
parent
fe833b4edc
commit
06c8580aa2
@@ -7,13 +7,11 @@
|
||||
#include <linux/cache.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
extern bool movable_node_enabled;
|
||||
|
||||
static inline bool movable_node_is_enabled(void)
|
||||
{
|
||||
#ifdef MOVABLE_NODE
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
return movable_node_enabled;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user