2005-02-02 01:57:34

by Zhonglin Zhang

[permalink] [raw]
Subject: 2.6.11-rc2-mm2 modules can't be loaded correctly!

Hi, Andrew

Could you please check it ? I have worked out my little patch to fix
it. But not any feedback. Is it ok in your machine which is not-SMP?

Regards
--
Zhonglin Zhang <[email protected]>


2005-02-02 04:42:48

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.11-rc2-mm2 modules can't be loaded correctly!

Zhonglin Zhang <[email protected]> wrote:
>
> Hi, Andrew
>
> Could you please check it ? I have worked out my little patch to fix
> it. But not any feedback. Is it ok in your machine which is not-SMP?
>

--- 25/include/linux/stop_machine.h~fix-kallsyms-insmod-rmmod-race-fix-fix-fix 2005-01-29 16:17:47.936137064 -0800
+++ 25-akpm/include/linux/stop_machine.h 2005-01-29 16:18:09.493859792 -0800
@@ -57,7 +57,7 @@ static inline int stop_machine_run(int (
static inline int stop_machine_run(int (*fn)(void *), void *data,
unsigned int cpu)
{
- return 0;
+ return fn(data);
}

#endif /* CONFIG_STOP_MACHINE */
_