]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/linux/tracepoint.h
tracepoint: Mark __tracepoint_string's __used
[mirror_ubuntu-jammy-kernel.git] / include / linux / tracepoint.h
index a1fecf31162174036352198afee3260cdbab3670..3a5b717d92e8088216584678ca536947dbe15277 100644 (file)
@@ -361,7 +361,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
                static const char *___tp_str __tracepoint_string = str; \
                ___tp_str;                                              \
        })
-#define __tracepoint_string    __attribute__((section("__tracepoint_str")))
+#define __tracepoint_string    __attribute__((section("__tracepoint_str"), used))
 #else
 /*
  * tracepoint_string() is used to save the string address for userspace