always initialize statically the .location field of struct marker to NULL
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 27 Oct 2009 22:33:15 +0000 (18:33 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 27 Oct 2009 22:35:28 +0000 (18:35 -0400)
Constructors later write the real location value.

libust/marker.h

index 4c6a703be5ac6cd3b9babe91b5a3427d10b1a883..da3d30c873c8b1bf58ab793d01714d25606c0553 100644 (file)
@@ -94,11 +94,10 @@ struct marker {
                                                sizeof(#name)],         \
                  0, 0, 0, 0, marker_probe_cb,                          \
                  { __mark_empty_function, NULL},                       \
-                 NULL, tp_name_str, tp_cb };                           \
+                 NULL, tp_name_str, tp_cb, NULL };                     \
                asm (".section __marker_addr,\"aw\",@progbits\n\t"      \
                       _ASM_PTR "%c[marker_struct], (1f)\n\t"           \
                       ".previous\n\t"                                  \
-                      "\n\t"                                           \
                       "1:\n\t"                                         \
                        :: [marker_struct] "i" (&__mark_##channel##_##name));\
                save_registers(&regs)
This page took 0.025536 seconds and 4 git commands to generate.