We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e269b5d commit 60da744Copy full SHA for 60da744
include/linux/alloc_tag.h
@@ -63,7 +63,12 @@ static inline void set_codetag_empty(union codetag_ref *ref)
63
#else /* CONFIG_MEM_ALLOC_PROFILING_DEBUG */
64
65
static inline bool is_codetag_empty(union codetag_ref *ref) { return false; }
66
-static inline void set_codetag_empty(union codetag_ref *ref) {}
+
67
+static inline void set_codetag_empty(union codetag_ref *ref)
68
+{
69
+ if (ref)
70
+ ref->ct = NULL;
71
+}
72
73
#endif /* CONFIG_MEM_ALLOC_PROFILING_DEBUG */
74
0 commit comments