mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
isert-scst: Enable type checking for isert portal pointers
This patch does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -93,15 +93,13 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void *isert_portal_add(struct sockaddr *saddr, size_t addr_len)
|
||||
struct isert_portal *isert_portal_add(struct sockaddr *saddr, size_t addr_len)
|
||||
{
|
||||
return isert_portal_start(saddr, addr_len);
|
||||
}
|
||||
|
||||
int isert_portal_remove(void *portal_h)
|
||||
int isert_portal_remove(struct isert_portal *portal)
|
||||
{
|
||||
struct isert_portal *portal = portal_h;
|
||||
|
||||
isert_portal_release(portal);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
int isert_datamover_init(void);
|
||||
int isert_datamover_cleanup(void);
|
||||
|
||||
void *isert_portal_add(struct sockaddr *sa, size_t addr_len);
|
||||
int isert_portal_remove(void *portal_h);
|
||||
struct isert_portal *isert_portal_add(struct sockaddr *sa, size_t addr_len);
|
||||
int isert_portal_remove(struct isert_portal *portal);
|
||||
|
||||
struct iscsi_cmnd *isert_alloc_login_rsp_pdu(struct iscsi_conn *iscsi_conn);
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
#include "iser_hdr.h"
|
||||
|
||||
struct iscsi_conn;
|
||||
struct isert_portal;
|
||||
|
||||
#define ISERT_NR_DEVS 128
|
||||
|
||||
@@ -76,7 +77,7 @@ struct isert_listener_dev {
|
||||
struct list_head curr_conn_list;
|
||||
struct isert_addr_info info;
|
||||
atomic_t available;
|
||||
void *portal_h[ISERT_MAX_PORTALS];
|
||||
struct isert_portal *portal_h[ISERT_MAX_PORTALS];
|
||||
int free_portal_idx;
|
||||
};
|
||||
|
||||
|
||||
@@ -395,7 +395,7 @@ static long isert_listen_ioctl(struct file *filp, unsigned int cmd,
|
||||
struct isert_listener_dev *dev = filp->private_data;
|
||||
int res = 0, rc;
|
||||
void __user *ptr = (void __user *)arg;
|
||||
void *portal;
|
||||
struct isert_portal *portal;
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user