summaryrefslogtreecommitdiffstats
path: root/tools/bootconfig
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-08-10 17:35:01 +0900
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-09-18 22:17:13 -0400
commit483ce6708dce7116ef2c83b36a1cfe28a36c4fc9 (patch)
tree9c35a3d3318e5c8ba117a29500ed88fdf899d72d /tools/bootconfig
parente4f70b7badb40598ceea31c122d7c2fb6203672a (diff)
downloadlinux-483ce6708dce7116ef2c83b36a1cfe28a36c4fc9.tar.gz
linux-483ce6708dce7116ef2c83b36a1cfe28a36c4fc9.tar.bz2
linux-483ce6708dce7116ef2c83b36a1cfe28a36c4fc9.zip
tools/bootconfig: Make all functions static
Make all functions static except for main(). This is just a cleanup. Link: https://lkml.kernel.org/r/159704850135.175360.12465608936326167517.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/bootconfig')
-rw-r--r--tools/bootconfig/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c
index 78025267df20..eb92027817a7 100644
--- a/tools/bootconfig/main.c
+++ b/tools/bootconfig/main.c
@@ -99,7 +99,7 @@ static void xbc_show_list(void)
}
/* Simple real checksum */
-int checksum(unsigned char *buf, int len)
+static int checksum(unsigned char *buf, int len)
{
int i, sum = 0;
@@ -111,7 +111,7 @@ int checksum(unsigned char *buf, int len)
#define PAGE_SIZE 4096
-int load_xbc_fd(int fd, char **buf, int size)
+static int load_xbc_fd(int fd, char **buf, int size)
{
int ret;
@@ -128,7 +128,7 @@ int load_xbc_fd(int fd, char **buf, int size)
}
/* Return the read size or -errno */
-int load_xbc_file(const char *path, char **buf)
+static int load_xbc_file(const char *path, char **buf)
{
struct stat stat;
int fd, ret;
@@ -147,7 +147,7 @@ int load_xbc_file(const char *path, char **buf)
return ret;
}
-int load_xbc_from_initrd(int fd, char **buf)
+static int load_xbc_from_initrd(int fd, char **buf)
{
struct stat stat;
int ret;
@@ -254,7 +254,7 @@ static int init_xbc_with_error(char *buf, int len)
return ret;
}
-int show_xbc(const char *path, bool list)
+static int show_xbc(const char *path, bool list)
{
int ret, fd;
char *buf = NULL;
@@ -299,7 +299,7 @@ out:
return ret;
}
-int delete_xbc(const char *path)
+static int delete_xbc(const char *path)
{
struct stat stat;
int ret = 0, fd, size;
@@ -330,7 +330,7 @@ int delete_xbc(const char *path)
return ret;
}
-int apply_xbc(const char *path, const char *xbc_path)
+static int apply_xbc(const char *path, const char *xbc_path)
{
u32 size, csum;
char *buf, *data;
@@ -407,7 +407,7 @@ out:
return ret;
}
-int usage(void)
+static int usage(void)
{
printf("Usage: bootconfig [OPTIONS] <INITRD>\n"
"Or bootconfig <CONFIG>\n"