Skip to contentSkip to conversation

PCI: Assign values to 'pci_obff_signal_type' enumeration constants

PATCH Applied Myron Stowe 2 participants 2 messages Jul 7, 2011 – Jul 22, 2011 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: Assign values to 'pci_obff_signal_type' enumeration constants

From: Myron Stowe <[email protected]>

'pci_obff_signal_type' is passed between drivers and the kernel API. This patch explicitly assigns values to the enumeration type's constants which aids in detecting any future changes or additions that would break the kernel's ABI.

No functional change.

---

 include/linux/pci.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/pci.h +2 -2
index c446b5c..6e96015 100644
@@ -843,8 +843,8 @@ void pci_enable_ido(struct pci_dev *dev, unsigned long type);
 void pci_disable_ido(struct pci_dev *dev, unsigned long type);
 
 enum pci_obff_signal_type {
-	PCI_EXP_OBFF_SIGNAL_L0,
-	PCI_EXP_OBFF_SIGNAL_ALWAYS,
+	PCI_EXP_OBFF_SIGNAL_L0 = 0,
+	PCI_EXP_OBFF_SIGNAL_ALWAYS = 1,
 };
 int pci_enable_obff(struct pci_dev *dev, enum pci_obff_signal_type);
 void pci_disable_obff(struct pci_dev *dev);
Applied
#1 lore raw
Quoted 11 lines · On Thu, 07 Jul 2011 15:00:36 -0600 Myron Stowe <[email protected]> wrote:

From: Myron Stowe <[email protected]>

'pci_obff_signal_type' is passed between drivers and the kernel API. This patch explicitly assigns values to the enumeration type's constants which aids in detecting any future changes or additions that would break the kernel's ABI.

No functional change.

---

Applied, thanks.

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center