diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/coda_psdev.h | 15 | ||||
-rw-r--r-- | include/linux/in6.h | 2 | ||||
-rw-r--r-- | include/linux/nubus.h | 2 | ||||
-rw-r--r-- | include/linux/reiserfs_fs.h | 8 | ||||
-rw-r--r-- | include/linux/socket.h | 6 |
5 files changed, 22 insertions, 11 deletions
diff --git a/include/linux/coda_psdev.h b/include/linux/coda_psdev.h index 07ae8f846055..6f06352cf55e 100644 --- a/include/linux/coda_psdev.h +++ b/include/linux/coda_psdev.h | |||
@@ -24,7 +24,7 @@ static inline struct venus_comm *coda_vcp(struct super_block *sb) | |||
24 | return (struct venus_comm *)((sb)->s_fs_info); | 24 | return (struct venus_comm *)((sb)->s_fs_info); |
25 | } | 25 | } |
26 | 26 | ||
27 | 27 | #ifdef __KERNEL__ | |
28 | /* upcalls */ | 28 | /* upcalls */ |
29 | int venus_rootfid(struct super_block *sb, struct CodaFid *fidp); | 29 | int venus_rootfid(struct super_block *sb, struct CodaFid *fidp); |
30 | int venus_getattr(struct super_block *sb, struct CodaFid *fid, | 30 | int venus_getattr(struct super_block *sb, struct CodaFid *fid, |
@@ -64,6 +64,12 @@ int coda_downcall(int opcode, union outputArgs *out, struct super_block *sb); | |||
64 | int venus_fsync(struct super_block *sb, struct CodaFid *fid); | 64 | int venus_fsync(struct super_block *sb, struct CodaFid *fid); |
65 | int venus_statfs(struct dentry *dentry, struct kstatfs *sfs); | 65 | int venus_statfs(struct dentry *dentry, struct kstatfs *sfs); |
66 | 66 | ||
67 | /* | ||
68 | * Statistics | ||
69 | */ | ||
70 | |||
71 | extern struct venus_comm coda_comms[]; | ||
72 | #endif /* __KERNEL__ */ | ||
67 | 73 | ||
68 | /* messages between coda filesystem in kernel and Venus */ | 74 | /* messages between coda filesystem in kernel and Venus */ |
69 | struct upc_req { | 75 | struct upc_req { |
@@ -82,11 +88,4 @@ struct upc_req { | |||
82 | #define REQ_WRITE 0x4 | 88 | #define REQ_WRITE 0x4 |
83 | #define REQ_ABORT 0x8 | 89 | #define REQ_ABORT 0x8 |
84 | 90 | ||
85 | |||
86 | /* | ||
87 | * Statistics | ||
88 | */ | ||
89 | |||
90 | extern struct venus_comm coda_comms[]; | ||
91 | |||
92 | #endif | 91 | #endif |
diff --git a/include/linux/in6.h b/include/linux/in6.h index bc492048c349..718bf21c5754 100644 --- a/include/linux/in6.h +++ b/include/linux/in6.h | |||
@@ -44,11 +44,11 @@ struct in6_addr | |||
44 | * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined | 44 | * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined |
45 | * in network byte order, not in host byte order as are the IPv4 equivalents | 45 | * in network byte order, not in host byte order as are the IPv4 equivalents |
46 | */ | 46 | */ |
47 | #ifdef __KERNEL__ | ||
47 | extern const struct in6_addr in6addr_any; | 48 | extern const struct in6_addr in6addr_any; |
48 | #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } | 49 | #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } |
49 | extern const struct in6_addr in6addr_loopback; | 50 | extern const struct in6_addr in6addr_loopback; |
50 | #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } | 51 | #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } |
51 | #ifdef __KERNEL__ | ||
52 | extern const struct in6_addr in6addr_linklocal_allnodes; | 52 | extern const struct in6_addr in6addr_linklocal_allnodes; |
53 | #define IN6ADDR_LINKLOCAL_ALLNODES_INIT \ | 53 | #define IN6ADDR_LINKLOCAL_ALLNODES_INIT \ |
54 | { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } | 54 | { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } |
diff --git a/include/linux/nubus.h b/include/linux/nubus.h index 7382af374731..9be57d992695 100644 --- a/include/linux/nubus.h +++ b/include/linux/nubus.h | |||
@@ -296,6 +296,7 @@ struct nubus_dev { | |||
296 | struct nubus_board* board; | 296 | struct nubus_board* board; |
297 | }; | 297 | }; |
298 | 298 | ||
299 | #ifdef __KERNEL__ | ||
299 | /* This is all NuBus devices (used to find devices later on) */ | 300 | /* This is all NuBus devices (used to find devices later on) */ |
300 | extern struct nubus_dev* nubus_devices; | 301 | extern struct nubus_dev* nubus_devices; |
301 | /* This is all NuBus cards */ | 302 | /* This is all NuBus cards */ |
@@ -351,6 +352,7 @@ void nubus_get_rsrc_mem(void* dest, | |||
351 | void nubus_get_rsrc_str(void* dest, | 352 | void nubus_get_rsrc_str(void* dest, |
352 | const struct nubus_dirent *dirent, | 353 | const struct nubus_dirent *dirent, |
353 | int maxlen); | 354 | int maxlen); |
355 | #endif /* __KERNEL__ */ | ||
354 | 356 | ||
355 | /* We'd like to get rid of this eventually. Only daynaport.c uses it now. */ | 357 | /* We'd like to get rid of this eventually. Only daynaport.c uses it now. */ |
356 | static inline void *nubus_slot_addr(int slot) | 358 | static inline void *nubus_slot_addr(int slot) |
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index bc5114d35e99..a4db55fd1f65 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h | |||
@@ -698,7 +698,9 @@ static inline void cpu_key_k_offset_dec(struct cpu_key *key) | |||
698 | /* object identifier for root dir */ | 698 | /* object identifier for root dir */ |
699 | #define REISERFS_ROOT_OBJECTID 2 | 699 | #define REISERFS_ROOT_OBJECTID 2 |
700 | #define REISERFS_ROOT_PARENT_OBJECTID 1 | 700 | #define REISERFS_ROOT_PARENT_OBJECTID 1 |
701 | #ifdef __KERNEL__ | ||
701 | extern struct reiserfs_key root_key; | 702 | extern struct reiserfs_key root_key; |
703 | #endif /* __KERNEL__ */ | ||
702 | 704 | ||
703 | /* | 705 | /* |
704 | * Picture represents a leaf of the S+tree | 706 | * Picture represents a leaf of the S+tree |
@@ -1006,10 +1008,12 @@ struct reiserfs_de_head { | |||
1006 | #define de_visible(deh) test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) | 1008 | #define de_visible(deh) test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) |
1007 | #define de_hidden(deh) !test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) | 1009 | #define de_hidden(deh) !test_bit_unaligned (DEH_Visible, &((deh)->deh_state)) |
1008 | 1010 | ||
1011 | #ifdef __KERNEL__ | ||
1009 | extern void make_empty_dir_item_v1(char *body, __le32 dirid, __le32 objid, | 1012 | extern void make_empty_dir_item_v1(char *body, __le32 dirid, __le32 objid, |
1010 | __le32 par_dirid, __le32 par_objid); | 1013 | __le32 par_dirid, __le32 par_objid); |
1011 | extern void make_empty_dir_item(char *body, __le32 dirid, __le32 objid, | 1014 | extern void make_empty_dir_item(char *body, __le32 dirid, __le32 objid, |
1012 | __le32 par_dirid, __le32 par_objid); | 1015 | __le32 par_dirid, __le32 par_objid); |
1016 | #endif /* __KERNEL__ */ | ||
1013 | 1017 | ||
1014 | /* array of the entry headers */ | 1018 | /* array of the entry headers */ |
1015 | /* get item body */ | 1019 | /* get item body */ |
@@ -1478,7 +1482,9 @@ struct item_operations { | |||
1478 | void (*print_vi) (struct virtual_item * vi); | 1482 | void (*print_vi) (struct virtual_item * vi); |
1479 | }; | 1483 | }; |
1480 | 1484 | ||
1485 | #ifdef __KERNEL__ | ||
1481 | extern struct item_operations *item_ops[TYPE_ANY + 1]; | 1486 | extern struct item_operations *item_ops[TYPE_ANY + 1]; |
1487 | #endif /* __KERNEL__ */ | ||
1482 | 1488 | ||
1483 | #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih, bsize) | 1489 | #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih, bsize) |
1484 | #define op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize) | 1490 | #define op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize) |
@@ -1679,6 +1685,7 @@ struct reiserfs_transaction_handle { | |||
1679 | struct list_head t_list; | 1685 | struct list_head t_list; |
1680 | }; | 1686 | }; |
1681 | 1687 | ||
1688 | #ifdef __KERNEL__ | ||
1682 | /* used to keep track of ordered and tail writes, attached to the buffer | 1689 | /* used to keep track of ordered and tail writes, attached to the buffer |
1683 | * head through b_journal_head. | 1690 | * head through b_journal_head. |
1684 | */ | 1691 | */ |
@@ -2203,4 +2210,5 @@ int reiserfs_unpack(struct inode *inode, struct file *filp); | |||
2203 | /* xattr stuff */ | 2210 | /* xattr stuff */ |
2204 | #define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem) | 2211 | #define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem) |
2205 | 2212 | ||
2213 | #endif /* __KERNEL__ */ | ||
2206 | #endif /* _LINUX_REISER_FS_H */ | 2214 | #endif /* _LINUX_REISER_FS_H */ |
diff --git a/include/linux/socket.h b/include/linux/socket.h index 20fc4bbfca42..afc01909a428 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h | |||
@@ -24,10 +24,12 @@ struct __kernel_sockaddr_storage { | |||
24 | #include <linux/types.h> /* pid_t */ | 24 | #include <linux/types.h> /* pid_t */ |
25 | #include <linux/compiler.h> /* __user */ | 25 | #include <linux/compiler.h> /* __user */ |
26 | 26 | ||
27 | #ifdef CONFIG_PROC_FS | 27 | #ifdef __KERNEL__ |
28 | # ifdef CONFIG_PROC_FS | ||
28 | struct seq_file; | 29 | struct seq_file; |
29 | extern void socket_seq_show(struct seq_file *seq); | 30 | extern void socket_seq_show(struct seq_file *seq); |
30 | #endif | 31 | # endif |
32 | #endif /* __KERNEL__ */ | ||
31 | 33 | ||
32 | typedef unsigned short sa_family_t; | 34 | typedef unsigned short sa_family_t; |
33 | 35 | ||