Commit c6c00900 authored by Guo Zhengkui's avatar Guo Zhengkui Committed by Arnaldo Carvalho de Melo
Browse files

perf daemon: Remove duplicate sys/file.h include



There is a "#include <sys/file.h>" in line 10, so remove a duplicate
one in line 1124.

Signed-off-by: default avatarGuo Zhengkui <guozhengkui@vivo.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20211006062235.6364-1-guozhengkui@vivo.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent c2d4fab0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1121,8 +1121,6 @@ static int setup_config(struct daemon *daemon)
#ifndef F_TLOCK
#define F_TLOCK 2

#include <sys/file.h>

static int lockf(int fd, int cmd, off_t len)
{
	if (cmd != F_TLOCK || len != 0)