From f5cd325dc66fd27c9d04e3a73e51f75c244d706f Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 18 Nov 2024 16:31:32 +0100 Subject: [PATCH] ras-page-isolation: drop some uneeded prototype 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 --- ras-page-isolation.c | 5 +++-- ras-page-isolation.h | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ras-page-isolation.c b/ras-page-isolation.c index fcd6581..0c08e0d 100644 --- a/ras-page-isolation.c +++ b/ras-page-isolation.c @@ -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; diff --git a/ras-page-isolation.h b/ras-page-isolation.h index 6ff0ff4..bc224b0 100644 --- a/ras-page-isolation.h +++ b/ras-page-isolation.h @@ -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 -- 2.50.1