]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Make mmap_file static
authorSlaren <redacted>
Wed, 29 Mar 2023 04:18:18 +0000 (06:18 +0200)
committerJustine Tunney <redacted>
Thu, 30 Mar 2023 19:28:25 +0000 (12:28 -0700)
llama.cpp

index 1adeee5f0fb9c9b62f1252a30417fc7fec07d93b..096735c8fc94ff2c286c7e81ed2158bfa86a8058 100644 (file)
--- a/llama.cpp
+++ b/llama.cpp
@@ -296,7 +296,7 @@ struct llama_context_params llama_context_default_params() {
 // model loading
 //
 
-void * mmap_file(const char* fname) {
+static void * mmap_file(const char* fname) {
 #if defined(MAP_FAILED)
     // POSIX mmap
     int fd = open(fname, O_RDONLY);