linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: DEVICE_COUNT_RESOURCE should be equal to PCI_NUM_RESOURCES
@ 2012-01-04 23:49 Yinghai Lu
  2012-01-06 21:05 ` Jesse Barnes
  0 siblings, 1 reply; 2+ messages in thread
From: Yinghai Lu @ 2012-01-04 23:49 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-kernel, linux-pci, Yinghai Lu

Save some bytes for device resource array.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>

---
 include/linux/pci.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/include/linux/pci.h
===================================================================
--- linux-2.6.orig/include/linux/pci.h
+++ linux-2.6/include/linux/pci.h
@@ -111,7 +111,7 @@ enum {
 	PCI_NUM_RESOURCES,
 
 	/* preserve this for compatibility */
-	DEVICE_COUNT_RESOURCE
+	DEVICE_COUNT_RESOURCE = PCI_NUM_RESOURCES,
 };
 
 typedef int __bitwise pci_power_t;

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

* Re: [PATCH] PCI: DEVICE_COUNT_RESOURCE should be equal to PCI_NUM_RESOURCES
  2012-01-04 23:49 [PATCH] PCI: DEVICE_COUNT_RESOURCE should be equal to PCI_NUM_RESOURCES Yinghai Lu
@ 2012-01-06 21:05 ` Jesse Barnes
  0 siblings, 0 replies; 2+ messages in thread
From: Jesse Barnes @ 2012-01-06 21:05 UTC (permalink / raw)
  To: Yinghai Lu; +Cc: linux-kernel, linux-pci

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

On Wed,  4 Jan 2012 15:49:45 -0800
Yinghai Lu <yinghai@kernel.org> wrote:

> Save some bytes for device resource array.
> 
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> 
> ---
>  include/linux/pci.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux-2.6/include/linux/pci.h
> ===================================================================
> --- linux-2.6.orig/include/linux/pci.h
> +++ linux-2.6/include/linux/pci.h
> @@ -111,7 +111,7 @@ enum {
>  	PCI_NUM_RESOURCES,
>  
>  	/* preserve this for compatibility */
> -	DEVICE_COUNT_RESOURCE
> +	DEVICE_COUNT_RESOURCE = PCI_NUM_RESOURCES,
>  };
>  
>  typedef int __bitwise pci_power_t;

Not sure what this buys us by itself, but it's applied in preparation
for any upcoming cleanups.

-- 
Jesse Barnes, Intel Open Source Technology Center

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2012-01-06 21:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 23:49 [PATCH] PCI: DEVICE_COUNT_RESOURCE should be equal to PCI_NUM_RESOURCES Yinghai Lu
2012-01-06 21:05 ` Jesse Barnes

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).