linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] drivers/pci/hotplug/ : simply use MODULE
@ 2004-12-11 16:54 Adrian Bunk
  2004-12-13  0:11 ` Scott Murray
  2004-12-16 23:56 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Adrian Bunk @ 2004-12-11 16:54 UTC (permalink / raw)
  To: scottm, pcihpd-discuss, greg; +Cc: linux-kernel

The patch below lets five files under drivers/pci/hotplug/ simply use 
MODULE to check whether they are compiled as part of a module.

MODULE is the common idiom for checking whether a file is built as part 
of a module.

In theory, my patch shouldn't have made any difference, but if you look 
closely, the previous #if's in cpcihp_generic.c and cpci_hotplug_pci.c 
weren't correct.


diffstat output:
 drivers/pci/hotplug/cpci_hotplug_pci.c |    2 +-
 drivers/pci/hotplug/cpcihp_generic.c   |    2 +-
 drivers/pci/hotplug/fakephp.c          |    2 +-
 drivers/pci/hotplug/ibmphp.h           |    2 +-
 drivers/pci/hotplug/shpchp.h           |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/ibmphp.h.old	2004-12-11 17:35:11.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/ibmphp.h	2004-12-11 17:35:26.000000000 +0100
@@ -34,7 +34,7 @@
 
 extern int ibmphp_debug;
 
-#if !defined(CONFIG_HOTPLUG_PCI_IBM_MODULE)
+#if !defined(MODULE)
 	#define MY_NAME "ibmphpd"
 #else
 	#define MY_NAME THIS_MODULE->name
--- linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/cpcihp_generic.c.old	2004-12-11 17:35:45.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/cpcihp_generic.c	2004-12-11 17:35:56.000000000 +0100
@@ -45,7 +45,7 @@
 #define DRIVER_AUTHOR	"Scott Murray <scottm@somanetworks.com>"
 #define DRIVER_DESC	"Generic port I/O CompactPCI Hot Plug Driver"
 
-#if !defined(CONFIG_HOTPLUG_CPCI_GENERIC_MODULE)
+#if !defined(MODULE)
 #define MY_NAME	"cpcihp_generic"
 #else
 #define MY_NAME	THIS_MODULE->name
--- linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/cpci_hotplug_pci.c.old	2004-12-11 17:38:45.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/cpci_hotplug_pci.c	2004-12-11 17:38:58.000000000 +0100
@@ -32,7 +32,7 @@
 #include "pci_hotplug.h"
 #include "cpci_hotplug.h"
 
-#if !defined(CONFIG_HOTPLUG_CPCI_MODULE)
+#if !defined(MODULE)
 #define MY_NAME	"cpci_hotplug"
 #else
 #define MY_NAME	THIS_MODULE->name
--- linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/fakephp.c.old	2004-12-11 17:39:14.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/fakephp.c	2004-12-11 17:39:23.000000000 +0100
@@ -40,7 +40,7 @@
 #include "pci_hotplug.h"
 #include "../pci.h"
 
-#if !defined(CONFIG_HOTPLUG_PCI_FAKE_MODULE)
+#if !defined(MODULE)
 	#define MY_NAME	"fakephp"
 #else
 	#define MY_NAME	THIS_MODULE->name
--- linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/shpchp.h.old	2004-12-11 17:39:49.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/drivers/pci/hotplug/shpchp.h	2004-12-11 17:40:03.000000000 +0100
@@ -36,7 +36,7 @@
 #include <asm/io.h>		
 #include "pci_hotplug.h"
 
-#if !defined(CONFIG_HOTPLUG_PCI_SHPC_MODULE)
+#if !defined(MODULE)
 	#define MY_NAME	"shpchp"
 #else
 	#define MY_NAME	THIS_MODULE->name


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

* Re: [2.6 patch] drivers/pci/hotplug/ : simply use MODULE
  2004-12-11 16:54 [2.6 patch] drivers/pci/hotplug/ : simply use MODULE Adrian Bunk
@ 2004-12-13  0:11 ` Scott Murray
  2004-12-16 23:56 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Murray @ 2004-12-13  0:11 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: pcihpd-discuss, greg, linux-kernel

On Sat, 11 Dec 2004, Adrian Bunk wrote:

> The patch below lets five files under drivers/pci/hotplug/ simply use 
> MODULE to check whether they are compiled as part of a module.
> 
> MODULE is the common idiom for checking whether a file is built as part 
> of a module.
> 
> In theory, my patch shouldn't have made any difference, but if you look 
> closely, the previous #if's in cpcihp_generic.c and cpci_hotplug_pci.c 
> weren't correct.

Yep, those were never fixed after the drivers/hotplug to 
drivers/pci/hotplug move, my bad for not checking things
better after that was done.

Thanks,

Scott


-- 
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: scottm@somanetworks.com

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

* Re: [2.6 patch] drivers/pci/hotplug/ : simply use MODULE
  2004-12-11 16:54 [2.6 patch] drivers/pci/hotplug/ : simply use MODULE Adrian Bunk
  2004-12-13  0:11 ` Scott Murray
@ 2004-12-16 23:56 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2004-12-16 23:56 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: scottm, pcihpd-discuss, linux-kernel

On Sat, Dec 11, 2004 at 05:54:59PM +0100, Adrian Bunk wrote:
> The patch below lets five files under drivers/pci/hotplug/ simply use 
> MODULE to check whether they are compiled as part of a module.
> 
> MODULE is the common idiom for checking whether a file is built as part 
> of a module.
> 
> In theory, my patch shouldn't have made any difference, but if you look 
> closely, the previous #if's in cpcihp_generic.c and cpci_hotplug_pci.c 
> weren't correct.

Applied, thanks.

greg k-h

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

end of thread, other threads:[~2004-12-17  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-11 16:54 [2.6 patch] drivers/pci/hotplug/ : simply use MODULE Adrian Bunk
2004-12-13  0:11 ` Scott Murray
2004-12-16 23:56 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).