Guenter Roeck <linux@xxxxxxxxxxxx> 于2019年8月19日周一 下午3:36写道: > > util/header.c: In function ‘perf_session__read_header’: > util/header.c:2860:10: error: ‘data’ undeclared > > Culprit is "perf header: Fix divide by zero error if f_header.attr_size==0". > > Fix might be to replace "data->file.path" with "file->path" in the affected > branches. > > Guenter I had same error on 4.14.140-rc1, and yes, replace data->file.path with file->path works. Thanks & Regards Jack Wang