Skip to contentSkip to conversation

trace: Resolve some missing-field-initializers warnings

PATCH New Jeff Kirsher 1 participant 1 message Sep 4, 2014 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace: Resolve some missing-field-initializers warnings

From: Mark Rustad <[email protected]>

Resolve some missing-field-initializers warnings by using a more elaborated form of designated initialization.

---
 kernel/trace/trace_export.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_export.c +1 -1
index d4ddde2..190bc09 100644
@@ -177,7 +177,7 @@ struct ftrace_event_call __used event_##call = {			\
 	{								\
 		.name			= #call,			\
 	},								\
-	.event.type		= etype,				\
+	.event = { .type	= etype, },				\
 	.print_fmt		= print,				\
 	.flags			= TRACE_EVENT_FL_IGNORE_ENABLE | TRACE_EVENT_FL_USE_CALL_FILTER, \
 };									\
Signature · 1 line
1.9.3