diff --git a/include/logging/log_instance.h b/include/logging/log_instance.h
index 25eb47f3f2c61d39dac5788f682bc8af4949cd47..11b614abcfe72a185303f3608b1c2ea5b69c8c19 100644
--- a/include/logging/log_instance.h
+++ b/include/logging/log_instance.h
@@ -35,6 +35,9 @@ struct log_source_dynamic_data {
 	 */
 	uint32_t dummy[2];
 #endif
+#if defined(CONFIG_RISCV) && defined(CONFIG_64BIT)
+	uint32_t dummy;
+#endif
 };
 
 /** @brief Creates name of variable and section for constant log data.