From: Greg KH <gregkh@suse.de>
To: Shaohua Li <shaohua.li@intel.com>
Cc: Greg KH <greg@kroah.com>, Ingo Molnar <mingo@elte.hu>,
"Kok, Auke-jan H" <auke-jan.h.kok@intel.com>,
linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz,
matthew@wil.cx, "Pallipadi,
Venkatesh" <venkatesh.pallipadi@intel.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [bootup crash, -git] Re: patch pci-pcie-aspm-support.patchadded to gregkh-2.6 tree
Date: Tue, 19 Feb 2008 20:14:00 -0800 [thread overview]
Message-ID: <20080220041400.GA18771@suse.de> (raw)
In-Reply-To: <1203471367.21958.3.camel@sli10-desk.sh.intel.com>
On Wed, Feb 20, 2008 at 09:36:07AM +0800, Shaohua Li wrote:
> --- linux.orig/include/linux/pci-acpi.h 2008-02-19 11:03:51.000000000 +0800
> +++ linux/include/linux/pci-acpi.h 2008-02-20 09:19:15.000000000 +0800
> @@ -47,6 +47,7 @@
> OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL)
>
> #ifdef CONFIG_ACPI
> +#include <acpi/acpi_bus.h>
> extern acpi_status pci_osc_control_set(acpi_handle handle, u32 flags);
> extern acpi_status __pci_osc_support_set(u32 flags, const char *hid);
> static inline acpi_status pci_osc_support_set(u32 flags)
> @@ -59,13 +60,11 @@ static inline acpi_status pcie_osc_suppo
> }
> #else
> #if !defined(AE_ERROR)
> -typedef u32 acpi_status;
> -#define AE_ERROR (acpi_status) (0x0001)
> -#endif
> -static inline acpi_status pci_osc_control_set(acpi_handle handle, u32 flags)
> -{return AE_ERROR;}
> -static inline acpi_status pci_osc_support_set(u32 flags) {return AE_ERROR;}
> -static inline acpi_status pcie_osc_support_set(u32 flags) {return AE_ERROR;}
> +#define AE_ERROR (0x0001)
> +#endif
> +#define pci_osc_control_set(handle, flags) (AE_ERROR)
> +#define pci_osc_support_set(flags) (AE_ERROR)
> +#define pcie_osc_support_set(flags) (AE_ERROR)
No, please use inline functions, don't change these functions that
should be just fine. Why are you needing to change them?
thanks,
greg k-h
next prev parent reply other threads:[~2008-02-20 4:11 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-18 1:56 [PATCH]PCIE ASPM support - takes 3 Shaohua Li
2008-01-22 22:58 ` Greg KH
2008-01-23 2:20 ` Shaohua Li
2008-01-23 18:26 ` Greg KH
2008-01-24 2:21 ` Shaohua Li
2008-01-25 22:41 ` patch pci-pcie-aspm-support.patch added to gregkh-2.6 tree gregkh
2008-02-02 10:55 ` [bootup crash, -git] " Ingo Molnar
2008-02-02 18:51 ` Greg KH
2008-02-02 19:37 ` Ingo Molnar
2008-02-19 5:45 ` [bootup crash, -git] Re: patch pci-pcie-aspm-support.patchadded " Shaohua Li
2008-02-19 23:45 ` Greg KH
2008-02-20 1:36 ` Shaohua Li
2008-02-20 4:14 ` Greg KH [this message]
2008-02-20 4:48 ` Shaohua Li
2008-02-20 5:04 ` Greg KH
2008-02-20 5:24 ` Shaohua Li
2008-02-20 5:42 ` Greg KH
2008-02-20 6:21 ` Shaohua Li
2008-01-24 17:22 ` [PATCH]PCIE ASPM support - takes 3 Pavel Machek
2008-01-25 8:01 ` Li, Shaohua
2008-01-28 23:14 ` Kok, Auke
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=20080220041400.GA18771@suse.de \
--to=gregkh@suse.de \
--cc=akpm@linux-foundation.org \
--cc=auke-jan.h.kok@intel.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=matthew@wil.cx \
--cc=mingo@elte.hu \
--cc=shaohua.li@intel.com \
--cc=torvalds@linux-foundation.org \
--cc=venkatesh.pallipadi@intel.com \
/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 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.