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:
Bart Van Assche
2017-05-14 18:49:04 +00:00
parent b799130680
commit cda5cadb1c
4 changed files with 7 additions and 8 deletions
@@ -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);
+2 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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();