Re: [WATCHDOG] v2.6.27-rc patches

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Jones
Date: Tuesday, August 12, 2008 - 8:10 pm

On Wed, Aug 06, 2008 at 10:29:18PM +0200, Wim Van Sebroeck wrote:
 > Hi Linus,
 > 
 > Please pull from 'master' branch of
 > 	git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
 > or if master.kernel.org hasn't synced up yet:
 > 	master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
 > 
 > This will update the following files:
 > 
 > Author: Anton Vorontsov <avorontsov@ru.mvista.com>
 > Date:   Thu Jul 3 23:51:36 2008 -0700
 > 
 >     [WATCHDOG] mpc8xxx_wdt: add support for MPC8xx watchdogs

This is broken when built modular because this...

 > +}
 > +module_init(mpc8xxx_wdt_init_late);

and this ..

 > +arch_initcall(mpc8xxx_wdt_init);

Can't be mixed.  You end up with two init_module invocations

drivers/watchdog/mpc8xxx_wdt.c:304: error: redefinition of '__inittest'
drivers/watchdog/mpc8xxx_wdt.c:298: error: previous definition of '__inittest' was here
drivers/watchdog/mpc8xxx_wdt.c:304: error: redefinition of 'init_module'
drivers/watchdog/mpc8xxx_wdt.c:298: error: previous definition of 'init_module' was here

Given they both call different routines though, I'm not sure the right fix here.

	Dave


-- 
http://www.codemonkey.org.uk
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[WATCHDOG] v2.6.27-rc patches, Wim Van Sebroeck, (Wed Aug 6, 1:29 pm)
Re: [WATCHDOG] v2.6.27-rc patches, Martin Michlmayr, (Thu Aug 7, 12:03 am)
Re: [WATCHDOG] v2.6.27-rc patches, Florian Fainelli, (Thu Aug 7, 1:38 am)
Re: [WATCHDOG] v2.6.27-rc patches, Ben Dooks, (Thu Aug 7, 2:32 am)
Re: [WATCHDOG] v2.6.27-rc patches, Wim Van Sebroeck, (Thu Aug 7, 3:21 am)
Re: [WATCHDOG] v2.6.27-rc patches, Wim Van Sebroeck, (Thu Aug 7, 3:24 am)
Re: [WATCHDOG] v2.6.27-rc patches, Dave Jones, (Tue Aug 12, 8:10 pm)
[PATCH] [WATCHDOG] mpc8xxx_wdt: fix modular build, Anton Vorontsov, (Wed Aug 13, 5:23 am)
Re: [PATCH] [WATCHDOG] mpc8xxx_wdt: fix modular build, Adrian Bunk, (Wed Aug 13, 7:31 am)
Re: [PATCH] [WATCHDOG] mpc8xxx_wdt: fix modular build, Anton Vorontsov, (Wed Aug 13, 10:21 am)
[PATCH v2] [WATCHDOG] mpc8xxx_wdt: fix modular build, Anton Vorontsov, (Wed Aug 13, 11:34 am)