[PATCH] perf daemon: remove duplicate include in builtin-daemon.c

DORMANTno replies

From: <hidden>
Date: 2021-10-19 10:25:20
Also in: lkml
Subsystem: performance events subsystem, the rest · Maintainers: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo, Namhyung Kim, Linus Torvalds

From: Ye Guojin <redacted>

'sys/file.h' included in 'builtin-daemon.c' is duplicated.
it's also included at line 10.

Reported-by: Zeal Robot <redacted>
Signed-off-by: Ye Guojin <redacted>
---
 tools/perf/builtin-daemon.c | 2 --
 1 file changed, 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)
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help