]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
fix sti-netlink.c compilation failure
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 May 2007 20:01:10 +0000 (14:01 -0600)
committerTony Lindgren <tony@atomide.com>
Tue, 8 May 2007 22:24:16 +0000 (15:24 -0700)
Fix this compilation error in current linux-omap-2.6 git head:

  CC      arch/arm/plat-omap/sti/sti-netlink.o
arch/arm/plat-omap/sti/sti-netlink.c: In function 'sti_netlink_init':
arch/arm/plat-omap/sti/sti-netlink.c:145: warning: passing argument 4 of 'netlink_kernel_create' from incompatible pointer type
arch/arm/plat-omap/sti/sti-netlink.c:145: error: too few arguments to function 'netlink_kernel_create'
make[2]: *** [arch/arm/plat-omap/sti/sti-netlink.o] Error 1
make[1]: *** [arch/arm/plat-omap/sti] Error 2
make: *** [arch/arm/plat-omap] Error 2

Compile-tested only.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/sti/sti-netlink.c

index 5593aee567df8456c2647082650543381a0e4363..aed89da655e11c36a5a57f4e8ab25b9aac07896e 100644 (file)
@@ -142,7 +142,8 @@ static void sti_netlink_receive(struct sock *sk, int len)
 static int __init sti_netlink_init(void)
 {
        sti_sock = netlink_kernel_create(NETLINK_USERSOCK, 0,
-                                        sti_netlink_receive, THIS_MODULE);
+                                        sti_netlink_receive, NULL,
+                                        THIS_MODULE);
        if (!sti_sock) {
                printk(KERN_ERR "STI: Failed to create netlink socket\n");
                return -ENODEV;