From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] fix sti-netlink.c compilation failure Date: Tue, 8 May 2007 14:39:39 -0700 Message-ID: <20070508213939.GL32547@atomide.com> References: <20070508200109.272063491@pwsan.com> <20070508200138.420874830@pwsan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070508200138.420874830@pwsan.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com Errors-To: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com To: Paul Walmsley Cc: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org * Paul Walmsley [070508 13:04]: > 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 > > --- > arch/arm/plat-omap/sti/sti-netlink.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: linux-omap-2.6/arch/arm/plat-omap/sti/sti-netlink.c > =================================================================== > --- linux-omap-2.6.orig/arch/arm/plat-omap/sti/sti-netlink.c > +++ linux-omap-2.6/arch/arm/plat-omap/sti/sti-netlink.c > @@ -142,7 +142,8 @@ static void sti_netlink_receive(struct s > 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; > Thanks, pushing today. Tony