From 5eef1407588c81e04a5d7e7c27de0782723176ba Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Wed, 22 Jul 2026 23:06:17 +0800 Subject: [PATCH] [dm][misc] make RT_BITS_PER_LONG custom mode Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/include/drivers/misc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/drivers/include/drivers/misc.h b/components/drivers/include/drivers/misc.h index 2b4b0a54435..8e3c8f22c28 100644 --- a/components/drivers/include/drivers/misc.h +++ b/components/drivers/include/drivers/misc.h @@ -14,11 +14,13 @@ #include #include +#ifndef RT_BITS_PER_LONG #ifdef ARCH_CPU_64BIT #define RT_BITS_PER_LONG 64 #else #define RT_BITS_PER_LONG 32 #endif +#endif #define RT_BITS_PER_LONG_LONG 64 #define RT_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))