s390/iucv: do not use arrays as argument
The iucv code uses arrays as arguments. Even though this does not really cause a problem, it could be misleading, since the compiler turns array arguments into just a pointer argument. To be more precise this patch changes the array arguments into pointers. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4d7def2a12
commit
91e60eb60b
@@ -229,7 +229,7 @@ static struct mon_msg *mon_next_message(struct mon_private *monpriv)
|
||||
/******************************************************************************
|
||||
* IUCV handler *
|
||||
*****************************************************************************/
|
||||
static void mon_iucv_path_complete(struct iucv_path *path, u8 ipuser[16])
|
||||
static void mon_iucv_path_complete(struct iucv_path *path, u8 *ipuser)
|
||||
{
|
||||
struct mon_private *monpriv = path->private;
|
||||
|
||||
@@ -237,7 +237,7 @@ static void mon_iucv_path_complete(struct iucv_path *path, u8 ipuser[16])
|
||||
wake_up(&mon_conn_wait_queue);
|
||||
}
|
||||
|
||||
static void mon_iucv_path_severed(struct iucv_path *path, u8 ipuser[16])
|
||||
static void mon_iucv_path_severed(struct iucv_path *path, u8 *ipuser)
|
||||
{
|
||||
struct mon_private *monpriv = path->private;
|
||||
|
||||
|
@@ -99,8 +99,8 @@ static const struct file_operations vmlogrdr_fops = {
|
||||
};
|
||||
|
||||
|
||||
static void vmlogrdr_iucv_path_complete(struct iucv_path *, u8 ipuser[16]);
|
||||
static void vmlogrdr_iucv_path_severed(struct iucv_path *, u8 ipuser[16]);
|
||||
static void vmlogrdr_iucv_path_complete(struct iucv_path *, u8 *ipuser);
|
||||
static void vmlogrdr_iucv_path_severed(struct iucv_path *, u8 *ipuser);
|
||||
static void vmlogrdr_iucv_message_pending(struct iucv_path *,
|
||||
struct iucv_message *);
|
||||
|
||||
@@ -160,7 +160,7 @@ static struct cdev *vmlogrdr_cdev = NULL;
|
||||
static int recording_class_AB;
|
||||
|
||||
|
||||
static void vmlogrdr_iucv_path_complete(struct iucv_path *path, u8 ipuser[16])
|
||||
static void vmlogrdr_iucv_path_complete(struct iucv_path *path, u8 *ipuser)
|
||||
{
|
||||
struct vmlogrdr_priv_t * logptr = path->private;
|
||||
|
||||
@@ -171,7 +171,7 @@ static void vmlogrdr_iucv_path_complete(struct iucv_path *path, u8 ipuser[16])
|
||||
}
|
||||
|
||||
|
||||
static void vmlogrdr_iucv_path_severed(struct iucv_path *path, u8 ipuser[16])
|
||||
static void vmlogrdr_iucv_path_severed(struct iucv_path *path, u8 *ipuser)
|
||||
{
|
||||
struct vmlogrdr_priv_t * logptr = path->private;
|
||||
u8 reason = (u8) ipuser[8];
|
||||
|
Reference in New Issue
Block a user