Merge tag 'mvebu-dt-5.1-2' of git://git.infradead.org/linux-mvebu into arm/dt
[linux-2.6-microblaze.git] / tools / perf / builtin-lock.c
index fe69cd6..6e0189d 100644 (file)
@@ -865,13 +865,15 @@ static int __cmd_report(bool display_info)
                .namespaces      = perf_event__process_namespaces,
                .ordered_events  = true,
        };
-       struct perf_data_file file = {
-               .path = input_name,
-               .mode = PERF_DATA_MODE_READ,
-               .force = force,
+       struct perf_data data = {
+               .file      = {
+                       .path = input_name,
+               },
+               .mode      = PERF_DATA_MODE_READ,
+               .force     = force,
        };
 
-       session = perf_session__new(&file, false, &eops);
+       session = perf_session__new(&data, false, &eops);
        if (!session) {
                pr_err("Initializing perf session failed\n");
                return -1;