All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace
@ 2010-10-25 19:11 Thomas Renninger
  2010-10-25 19:11 ` [PATCH 2/2] PNP: Set up pnp_debug via module and not via boot param Thomas Renninger
  2010-10-27  6:24 ` [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace Len Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Renninger @ 2010-10-25 19:11 UTC (permalink / raw)
  To: lenb, bjorn.helgaas; +Cc: Thomas Renninger, linux-acpi

This is cleanup mostly, nothing urgent.
I came up with it when looking at dynamic debug which can
enable pr_debug messages at runtime or boot param
for a specific module.

Advantages:
  - Any pnp code can make use of the moduleparam.h interface, the modules
    will show up as pnp.param.
  - Passing pnp.ddebug as kernel boot param will enable all pnp debug messages
    with my previous patch and CONFIG_DYNAMIC_DEBUG enabled.


Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
CC: linux-acpi@vger.kernel.org
---
 drivers/pnp/Makefile         |    6 ++++--
 drivers/pnp/isapnp/Makefile  |    6 +++---
 drivers/pnp/pnpacpi/Makefile |    3 ++-
 drivers/pnp/pnpbios/Makefile |    5 +++--
 4 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/drivers/pnp/Makefile b/drivers/pnp/Makefile
index 8de3775..bfba893 100644
--- a/drivers/pnp/Makefile
+++ b/drivers/pnp/Makefile
@@ -2,11 +2,13 @@
 # Makefile for the Linux Plug-and-Play Support.
 #
 
-obj-y		:= core.o card.o driver.o resource.o manager.o support.o interface.o quirks.o
+obj-y		:= pnp.o
+
+pnp-y		:= core.o card.o driver.o resource.o manager.o support.o interface.o quirks.o
 
 obj-$(CONFIG_PNPACPI)		+= pnpacpi/
 obj-$(CONFIG_PNPBIOS)		+= pnpbios/
 obj-$(CONFIG_ISAPNP)		+= isapnp/
 
 # pnp_system_init goes after pnpacpi/pnpbios init
-obj-y				+= system.o
+pnp-y				+= system.o
diff --git a/drivers/pnp/isapnp/Makefile b/drivers/pnp/isapnp/Makefile
index cac18bb..6e607aa 100644
--- a/drivers/pnp/isapnp/Makefile
+++ b/drivers/pnp/isapnp/Makefile
@@ -1,7 +1,7 @@
 #
 # Makefile for the kernel ISAPNP driver.
 #
+obj-y			+= pnp.o
+pnp-y			:= core.o compat.o
 
-isapnp-proc-$(CONFIG_PROC_FS) = proc.o
-
-obj-y := core.o compat.o $(isapnp-proc-y)
+pnp-$(CONFIG_PROC_FS)	+= proc.o
diff --git a/drivers/pnp/pnpacpi/Makefile b/drivers/pnp/pnpacpi/Makefile
index 905326f..40c93da 100644
--- a/drivers/pnp/pnpacpi/Makefile
+++ b/drivers/pnp/pnpacpi/Makefile
@@ -1,5 +1,6 @@
 #
 # Makefile for the kernel PNPACPI driver.
 #
+obj-y += pnp.o
 
-obj-y := core.o rsparser.o
+pnp-y := core.o rsparser.o
diff --git a/drivers/pnp/pnpbios/Makefile b/drivers/pnp/pnpbios/Makefile
index 3cd3ed7..240b0ff 100644
--- a/drivers/pnp/pnpbios/Makefile
+++ b/drivers/pnp/pnpbios/Makefile
@@ -1,7 +1,8 @@
 #
 # Makefile for the kernel PNPBIOS driver.
 #
+obj-y := pnp.o
 
-pnpbios-proc-$(CONFIG_PNPBIOS_PROC_FS) = proc.o
+pnp-y := core.o bioscalls.o rsparser.o
 
-obj-y := core.o bioscalls.o rsparser.o $(pnpbios-proc-y)
+pnp-$(CONFIG_PNPBIOS_PROC_FS) += proc.o
-- 
1.6.3


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

* [PATCH 2/2] PNP: Set up pnp_debug via module and not via boot param.
  2010-10-25 19:11 [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace Thomas Renninger
@ 2010-10-25 19:11 ` Thomas Renninger
  2010-10-27  6:24   ` Len Brown
  2010-10-27  6:24 ` [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace Len Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Renninger @ 2010-10-25 19:11 UTC (permalink / raw)
  To: lenb, bjorn.helgaas; +Cc: Thomas Renninger, linux-acpi

Cleanup only, no functional change (pnp.debug can be enabled
and disabled at runtime, but that's not a real enhancement).

This one depends on another PNP cleanup patch:
PNP: Compile all pnp built-in stuff in one module namespace

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
CC: linux-acpi@vger.kernel.org
---
 drivers/pnp/core.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/drivers/pnp/core.c b/drivers/pnp/core.c
index 88b3cde..9801918 100644
--- a/drivers/pnp/core.c
+++ b/drivers/pnp/core.c
@@ -218,10 +218,5 @@ subsys_initcall(pnp_init);
 int pnp_debug;
 
 #if defined(CONFIG_PNP_DEBUG_MESSAGES)
-static int __init pnp_debug_setup(char *__unused)
-{
-	pnp_debug = 1;
-	return 1;
-}
-__setup("pnp.debug", pnp_debug_setup);
+module_param_named(debug, pnp_debug, int, 0644);
 #endif
-- 
1.6.3


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

* Re: [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace
  2010-10-25 19:11 [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace Thomas Renninger
  2010-10-25 19:11 ` [PATCH 2/2] PNP: Set up pnp_debug via module and not via boot param Thomas Renninger
@ 2010-10-27  6:24 ` Len Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Len Brown @ 2010-10-27  6:24 UTC (permalink / raw)
  To: Thomas Renninger; +Cc: bjorn.helgaas, linux-acpi

applied

thanks,
Len Brown, Intel Open Source Technology Center


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

* Re: [PATCH 2/2] PNP: Set up pnp_debug via module and not via boot param.
  2010-10-25 19:11 ` [PATCH 2/2] PNP: Set up pnp_debug via module and not via boot param Thomas Renninger
@ 2010-10-27  6:24   ` Len Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Len Brown @ 2010-10-27  6:24 UTC (permalink / raw)
  To: Thomas Renninger; +Cc: bjorn.helgaas, linux-acpi

applied

thanks,
Len Brown, Intel Open Source Technology Center


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

end of thread, other threads:[~2010-10-27  6:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-25 19:11 [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace Thomas Renninger
2010-10-25 19:11 ` [PATCH 2/2] PNP: Set up pnp_debug via module and not via boot param Thomas Renninger
2010-10-27  6:24   ` Len Brown
2010-10-27  6:24 ` [PATCH 1/2] PNP: Compile all pnp built-in stuff in one module namespace Len Brown

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.