[PATCH] hrtimer: fix section mismatch



From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Fix section mismatch in hrtimer.c:

WARNING: vmlinux.o(.text+0x50c61): Section mismatch: reference to .init.text: (between 'hrtimer_cpu_notify' and 'down_read_trylock')

Noticed by Johannes Berg and confirmed by Sam Ravnborg.

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
kernel/hrtimer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.24-rc8-git2.orig/kernel/hrtimer.c
+++ linux-2.6.24-rc8-git2/kernel/hrtimer.c
@@ -1378,7 +1378,7 @@ sys_nanosleep(struct timespec __user *rq
/*
* Functions related to boot-time initialization:
*/
-static void __devinit init_hrtimers_cpu(int cpu)
+static void __cpuinit init_hrtimers_cpu(int cpu)
{
struct hrtimer_cpu_base *cpu_base = &per_cpu(hrtimer_bases, cpu);
int i;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Using VLOOKUP to draw data from two columns
    ... then you'll have a mismatch. ... I think I'd fix it by making sure the years are numeric in both spots. ... Dan wrote: ... >> Dave Peterson ...
    (microsoft.public.excel.misc)
  • Re: nvidia-settings size mismatch
    ... On stardate Fri, 23 Dec 2005, the wise bob self entered: ... > size mismatch: ... > ** Fix the problem and try again. ...
    (freebsd-questions)
  • Re: problem with ipfilter and todays -stable
    ... > Darren, I'm sure you're busy with ipfilter-4.0 and such, but is ... > (ping stopped working, then I noticed the version mismatch issue as ... The version mismatch is easy to fix, ...
    (freebsd-stable)
  • [GIT PULL] block fixes for 2.6.31-rc4
    ... Please consider pulling from the following temp block fixes tree. ... Two patches deal with build problems (spurious section mismatch ... Fix z2ram unregistering more minors than it registers. ...
    (Linux-Kernel)
  • [GIT PATCH] PCI fixes for 2.6.21-rc3
    ... Here are some PCI fixes against 2.6.21-rc3 ... They fix a problem that shows up with the libata drivers and fix a number of ... PCI: aer: fix section mismatch warning ...
    (Linux-Kernel)