Skip to contentSkip to conversation

sparc64: Fix bootup crash on sun4v.

PATCH In review David Miller 2 participants 3 messages Apr 13, 2012 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 sparc64: Fix bootup crash on sun4v.

The DS driver registers as a subsys_initcall() but this can be too early, in particular this risks registering before we've had a chance to allocate and setup module_kset in kernel/params.c which is performed also as a subsyts_initcall().

Register DS using device_initcall() insteal.

---
 arch/sparc/kernel/ds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/kernel/ds.c +1 -1
index fea13c7..b93c2c9 100644
@@ -1264,4 +1264,4 @@ static int __init ds_init(void)
 	return vio_register_driver(&ds_driver);
 }
 
-subsys_initcall(ds_init);
+fs_initcall(ds_init);
Signature · 1 line
1.7.9.5
#1 lore raw

arch/sparc/kernel/ds.c static int __init ds_init(void) · line 1267

Quoted 6 lines · David Miller

Register DS using device_initcall() insteal.

arch/sparc/kernel/ds.c +1 -1
-subsys_initcall(ds_init);
+fs_initcall(ds_init);

Changelog and patch does not match?!?

Sam

author maintainer
#2 lore raw
In reply to David Miller

From: Sam Ravnborg <[email protected]>
Date: Fri, 13 Apr 2012 23:41:36 +0200

Quoted 9 lines · David Miller

arch/sparc/kernel/ds.c static int __init ds_init(void) · line 1267

Quoted 6 lines

Register DS using device_initcall() insteal.

arch/sparc/kernel/ds.c +1 -1
-subsys_initcall(ds_init);
+fs_initcall(ds_init);

Changelog and patch does not match?!?

Grrr... good catch.