Staging: lustre: Add function prototypes in console.h
PATCH 1/1 Staging: lustre: Add function prototypes in console.h
Sparse reported the following warnings:
warning: symbol 'lstcon_console_init' was not declared. Should it be static?
warning: symbol 'lstcon_console_fini' was not declared. Should it be static?
warning: symbol 'lstcon_ioctl_entry' was not declared. Should it be static?
However since these functions are used in other files,
they cannot be made static, so add protoypes for the same in console.h.
Signed-off-by Darshana Padmadas <[email protected]>
--- drivers/staging/lustre/lnet/selftest/console.h | 3 +++ 1 file changed, 3 insertions(+)
drivers/staging/lustre/lnet/selftest/console.h +3 -0
@@ -182,6 +182,9 @@ lstcon_id2hash (lnet_process_id_t id, struct list_head *hash)return &hash[idx]; } +int lstcon_console_init (void ); +int lstcon_ioctl_entry (unsigned int cmd,struct libcfs_ioctl_data *data); +int lstcon_console_fini (void );extern int lstcon_session_match (lst_sid_t sid);extern int lstcon_session_new (char *name,int key,unsigned version,int timeout,int flags,lst_sid_t *sid_up);
Signature · 1 line
1.9.1