feat(core): put error handling module to trezor_types.
What changed, and why it matters
This commit simply moves an internal header file inclusion from one place to another. It is a routine code organization change with no visible security effect.
No action required; treat as a normal refactor.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit removes #include 'rtl/error_handling.h' from trezor_rtl.h and adds it to trezor_types.h. Because trezor_types.h is likely included by trezor_rtl.h or by the same consumers, this is a refactor that centralizes the error-handling module dependency under the types header. No functional code was changed.
Changed components
core/embed/rtl/inc/trezor_rtl.hcore/embed/rtl/inc/trezor_types.hInspect captured patch +1 / −1
diff --git a/core/embed/rtl/inc/trezor_rtl.h b/core/embed/rtl/inc/trezor_rtl.h
index fde50c289..8aee8cd8d 100644
--- a/core/embed/rtl/inc/trezor_rtl.h
+++ b/core/embed/rtl/inc/trezor_rtl.h
@@ -33,7 +33,6 @@
#include <string.h>
#include "rtl/compiler_traits.h"
-#include "rtl/error_handling.h"
#ifndef MIN_8bits
#define MIN_8bits(a, b) \
diff --git a/core/embed/rtl/inc/trezor_types.h b/core/embed/rtl/inc/trezor_types.h
index e4b1147e2..6ba42ec5b 100644
--- a/core/embed/rtl/inc/trezor_types.h
+++ b/core/embed/rtl/inc/trezor_types.h
@@ -31,4 +31,5 @@
#include <stdint.h>
#include <sys/types.h>
+#include "rtl/error_handling.h"
#include "rtl/secbool.h"
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.