lkml.org 
[lkml]   [2020]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fs/d_path.c: Supply missing internal.h include file
Date
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]

Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
---
fs/d_path.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/d_path.c b/fs/d_path.c
index 0f1fc1743302..745dc1f77787 100644
--- a/fs/d_path.c
+++ b/fs/d_path.c
@@ -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)
{
--
2.18.1
\
 
 \ /
  Last update: 2020-09-25 05:18    [W:0.028 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site