aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xpc_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-xp/xpc_channel.c')
-rw-r--r--drivers/misc/sgi-xp/xpc_channel.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/misc/sgi-xp/xpc_channel.c b/drivers/misc/sgi-xp/xpc_channel.c
index f1afc0a7c33f..0615efbe0070 100644
--- a/drivers/misc/sgi-xp/xpc_channel.c
+++ b/drivers/misc/sgi-xp/xpc_channel.c
@@ -14,14 +14,7 @@
14 * 14 *
15 */ 15 */
16 16
17#include <linux/kernel.h> 17#include <linux/device.h>
18#include <linux/init.h>
19#include <linux/sched.h>
20#include <linux/cache.h>
21#include <linux/interrupt.h>
22#include <linux/mutex.h>
23#include <linux/completion.h>
24#include <asm/sn/sn_sal.h>
25#include "xpc.h" 18#include "xpc.h"
26 19
27/* 20/*
@@ -373,8 +366,9 @@ again:
373 dev_dbg(xpc_chan, "XPC_CHCTL_OPENREPLY (local_msgqueue_pa=" 366 dev_dbg(xpc_chan, "XPC_CHCTL_OPENREPLY (local_msgqueue_pa="
374 "0x%lx, local_nentries=%d, remote_nentries=%d) " 367 "0x%lx, local_nentries=%d, remote_nentries=%d) "
375 "received from partid=%d, channel=%d\n", 368 "received from partid=%d, channel=%d\n",
376 args->local_msgqueue_pa, args->local_nentries, 369 (unsigned long)args->local_msgqueue_pa,
377 args->remote_nentries, ch->partid, ch->number); 370 args->local_nentries, args->remote_nentries,
371 ch->partid, ch->number);
378 372
379 if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED)) { 373 if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED)) {
380 spin_unlock_irqrestore(&ch->lock, irq_flags); 374 spin_unlock_irqrestore(&ch->lock, irq_flags);
@@ -940,7 +934,7 @@ xpc_deliver_msg(struct xpc_channel *ch)
940 if (ch->func != NULL) { 934 if (ch->func != NULL) {
941 dev_dbg(xpc_chan, "ch->func() called, msg=0x%p, " 935 dev_dbg(xpc_chan, "ch->func() called, msg=0x%p, "
942 "msg_number=%ld, partid=%d, channel=%d\n", 936 "msg_number=%ld, partid=%d, channel=%d\n",
943 (void *)msg, msg->number, ch->partid, 937 msg, (signed long)msg->number, ch->partid,
944 ch->number); 938 ch->number);
945 939
946 /* deliver the message to its intended recipient */ 940 /* deliver the message to its intended recipient */
@@ -949,7 +943,7 @@ xpc_deliver_msg(struct xpc_channel *ch)
949 943
950 dev_dbg(xpc_chan, "ch->func() returned, msg=0x%p, " 944 dev_dbg(xpc_chan, "ch->func() returned, msg=0x%p, "
951 "msg_number=%ld, partid=%d, channel=%d\n", 945 "msg_number=%ld, partid=%d, channel=%d\n",
952 (void *)msg, msg->number, ch->partid, 946 msg, (signed long)msg->number, ch->partid,
953 ch->number); 947 ch->number);
954 } 948 }
955 949