OSDN Git Service

perf daemon: Remove duplicate sys/file.h include
authorGuo Zhengkui <guozhengkui@vivo.com>
Wed, 6 Oct 2021 06:22:34 +0000 (14:22 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 8 Oct 2021 18:14:50 +0000 (15:14 -0300)
There is a "#include <sys/file.h>" in line 10, so remove a duplicate
one in line 1124.

Signed-off-by: Guo 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: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-daemon.c

index c13201f..6cb3f6c 100644 (file)
@@ -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)