lkml.org 
[lkml]   [2012]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fix modpost when CONFIG_ALPHA_TSUNAMI=y
On 19/02/12 10:24, Jim Faulkner wrote:
> Linux 3.2.6 fails to modpost on my alpha machine when
> CONFIG_ALPHA_TSUNAMI=y. Linux 3.3-rc3 does not appear to have a fix for
> this bug, so is likely also affected. I've attached a patch which fixes
> this issue. I have tested this patch on Linux 3.2.6 successfully, and
> the patch also applies cleanly to Linux 3.3-rc3.

> diff -uNr linux-3.3-rc3/arch/alpha/kernel/core_tsunami.c linux-3.3-rc3.patched/arch/alpha/kernel/core_tsunami.c
> --- linux-3.3-rc3/arch/alpha/kernel/core_tsunami.c 2012-02-08 22:21:53.000000000 -0500
> +++ linux-3.3-rc3.patched/arch/alpha/kernel/core_tsunami.c 2012-02-18 16:07:12.859977887 -0500
> @@ -11,6 +11,7 @@
> #include <asm/core_tsunami.h>
> #undef __EXTERN_INLINE
>
> +#include <linux/module.h>

Wouldn't <linux/exports.h> be better? I seem to recall that this was a
problem with EXPORT_SYMBOL not being defined and I see my own personal
fix (which I had completely forgotten to send upstream) was to include
<linux/exports.h>

> #include <linux/types.h>
> #include <linux/pci.h>
> #include <linux/sched.h>

Cheers
Michael.


\
 
 \ /
  Last update: 2012-02-18 23:33    [W:0.527 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site