mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
Move cmd_version() to its own file so that help.c can be moved to a library. Signed-off-by: Josh Poimboeuf <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/e908b1b68f20ab6d8d33941d5571c23110622e60.1449548395.git.jpoimboe@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
11 lines
241 B
C
11 lines
241 B
C
#include "util/util.h"
|
|
#include "builtin.h"
|
|
#include "perf.h"
|
|
|
|
int cmd_version(int argc __maybe_unused, const char **argv __maybe_unused,
|
|
const char *prefix __maybe_unused)
|
|
{
|
|
printf("perf version %s\n", perf_version_string);
|
|
return 0;
|
|
}
|