From ddf04d0747056f3c707320830b63d11fdf8764e3 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Wed, 8 Nov 2023 20:26:57 +0100 Subject: [PATCH] cleanup: move a macro in a shared file Signed-off-by: Andrea Terzolo --- driver/capture_macro.h | 4 ++++ driver/ppm.h | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/driver/capture_macro.h b/driver/capture_macro.h index e796a2e1af..eb9d97cc69 100644 --- a/driver/capture_macro.h +++ b/driver/capture_macro.h @@ -33,3 +33,7 @@ or GPL2.txt for full copies of the license. /* Convert seconds to nanoseconds */ #define SECOND_TO_NS 1000000000ULL + +#ifdef PAGE_SIZE + #define STR_STORAGE_SIZE PAGE_SIZE +#endif diff --git a/driver/ppm.h b/driver/ppm.h index 23e340e8c9..342564793b 100644 --- a/driver/ppm.h +++ b/driver/ppm.h @@ -52,8 +52,6 @@ struct ppm_ring_buffer_context { char *str_storage; /* String storage. Size is one page. */ }; -#define STR_STORAGE_SIZE PAGE_SIZE - /* * Global functions *