[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120106130523.2a904776@jbarnes-desktop>
Date: Fri, 6 Jan 2012 13:05:23 -0800
From: Jesse Barnes <jbarnes@...tuousgeek.org>
To: Yinghai Lu <yinghai@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org
Subject: Re: [PATCH] PCI: DEVICE_COUNT_RESOURCE should be equal to
PCI_NUM_RESOURCES
On Wed, 4 Jan 2012 15:49:45 -0800
Yinghai Lu <yinghai@...nel.org> wrote:
> Save some bytes for device resource array.
>
> Signed-off-by: Yinghai Lu <yinghai@...nel.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
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists