forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arm64/include/asm/processor.h
....@@ -243,13 +243,13 @@
243243 }
244244 #endif
245245
246
-static inline bool is_ttbr0_addr(unsigned long addr)
246
+static __always_inline bool is_ttbr0_addr(unsigned long addr)
247247 {
248248 /* entry assembly clears tags for TTBR0 addrs */
249249 return addr < TASK_SIZE;
250250 }
251251
252
-static inline bool is_ttbr1_addr(unsigned long addr)
252
+static __always_inline bool is_ttbr1_addr(unsigned long addr)
253253 {
254254 /* TTBR1 addresses may have a tag if KASAN_SW_TAGS is in use */
255255 return arch_kasan_reset_tag(addr) >= PAGE_OFFSET;