Skip to contentSkip to conversation

module parameter description fix

PATCH soulpatch 2 participants 2 messages Feb 26, 2010 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

soulpatch

author
#0 lore raw

I found a bug in the nouveau kernel module. It looks like a cut and paste error on the definitions of some module parameters in nouveau_drv.c. The bug exhibits when displaying module parameter information with the modinfo utility. Here's a patch:

drivers/gpu/drm/nouveau/nouveau_drv.c +2 -2
index da3b93b..874adf5 100644
@@ -75,11 +75,11 @@ MODULE_PARM_DESC(ignorelid, "Ignore ACPI lid status");
 int nouveau_ignorelid = 0;
 module_param_named(ignorelid, nouveau_ignorelid, int, 0400);
 
-MODULE_PARM_DESC(noagp, "Disable all acceleration");
+MODULE_PARM_DESC(noaccel, "Disable all acceleration");
 int nouveau_noaccel = 0;
 module_param_named(noaccel, nouveau_noaccel, int, 0400);
 
-MODULE_PARM_DESC(noagp, "Disable fbcon acceleration");
+MODULE_PARM_DESC(nofbaccel, "Disable fbcon acceleration");
 int nouveau_nofbaccel = 0;
 module_param_named(nofbaccel, nouveau_nofbaccel, int, 0400);
 

Cheers,
soulpatch

#3 lore raw
In reply to a message not in the archive
Quoted 29 lines · Tavian Barnes
Quoted 28 lines · soulpatch

I found a bug in the nouveau kernel module. It looks like a cut and paste error on the definitions of some module parameters in nouveau_drv.c. The bug exhibits when displaying module parameter information with the modinfo utility. Here's a patch:

drivers/gpu/drm/nouveau/nouveau_drv.c +2 -2
index da3b93b..874adf5 100644
@@ -75,11 +75,11 @@ MODULE_PARM_DESC(ignorelid, "Ignore ACPI lid status");
 int nouveau_ignorelid = 0;
 module_param_named(ignorelid, nouveau_ignorelid, int, 0400);
 
-MODULE_PARM_DESC(noagp, "Disable all acceleration");
+MODULE_PARM_DESC(noaccel, "Disable all acceleration");
 int nouveau_noaccel = 0;
 module_param_named(noaccel, nouveau_noaccel, int, 0400);
 
-MODULE_PARM_DESC(noagp, "Disable fbcon acceleration");
+MODULE_PARM_DESC(nofbaccel, "Disable fbcon acceleration");
 int nouveau_nofbaccel = 0;
 module_param_named(nofbaccel, nouveau_nofbaccel, int, 0400);
 

Cheers,
soulpatch

Quoted 8 lines
Quoted 5 lines

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Looks like 933236b4a6ae9cb917f80ef1effe964323d7f25a just fixed this yesterday.

Yeah, I fixed it yesterday too. I guess I should have done another pull before generating the diff today. Glad it got fixed though.

soulpatch