Re: 2.6.11-rc2-mm2 modules can't be loaded correctly!

Andrew Morton
2005-02-02T04:42:48Z

Zhonglin Zhang <zhonglinzh@mobilesoft.com.cn> 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 */
_