Prepend spl_ to all init/fini functions

This is a bit of cleanup I'd been meaning to get to for a while
to reduce the chance of a type conflict.  Well that conflict
finally occurred with the kstat_init() function which conflicts
with a function in the 2.6.32-6-pve kernel.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #56
This commit is contained in:
Brian Behlendorf
2011-11-11 09:03:31 -08:00
parent 948914d2f1
commit 1114ae6ae7
11 changed files with 39 additions and 35 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ struct proc_dir_entry *proc_dir_entry_find(struct proc_dir_entry *root,
const char *str);
int proc_dir_entries(struct proc_dir_entry *root);
int proc_init(void);
void proc_fini(void);
int spl_proc_init(void);
void spl_proc_fini(void);
#endif /* SPL_PROC_H */
+2 -2
View File
@@ -186,7 +186,7 @@ extern void spl_debug_dumpstack(struct task_struct *tsk);
extern int spl_debug_clear_buffer(void);
extern int spl_debug_mark_buffer(char *text);
int debug_init(void);
void debug_fini(void);
int spl_debug_init(void);
void spl_debug_fini(void);
#endif /* SPL_DEBUG_INTERNAL_H */
+2 -2
View File
@@ -146,8 +146,8 @@ typedef struct kstat_timer {
hrtime_t stop_time; /* previous event stop time */
} kstat_timer_t;
int kstat_init(void);
void kstat_fini(void);
int spl_kstat_init(void);
void spl_kstat_fini(void);
extern kstat_t *__kstat_create(const char *ks_module, int ks_instance,
const char *ks_name, const char *ks_class,
+2 -2
View File
@@ -39,7 +39,7 @@ extern void tsd_create(uint_t *, dtor_func_t);
extern void tsd_destroy(uint_t *);
extern void tsd_exit(void);
int tsd_init(void);
void tsd_fini(void);
int spl_tsd_init(void);
void spl_tsd_fini(void);
#endif /* _SPL_TSD_H */
+2 -2
View File
@@ -63,7 +63,7 @@ extern int z_compress_level(void *dest, size_t *destLen, const void *source,
extern int z_uncompress(void *dest, size_t *destLen, const void *source,
size_t sourceLen);
int zlib_init(void);
void zlib_fini(void);
int spl_zlib_init(void);
void spl_zlib_fini(void);
#endif /* SPL_ZMOD_H */