Skip to contentSkip to conversation

coda_psdev.h: extern's make no sense in userspace

PATCH In review Jaswinder Singh Rajput 2 participants 2 messages Jan 13, 2009 Coda file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coda_psdev.h: extern's make no sense in userspace

Impact: fix make headers_check warning:

usr/include/linux/coda_psdev.h:90: extern's make no sense in userspace

---
 include/linux/coda_psdev.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/coda_psdev.h +2 -0
index 07ae8f8..c620958 100644
@@ -87,6 +87,8 @@ struct upc_req {
  * Statistics
  */
 
+#ifdef __KERNEL__
 extern struct venus_comm coda_comms[];
+#endif /* __KERNEL__ */
 
 #endif
Signature · 1 line
1.5.6.6
#1 lore raw
Quoted 14 lines · Jaswinder Singh Rajput

Impact: fix make headers_check warning:

usr/include/linux/coda_psdev.h:90: extern's make no sense in userspace

---
 include/linux/coda_psdev.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/coda_psdev.h +0 -0
index 07ae8f8..c620958 100644

include/linux/coda_psdev.h struct upc_req { · line 92

Quoted 6 lines
include/linux/coda_psdev.h +2 -0
@@ -87,6 +87,8 @@ struct upc_req {
  * Statistics
  */
 
+#ifdef __KERNEL__
 extern struct venus_comm coda_comms[];
+#endif /* __KERNEL__ */

As this only gets used in code/inode.c, coda/psdev.c it would be nice if a code-internal header could be found that could hold this.

This is only here due to the one use outside of psdev.c in inode.c

Harvey