]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[DCCP]: Make dccp_probe more portable
authorIan McDonald <ian.mcdonald@jandi.co.nz>
Mon, 20 Nov 2006 20:41:37 +0000 (18:41 -0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:24:39 +0000 (21:24 -0800)
This makes the code of the dccp_probe module more portable.

Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/dccp/probe.c

index fded1493c1dcc8a01884407b8f34d4b6a7834c98..f81e37de35d594714ebb84d73d2a336d7fb30515 100644 (file)
@@ -106,8 +106,10 @@ static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk,
 }
 
 static struct jprobe dccp_send_probe = {
-       .kp     = { .addr = (kprobe_opcode_t *)&dccp_sendmsg, },
-       .entry  = (kprobe_opcode_t *)&jdccp_sendmsg,
+       .kp     = {
+               .symbol_name = "dccp_sendmsg",
+       },
+       .entry  = JPROBE_ENTRY(jdccp_sendmsg),
 };
 
 static int dccpprobe_open(struct inode *inode, struct file *file)