From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Yinghai Lu <yinghai@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH] PCI: DEVICE_COUNT_RESOURCE should be equal to PCI_NUM_RESOURCES
Date: Fri, 6 Jan 2012 13:05:23 -0800 [thread overview]
Message-ID: <20120106130523.2a904776@jbarnes-desktop> (raw)
In-Reply-To: <1325720985-6051-1-git-send-email-yinghai@kernel.org>
[-- 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 --]
prev parent reply other threads:[~2012-01-06 21:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120106130523.2a904776@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).