Skip to contentSkip to conversation

d_path: Eliminate compilation warnings

PATCH New Tianjia Zhang 1 participant 1 message Nov 16, 2021 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d_path: Eliminate compilation warnings

Eliminate the following clang compilation warnings by including necessary header files:

fs/d_path.c:318:7: warning: no previous prototype for function 'simple_dname' [-Wmissing-prototypes] char *simple_dname(struct dentry *dentry, char *buffer, int buflen)

        ^

fs/d_path.c:318:1: note: declare 'static' if the function is not intended to be used outside of this translation unit char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
^
static

---
 fs/d_path.c | 2 ++
 1 file changed, 2 insertions(+)
fs/d_path.c +2 -0
index e4e0ebad1f15..264f2b2aedd0 100644
@@ -8,6 +8,8 @@
 #include <linux/prefetch.h>
 #include "mount.h"
 
+#include "internal.h"
+
 struct prepend_buffer {
 	char *buf;
 	int len;
Signature · 1 line
2.32.0