ras-page-isolation: drop some uneeded prototype
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 15:31:32 +0000 (16:31 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 15:31:32 +0000 (16:31 +0100)
There is a prototype not used and two other prototypes that
are used only internally inside the function.

Make such functions static and drop the unused one.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-page-isolation.c
ras-page-isolation.h

index fcd6581cd3ed6284dec4ac00fc8cb1d0e3c26a20..0c08e0dc82d158f33c406b27c36163a049fb4db1 100644 (file)
@@ -489,7 +489,8 @@ static void row_record_get_id(struct row_record *rr,
        buffer[pos] = '\0';
 }
 
-bool row_record_is_same_row(struct row_record *rr1, struct row_record *rr2)
+static bool row_record_is_same_row(struct row_record *rr1,
+                                  struct row_record *rr2)
 {
        if (!rr1 || !rr2 || rr1->type != rr2->type)
                return false;
@@ -508,7 +509,7 @@ bool row_record_is_same_row(struct row_record *rr1, struct row_record *rr2)
        return true;
 }
 
-void row_record_copy(struct row_record *dst, struct row_record *src)
+static void row_record_copy(struct row_record *dst, struct row_record *src)
 {
        if (!dst || !src)
                return;
index 6ff0ff460ee98b40e2d6780601c48039cfc3f8de..bc224b035dd56d3db5585b289101a3adf5e5167f 100644 (file)
@@ -118,10 +118,6 @@ void ras_record_page_error(unsigned long long addr,
                           unsigned int count, time_t time);
 void ras_row_account_init(void);
 void ras_record_row_error(const char *detail, unsigned count, time_t time, unsigned long long addr);
-
-bool row_record_is_same_row(struct row_record *rr1, struct row_record *rr2);
-void row_record_copy(struct row_record *dst, struct row_record *src);
-void row_record_free(struct row_record *rr);
 void row_record_infos_free(void);
 
 #endif