From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH -next] ipmi: fix module param sparse warnings Date: Mon, 28 Jun 2010 19:05:58 +0930 Message-ID: <201006281905.59387.rusty@rustcorp.com.au> References: <20100624152122.bfc0472a.randy.dunlap@oracle.com> <201006252220.17228.rusty@rustcorp.com.au> <4C24D779.6020209@oracle.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from ozlabs.org ([203.10.76.45]:39545 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751036Ab0F1JgJ (ORCPT ); Mon, 28 Jun 2010 05:36:09 -0400 In-Reply-To: <4C24D779.6020209@oracle.com> Sender: linux-next-owner@vger.kernel.org List-ID: To: Randy Dunlap Cc: lkml , linux-next@vger.kernel.org, Corey Minyard On Sat, 26 Jun 2010 01:51:13 am Randy Dunlap wrote: > On 06/25/10 05:50, Rusty Russell wrote: > > On Fri, 25 Jun 2010 07:51:22 am Randy Dunlap wrote: > >> From: Randy Dunlap > >> > >> The parameter in module_param_cb() should be a pointer, > > > > Well, I don't think there's anything wrong with it being a function. > > Ah, yes, I see. That makes it a sparse error, right? Well, it's a weird corner case, but yes. > > Meanwhile, we can do this instead. Does it solve it as well? > > Yes, that also fixes it. > Thanks. Thanks, I've added your tested-by. Cheers, Rusty.