Skip to contentSkip to conversation

namei.h: Include errno.h

PATCH In review Guenter Roeck 2 participants 2 messages Jan 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 namei.h: Include errno.h

Commit b9d6ba94 (vfs: add a retry_estale helper function to handle retries on ESTALE) intruduced the use of ESTALE in namei.h. Since namei.h does not include errno.h, this results in the following build error for callers/users which do not include errno.h directly.

include/linux/namei.h:114:19: error: 'ESTALE' undeclared (first use in this function)

Add the missing include.

---
 include/linux/namei.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/namei.h +1 -0
index e998c03..92313e4 100644
@@ -4,6 +4,7 @@
 #include <linux/dcache.h>
 #include <linux/linkage.h>
 #include <linux/path.h>
+#include <linux/errno.h>
 
 struct vfsmount;
 
Signature · 1 line
1.7.9.7
#1 lore raw
Quoted 9 lines · Guenter Roeck

Commit b9d6ba94 (vfs: add a retry_estale helper function to handle retries on ESTALE) intruduced the use of ESTALE in namei.h. Since namei.h does not include errno.h, this results in the following build error for callers/users which do not include errno.h directly.

include/linux/namei.h:114:19: error: 'ESTALE' undeclared (first use in this function)

Add the missing include.

That's the third patch doing the same thing; see vfs.git#for-linus for the earliest one. Still not pulled...