aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Zhengkui <[email protected]>2021-10-06 14:22:34 +0800
committerArnaldo Carvalho de Melo <[email protected]>2021-10-08 15:14:50 -0300
commitc6c00900c751c2fab9e34ee27f5e883fc1a20fc6 (patch)
tree2393a41608228718247e83b51135ea17420f2b3b
parentc2d4fab01f5e69adbe697c82f35cc31cf200bf93 (diff)
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: Guo Zhengkui <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/builtin-daemon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/builtin-daemon.c b/tools/perf/builtin-daemon.c
index c13201fb09c3..6cb3f6cc36d0 100644
--- a/tools/perf/builtin-daemon.c
+++ b/tools/perf/builtin-daemon.c
@@ -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)