Skip to contentSkip to conversation

fs/d_path.c: Supply missing internal.h include file

PATCH New Pujin Shi 1 participant 1 message Sep 25, 2020 VFS

lore
Share & tools
lore

Pujin Shi

author
#0 lore raw

PATCH 1/1 fs/d_path.c: Supply missing internal.h include file

If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes.

Fixes the following W=1 kernel build warning(s):

fs/d_path.c:311:7: warning: no previous prototype for ‘simple_dname’ [-Wmissing-prototypes]

---
 fs/d_path.c | 1 +
 1 file changed, 1 insertion(+)
fs/d_path.c +1 -0
index 0f1fc1743302..745dc1f77787 100644
@@ -7,6 +7,7 @@
 #include <linux/slab.h>
 #include <linux/prefetch.h>
 #include "mount.h"
+#include "internal.h"
 
 static int prepend(char **buffer, int *buflen, const char *str, int namelen)
 {
Signature · 1 line
2.18.1