From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mundt Date: Thu, 14 Oct 2010 09:57:03 +0000 Subject: Re: [PATCH 1/2] ARM: mach-shmobile: clock-sh7372: Add FSIDIV clock support Message-Id: <20101014095703.GA17107@linux-sh.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org On Thu, Oct 14, 2010 at 05:50:42PM +0900, Kuninori Morimoto wrote: > If I use this patch on AP4, > It said > > ------------[ cut here ]------------ > WARNING: at /opt/usr/src/WORK/morimoto/gitlinux/linux-2.6/lib/kref.c:34 kref_get > +0x20/0x3c() > Modules linked in: > [] (unwind_backtrace+0x0/0xe4) from [] (warn_slowpath_common > +0x4c/0x64) > [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_n > ull+0x18/0x1c) > [] (warn_slowpath_null+0x18/0x1c) from [] (kref_get+0x20/0x3 > c) > [] (kref_get+0x20/0x3c) from [] (clk_register+0xdc/0x190) > [] (clk_register+0xdc/0x190) from [] (sh7372_clock_init+0x20 > /0xcc) > [] (sh7372_clock_init+0x20/0xcc) from [] (ap4evb_timer_init+ > 0x8/0x30) > [] (ap4evb_timer_init+0x8/0x30) from [] (time_init+0x14/0x1c > ) > [] (time_init+0x14/0x1c) from [] (start_kernel+0x154/0x244) > [] (start_kernel+0x154/0x244) from [<40008034>] (0x40008034) > ---[ end trace 1b75b31a2719ed1c ]--- > Yes, I noticed after I sent it. You can fix this by changing it to: if (mapping->base) kref_get(..) Or I can send you an updated path if you prefer.