PCI Hotplug changes for 2.5.27
PATCH 1/1 PCI Hotplug changes for 2.5.27
Pull from: bk://linuxusb.bkbits.net/pci_hp-2.5
drivers/hotplug/cpqphp_core.c | 36 ++++++++--------- drivers/hotplug/cpqphp_pci.c | 8 +-- drivers/hotplug/ibmphp_core.c | 32 +++++++-------- drivers/hotplug/pci_hotplug_core.c | 3 + drivers/hotplug/pci_hotplug_util.c | 2 drivers/hotplug/pcihp_skeleton.c | 18 ++++---- drivers/hotplug/pci_hotplug_core.c | 74 +++++++++++++++++------------------ 7 files changed, 88 insertions(+), 85 deletions(-)
------
[email protected], 2002-07-24 10:31:53-07:00, [email protected]
[PATCH] drivers/hotplug designated initializers
The old form of designated initializers are obsolete: we need to replace them with the ISO C forms before 2.6. Gcc has always supported both forms anyway.
drivers/hotplug/cpqphp_core.c | 36 +++++++++--------- drivers/hotplug/cpqphp_pci.c | 8 ++-- drivers/hotplug/ibmphp_core.c | 32 ++++++++-------- drivers/hotplug/pci_hotplug_core.c | 72 ++++++++++++++++++------------------- drivers/hotplug/pcihp_skeleton.c | 18 ++++----- 5 files changed, 83 insertions(+), 83 deletions(-)
------
[email protected], 2002-07-07 11:32:52-07:00, [email protected]
PCI Hotplug: fix the dbg() macro to work properly on older versions of gcc
drivers/hotplug/pci_hotplug_core.c | 2 +- drivers/hotplug/pci_hotplug_util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
------
[email protected], 2002-07-07 11:28:15-07:00, [email protected]
PCI Hotplug: fix i_nlink for root inode in pcihpfs
drivers/hotplug/pci_hotplug_core.c | 3 +++ 1 files changed, 3 insertions(+)
------
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.403.129.5 -> 1.403.129.6
# drivers/hotplug/pci_hotplug_core.c 1.17 -> 1.18
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/07 [email protected] 1.403.129.6
# PCI Hotplug: fix i_nlink for root inode in pcihpfs
# --------------------------------------------
#
drivers/hotplug/pci_hotplug_core.c +3 -0
@@ -109,6 +109,9 @@case S_IFDIR : inode->i_op = &pcihpfs_dir_inode_operations; inode->i_fop = &simple_dir_operations; + +/* directory inodes start off with i_nlink == 2 (for "." entry) */ + inode->i_nlink++;break ; } }
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.403.129.6 -> 1.403.129.7
# drivers/hotplug/pci_hotplug_core.c 1.18 -> 1.19
# drivers/hotplug/pci_hotplug_util.c 1.2 -> 1.3
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/07 [email protected] 1.403.129.7
# PCI Hotplug: fix the dbg() macro to work properly on older versions of gcc # --------------------------------------------
#
drivers/hotplug/pci_hotplug_core.c +1 -1
@@ -48,7 +48,7 @@#define MY_NAME THIS_MODULE->name#endif -#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt, MY_NAME, __FUNCTION__, ## arg); } while (0) +#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __FUNCTION__ , ## arg); } while (0) #define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg) #define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg) #define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)
drivers/hotplug/pci_hotplug_util.c +1 -1
@@ -41,7 +41,7 @@#define MY_NAME THIS_MODULE->name#endif -#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt, MY_NAME, __FUNCTION__, ## arg); } while (0) +#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __FUNCTION__ , ## arg); } while (0) #define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg) #define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg) #define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.403.159.1 -> 1.403.159.2
# drivers/hotplug/cpqphp_core.c 1.5 -> 1.6
# drivers/hotplug/pci_hotplug_core.c 1.19 -> 1.20
# drivers/hotplug/ibmphp_core.c 1.7 -> 1.8
# drivers/hotplug/pcihp_skeleton.c 1.1 -> 1.2
# drivers/hotplug/cpqphp_pci.c 1.4 -> 1.5
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/24 [email protected] 1.403.159.2
# [PATCH] drivers/hotplug designated initializers
#
# The old form of designated initializers are obsolete: we need to # replace them with the ISO C forms before 2.6. Gcc has always supported # both forms anyway.
# --------------------------------------------
#
drivers/hotplug/cpqphp_core.c +18 -18
@@ -81,15 +81,15 @@static int get_adapter_status (struct hotplug_slot *slot,u8 *value);static struct hotplug_slot_ops cpqphp_hotplug_slot_ops = { - owner:THIS_MODULE , - set_attention_status: set_attention_status, - enable_slot: process_SI, - disable_slot: process_SS, - hardware_test: hardware_test, - get_power_status: get_power_status, - get_attention_status: get_attention_status, - get_latch_status: get_latch_status, - get_adapter_status: get_adapter_status, + .owner =THIS_MODULE , + .set_attention_status = set_attention_status, + .enable_slot = process_SI, + .disable_slot = process_SS, + .hardware_test = hardware_test, + .get_power_status = get_power_status, + .get_attention_status = get_attention_status, + .get_latch_status = get_latch_status, + .get_adapter_status = get_adapter_status, };
@@ -1387,14 +1387,14 @@static struct pci_device_id hpcd_pci_tbl[]__devinitdata = { {/* handle any PCI Hotplug controller */ - class: ((PCI_CLASS_SYSTEM_PCI_HOTPLUG <<8 ) |0x00 ), - class_mask: ~0 , + .class = ((PCI_CLASS_SYSTEM_PCI_HOTPLUG <<8 ) |0x00 ), + .class_mask = ~0 ,/* no matter who makes it */ - vendor:PCI_ANY_ID , - device:PCI_ANY_ID , - subvendor:PCI_ANY_ID , - subdevice:PCI_ANY_ID , + .vendor =PCI_ANY_ID , + .device =PCI_ANY_ID , + .subvendor =PCI_ANY_ID , + .subdevice =PCI_ANY_ID , }, {/* end: all zeroes */ } };
@@ -1404,9 +1404,9 @@static struct pci_driver cpqhpc_driver = { - name:"pci_hotplug" , - id_table: hpcd_pci_tbl, - probe: cpqhpc_probe, + .name ="pci_hotplug" , + .id_table = hpcd_pci_tbl, + .probe = cpqhpc_probe,/* remove: cpqhpc_remove_one, */ };
drivers/hotplug/cpqphp_pci.c +4 -4
@@ -232,17 +232,17 @@static struct pci_visit configure_functions = { - visit_pci_dev: configure_visit_pci_dev, + .visit_pci_dev = configure_visit_pci_dev, };static struct pci_visit unconfigure_functions_phase1 = { - post_visit_pci_dev: unconfigure_visit_pci_dev_phase1 + .post_visit_pci_dev = unconfigure_visit_pci_dev_phase1 };static struct pci_visit unconfigure_functions_phase2 = { - post_visit_pci_bus: unconfigure_visit_pci_bus_phase2, - post_visit_pci_dev: unconfigure_visit_pci_dev_phase2 + .post_visit_pci_bus = unconfigure_visit_pci_bus_phase2, + .post_visit_pci_dev = unconfigure_visit_pci_dev_phase2 };
drivers/hotplug/ibmphp_core.c +16 -16
@@ -893,12 +893,12 @@ }static struct pci_visit ibm_unconfigure_functions_phase1 = { - post_visit_pci_dev: ibm_unconfigure_visit_pci_dev_phase1, + .post_visit_pci_dev = ibm_unconfigure_visit_pci_dev_phase1, };static struct pci_visit ibm_unconfigure_functions_phase2 = { - post_visit_pci_bus: ibm_unconfigure_visit_pci_bus_phase2, - post_visit_pci_dev: ibm_unconfigure_visit_pci_dev_phase2, + .post_visit_pci_bus = ibm_unconfigure_visit_pci_bus_phase2, + .post_visit_pci_dev = ibm_unconfigure_visit_pci_dev_phase2, };static int ibm_unconfigure_device (struct pci_func *func)
@@ -962,7 +962,7 @@ }static struct pci_visit configure_functions = { - visit_pci_dev: configure_visit_pci_dev, + .visit_pci_dev =configure_visit_pci_dev, };static int ibm_configure_device (struct pci_func *func)
@@ -1494,19 +1494,19 @@ }struct hotplug_slot_ops ibmphp_hotplug_slot_ops = { - owner:THIS_MODULE , - set_attention_status: set_attention_status, - enable_slot: enable_slot, - disable_slot: ibmphp_disable_slot, - hardware_test:NULL , - get_power_status: get_power_status, - get_attention_status: get_attention_status, - get_latch_status: get_latch_status, - get_adapter_status: get_adapter_present, + .owner =THIS_MODULE , + .set_attention_status = set_attention_status, + .enable_slot = enable_slot, + .disable_slot = ibmphp_disable_slot, + .hardware_test =NULL , + .get_power_status = get_power_status, + .get_attention_status = get_attention_status, + .get_latch_status = get_latch_status, + .get_adapter_status = get_adapter_present,/* get_max_bus_speed_status: get_max_bus_speed, -get_max_adapter_speed_status: get_max_adapter_speed, -get_cur_bus_speed_status: get_cur_bus_speed, -get_card_bus_names_status: get_card_bus_names, +.get_max_adapter_speed_status = get_max_adapter_speed, +.get_cur_bus_speed_status = get_cur_bus_speed, +.get_card_bus_names_status = get_card_bus_names, */ };
drivers/hotplug/pci_hotplug_core.c +36 -36
117 lines not on this page · raw message
drivers/hotplug/pcihp_skeleton.c +9 -9
@@ -89,15 +89,15 @@static int get_adapter_status (struct hotplug_slot *slot,u8 *value);static struct hotplug_slot_ops skel_hotplug_slot_ops = { - owner:THIS_MODULE , - enable_slot: enable_slot, - disable_slot: disable_slot, - set_attention_status: set_attention_status, - hardware_test: hardware_test, - get_power_status: get_power_status, - get_attention_status: get_attention_status, - get_latch_status: get_latch_status, - get_adapter_status: get_adapter_status, + .owner =THIS_MODULE , + .enable_slot = enable_slot, + .disable_slot = disable_slot, + .set_attention_status = set_attention_status, + .hardware_test = hardware_test, + .get_power_status = get_power_status, + .get_attention_status = get_attention_status, + .get_latch_status = get_latch_status, + .get_adapter_status = get_adapter_status, };