@@ -241,7 +241,7 @@ static bool encl_build(struct sgx_secs *secs, void *bin,
return false;
}
-bool get_file_size(const char *path, off_t *bin_size)
+static bool get_file_size(const char *path, off_t *bin_size)
{
struct stat sb;
int ret;
@@ -261,7 +261,7 @@ bool get_file_size(const char *path, off_t *bin_size)
return true;
}
-bool encl_data_map(const char *path, void **bin, off_t *bin_size)
+static bool encl_data_map(const char *path, void **bin, off_t *bin_size)
{
int fd;
@@ -288,7 +288,7 @@ bool encl_data_map(const char *path, void **bin, off_t *bin_size)
return false;
}
-bool load_sigstruct(const char *path, void *sigstruct)
+static bool load_sigstruct(const char *path, void *sigstruct)
{
int fd;
Tag a handful of local helper functions as static. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> --- tools/testing/selftests/x86/sgx/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)