Skip to contentSkip to conversation

d_path:fix missing include file in d_path.c

PATCH New Zhiguang Ni 1 participant 1 message Apr 1, 2022 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d_path:fix missing include file in d_path.c

Include internal.h to fix below error:
fs/d_path.c:318:7: error: no previous prototype for ‘simple_dname’ [-Werror=missing-prototypes]
318 | char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
In fact, this function is declared in fs/internal.h.

---
 fs/d_path.c | 1 +
 1 file changed, 1 insertion(+)
fs/d_path.c +1 -0
index e4e0ebad1f15..f9123b84f1ba 100644
@@ -7,6 +7,7 @@
 #include <linux/slab.h>
 #include <linux/prefetch.h>
 #include "mount.h"
+#include "internal.h"
 
 struct prepend_buffer {
 	char *buf;
Signature · 1 line
2.25.1