All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the final tree (rr tree related)
@ 2011-07-05  6:44 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2011-07-05  6:44 UTC (permalink / raw)
  To: Rusty Russell; +Cc: linux-next, linux-kernel, Kay Sievers

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

Hi all,

After merging the final tree, today's linux-next build (powerpc
allnoconfig) failed like this:

kernel/built-in.o: In function `locate_module_kobject':
params.c:(.init.text+0x133a): undefined reference to `module_uevent'
params.c:(.init.text+0x1342): undefined reference to `module_uevent'

Caused by commit 5858ac1e3bff ("module: add /sys/module/<name>/uevent
files").

I have reverted that commit for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the final tree (rr tree related)
  2010-06-04  4:49 Stephen Rothwell
@ 2010-06-04  5:36 ` Rusty Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2010-06-04  5:36 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel

On Fri, 4 Jun 2010 02:19:33 pm Stephen Rothwell wrote:
> Hi Rusty,
> 
> After merging the final tree, today's linux-next build (powerpc
> ppc44x_defconfig) failed like this:
> 
> kernel/module.c: In function 'post_relocation':
> kernel/module.c:2526: error: 'struct module' has no member named 'percpu_size'
> 
> Caused by commit fc77407bc287ed250f9355fda435df5f78b45885 ("module:
> simplify per-cpu handling a little").
> 
> This build has CONFIG_SMP not set

Actually, I think that cleanup is broken.  If someone were to have relocations
inside their per-cpu area, the relocation code would smash something random.

So, a doubly bad idea.  I've dropped the commit.

Thanks!
Rusty.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-next: build failure after merge of the final tree (rr tree related)
@ 2010-06-04  4:49 Stephen Rothwell
  2010-06-04  5:36 ` Rusty Russell
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2010-06-04  4:49 UTC (permalink / raw)
  To: Rusty Russell; +Cc: linux-next, linux-kernel

Hi Rusty,

After merging the final tree, today's linux-next build (powerpc
ppc44x_defconfig) failed like this:

kernel/module.c: In function 'post_relocation':
kernel/module.c:2526: error: 'struct module' has no member named 'percpu_size'

Caused by commit fc77407bc287ed250f9355fda435df5f78b45885 ("module:
simplify per-cpu handling a little").

This build has CONFIG_SMP not set ... I applied the following patch:

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 4 Jun 2010 14:41:21 +1000
Subject: [PATCH] module: don't reference percpu stuff in UP

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 kernel/module.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/module.c b/kernel/module.c
index 69a3f12..da0213a 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2523,7 +2523,9 @@ static int post_relocation(struct module *mod, const struct load_info *info)
 	sort_extable(mod->extable, mod->extable + mod->num_exentries);
 
 	/* Copy relocated percpu area over. */
+#ifdef CONFIG_SMP
 	percpu_modcopy(mod, info->orig_percpu, mod->percpu_size);
+#endif
 
 	/* Setup kallsyms-specific fields. */
 	add_kallsyms(mod, info);
-- 
1.7.1


-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-05  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05  6:44 linux-next: build failure after merge of the final tree (rr tree related) Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2010-06-04  4:49 Stephen Rothwell
2010-06-04  5:36 ` Rusty Russell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.