diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-08-04 23:35:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-08-04 23:35:51 -0700 |
commit | e37ee2a529baacde26b25795b4c3dec1c641862e (patch) | |
tree | 3e51402701513903e11bac6846488a9c836379ac | |
parent | 8885647c85e6551a24f728eaad78f9b3fc2df948 (diff) | |
download | msr-tools-e37ee2a529baacde26b25795b4c3dec1c641862e.tar.gz |
Mark functions static.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | wrmsr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,7 +41,7 @@ static const char short_options[] = "hVap:"; static const char *proc_stat = "/proc/stat"; const char *program; -void usage(void) +static void usage(void) { fprintf(stderr, "Usage: %s [options] regno value...\n" " --help -h Print this help\n" @@ -51,7 +51,7 @@ void usage(void) program); } -void wrmsr_on_cpu(uint32_t reg, uint64_t data, int cpu) +static void wrmsr_on_cpu(uint32_t reg, uint64_t data, int cpu) { int fd; char msr_file_name[64]; @@ -87,7 +87,7 @@ void wrmsr_on_cpu(uint32_t reg, uint64_t data, int cpu) } -void wrmsr_on_all_cpus(uint32_t reg, uint64_t data) +static void wrmsr_on_all_cpus(uint32_t reg, uint64_t data) { FILE *fp; int retval; |