diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2014-07-17 00:41:41 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-05 01:41:34 -0400 |
commit | 0dae27439acc75266d35c39970f1b5d80e0c596b (patch) | |
tree | b48e9630a866e6ad7d92ae201889f04badb00a67 | |
parent | 0ed352dddbfc1886dffa8b84e4b5ce4e6f6c2512 (diff) |
powerpc/eeh: Replace pr_warning() with pr_warn()
pr_warn() is equal to pr_warning(), but the former is a bit more
formal according to commit fc62f2f ("kernel.h: add pr_warn for
symmetry to dev_warn, netdev_warn").
The patch replaces pr_warning() with pr_warn().
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/kernel/eeh.c | 16 | ||||
-rw-r--r-- | arch/powerpc/kernel/eeh_cache.c | 7 | ||||
-rw-r--r-- | arch/powerpc/kernel/eeh_dev.c | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/eeh_driver.c | 16 | ||||
-rw-r--r-- | arch/powerpc/kernel/eeh_pe.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/eeh-ioda.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/eeh-powernv.c | 7 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_pseries.c | 28 |
8 files changed, 48 insertions, 44 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index afde50549ca2..02a67740b151 100644 --- a/arch/powerpc/kernel/eeh.c +++ b/arch/powerpc/kernel/eeh.c | |||
@@ -337,8 +337,8 @@ static int eeh_phb_check_failure(struct eeh_pe *pe) | |||
337 | /* Find the PHB PE */ | 337 | /* Find the PHB PE */ |
338 | phb_pe = eeh_phb_pe_get(pe->phb); | 338 | phb_pe = eeh_phb_pe_get(pe->phb); |
339 | if (!phb_pe) { | 339 | if (!phb_pe) { |
340 | pr_warning("%s Can't find PE for PHB#%d\n", | 340 | pr_warn("%s Can't find PE for PHB#%d\n", |
341 | __func__, pe->phb->global_number); | 341 | __func__, pe->phb->global_number); |
342 | return -EEXIST; | 342 | return -EEXIST; |
343 | } | 343 | } |
344 | 344 | ||
@@ -787,13 +787,13 @@ void eeh_save_bars(struct eeh_dev *edev) | |||
787 | int __init eeh_ops_register(struct eeh_ops *ops) | 787 | int __init eeh_ops_register(struct eeh_ops *ops) |
788 | { | 788 | { |
789 | if (!ops->name) { | 789 | if (!ops->name) { |
790 | pr_warning("%s: Invalid EEH ops name for %p\n", | 790 | pr_warn("%s: Invalid EEH ops name for %p\n", |
791 | __func__, ops); | 791 | __func__, ops); |
792 | return -EINVAL; | 792 | return -EINVAL; |
793 | } | 793 | } |
794 | 794 | ||
795 | if (eeh_ops && eeh_ops != ops) { | 795 | if (eeh_ops && eeh_ops != ops) { |
796 | pr_warning("%s: EEH ops of platform %s already existing (%s)\n", | 796 | pr_warn("%s: EEH ops of platform %s already existing (%s)\n", |
797 | __func__, eeh_ops->name, ops->name); | 797 | __func__, eeh_ops->name, ops->name); |
798 | return -EEXIST; | 798 | return -EEXIST; |
799 | } | 799 | } |
@@ -813,7 +813,7 @@ int __init eeh_ops_register(struct eeh_ops *ops) | |||
813 | int __exit eeh_ops_unregister(const char *name) | 813 | int __exit eeh_ops_unregister(const char *name) |
814 | { | 814 | { |
815 | if (!name || !strlen(name)) { | 815 | if (!name || !strlen(name)) { |
816 | pr_warning("%s: Invalid EEH ops name\n", | 816 | pr_warn("%s: Invalid EEH ops name\n", |
817 | __func__); | 817 | __func__); |
818 | return -EINVAL; | 818 | return -EINVAL; |
819 | } | 819 | } |
@@ -878,11 +878,11 @@ int eeh_init(void) | |||
878 | 878 | ||
879 | /* call platform initialization function */ | 879 | /* call platform initialization function */ |
880 | if (!eeh_ops) { | 880 | if (!eeh_ops) { |
881 | pr_warning("%s: Platform EEH operation not found\n", | 881 | pr_warn("%s: Platform EEH operation not found\n", |
882 | __func__); | 882 | __func__); |
883 | return -EEXIST; | 883 | return -EEXIST; |
884 | } else if ((ret = eeh_ops->init())) { | 884 | } else if ((ret = eeh_ops->init())) { |
885 | pr_warning("%s: Failed to call platform init function (%d)\n", | 885 | pr_warn("%s: Failed to call platform init function (%d)\n", |
886 | __func__, ret); | 886 | __func__, ret); |
887 | return ret; | 887 | return ret; |
888 | } | 888 | } |
@@ -923,7 +923,7 @@ int eeh_init(void) | |||
923 | if (eeh_enabled()) | 923 | if (eeh_enabled()) |
924 | pr_info("EEH: PCI Enhanced I/O Error Handling Enabled\n"); | 924 | pr_info("EEH: PCI Enhanced I/O Error Handling Enabled\n"); |
925 | else | 925 | else |
926 | pr_warning("EEH: No capable adapters found\n"); | 926 | pr_warn("EEH: No capable adapters found\n"); |
927 | 927 | ||
928 | return ret; | 928 | return ret; |
929 | } | 929 | } |
diff --git a/arch/powerpc/kernel/eeh_cache.c b/arch/powerpc/kernel/eeh_cache.c index 3639bee5d9ce..07d8a2423a61 100644 --- a/arch/powerpc/kernel/eeh_cache.c +++ b/arch/powerpc/kernel/eeh_cache.c | |||
@@ -143,7 +143,7 @@ eeh_addr_cache_insert(struct pci_dev *dev, unsigned long alo, | |||
143 | } else { | 143 | } else { |
144 | if (dev != piar->pcidev || | 144 | if (dev != piar->pcidev || |
145 | alo != piar->addr_lo || ahi != piar->addr_hi) { | 145 | alo != piar->addr_lo || ahi != piar->addr_hi) { |
146 | pr_warning("PIAR: overlapping address range\n"); | 146 | pr_warn("PIAR: overlapping address range\n"); |
147 | } | 147 | } |
148 | return piar; | 148 | return piar; |
149 | } | 149 | } |
@@ -177,13 +177,14 @@ static void __eeh_addr_cache_insert_dev(struct pci_dev *dev) | |||
177 | 177 | ||
178 | dn = pci_device_to_OF_node(dev); | 178 | dn = pci_device_to_OF_node(dev); |
179 | if (!dn) { | 179 | if (!dn) { |
180 | pr_warning("PCI: no pci dn found for dev=%s\n", pci_name(dev)); | 180 | pr_warn("PCI: no pci dn found for dev=%s\n", |
181 | pci_name(dev)); | ||
181 | return; | 182 | return; |
182 | } | 183 | } |
183 | 184 | ||
184 | edev = of_node_to_eeh_dev(dn); | 185 | edev = of_node_to_eeh_dev(dn); |
185 | if (!edev) { | 186 | if (!edev) { |
186 | pr_warning("PCI: no EEH dev found for dn=%s\n", | 187 | pr_warn("PCI: no EEH dev found for dn=%s\n", |
187 | dn->full_name); | 188 | dn->full_name); |
188 | return; | 189 | return; |
189 | } | 190 | } |
diff --git a/arch/powerpc/kernel/eeh_dev.c b/arch/powerpc/kernel/eeh_dev.c index 1efa28f5fc54..e5274ee9a75f 100644 --- a/arch/powerpc/kernel/eeh_dev.c +++ b/arch/powerpc/kernel/eeh_dev.c | |||
@@ -57,7 +57,8 @@ void *eeh_dev_init(struct device_node *dn, void *data) | |||
57 | /* Allocate EEH device */ | 57 | /* Allocate EEH device */ |
58 | edev = kzalloc(sizeof(*edev), GFP_KERNEL); | 58 | edev = kzalloc(sizeof(*edev), GFP_KERNEL); |
59 | if (!edev) { | 59 | if (!edev) { |
60 | pr_warning("%s: out of memory\n", __func__); | 60 | pr_warn("%s: out of memory\n", |
61 | __func__); | ||
61 | return NULL; | 62 | return NULL; |
62 | } | 63 | } |
63 | 64 | ||
diff --git a/arch/powerpc/kernel/eeh_driver.c b/arch/powerpc/kernel/eeh_driver.c index 420da61d4ce0..6a0dcee8e931 100644 --- a/arch/powerpc/kernel/eeh_driver.c +++ b/arch/powerpc/kernel/eeh_driver.c | |||
@@ -599,7 +599,7 @@ static void eeh_handle_normal_event(struct eeh_pe *pe) | |||
599 | pe->freeze_count++; | 599 | pe->freeze_count++; |
600 | if (pe->freeze_count > EEH_MAX_ALLOWED_FREEZES) | 600 | if (pe->freeze_count > EEH_MAX_ALLOWED_FREEZES) |
601 | goto excess_failures; | 601 | goto excess_failures; |
602 | pr_warning("EEH: This PCI device has failed %d times in the last hour\n", | 602 | pr_warn("EEH: This PCI device has failed %d times in the last hour\n", |
603 | pe->freeze_count); | 603 | pe->freeze_count); |
604 | 604 | ||
605 | /* Walk the various device drivers attached to this slot through | 605 | /* Walk the various device drivers attached to this slot through |
@@ -616,7 +616,7 @@ static void eeh_handle_normal_event(struct eeh_pe *pe) | |||
616 | */ | 616 | */ |
617 | rc = eeh_ops->wait_state(pe, MAX_WAIT_FOR_RECOVERY*1000); | 617 | rc = eeh_ops->wait_state(pe, MAX_WAIT_FOR_RECOVERY*1000); |
618 | if (rc < 0 || rc == EEH_STATE_NOT_SUPPORT) { | 618 | if (rc < 0 || rc == EEH_STATE_NOT_SUPPORT) { |
619 | pr_warning("EEH: Permanent failure\n"); | 619 | pr_warn("EEH: Permanent failure\n"); |
620 | goto hard_fail; | 620 | goto hard_fail; |
621 | } | 621 | } |
622 | 622 | ||
@@ -635,8 +635,8 @@ static void eeh_handle_normal_event(struct eeh_pe *pe) | |||
635 | pr_info("EEH: Reset with hotplug activity\n"); | 635 | pr_info("EEH: Reset with hotplug activity\n"); |
636 | rc = eeh_reset_device(pe, frozen_bus); | 636 | rc = eeh_reset_device(pe, frozen_bus); |
637 | if (rc) { | 637 | if (rc) { |
638 | pr_warning("%s: Unable to reset, err=%d\n", | 638 | pr_warn("%s: Unable to reset, err=%d\n", |
639 | __func__, rc); | 639 | __func__, rc); |
640 | goto hard_fail; | 640 | goto hard_fail; |
641 | } | 641 | } |
642 | } | 642 | } |
@@ -678,7 +678,7 @@ static void eeh_handle_normal_event(struct eeh_pe *pe) | |||
678 | 678 | ||
679 | /* If any device has a hard failure, then shut off everything. */ | 679 | /* If any device has a hard failure, then shut off everything. */ |
680 | if (result == PCI_ERS_RESULT_DISCONNECT) { | 680 | if (result == PCI_ERS_RESULT_DISCONNECT) { |
681 | pr_warning("EEH: Device driver gave up\n"); | 681 | pr_warn("EEH: Device driver gave up\n"); |
682 | goto hard_fail; | 682 | goto hard_fail; |
683 | } | 683 | } |
684 | 684 | ||
@@ -687,8 +687,8 @@ static void eeh_handle_normal_event(struct eeh_pe *pe) | |||
687 | pr_info("EEH: Reset without hotplug activity\n"); | 687 | pr_info("EEH: Reset without hotplug activity\n"); |
688 | rc = eeh_reset_device(pe, NULL); | 688 | rc = eeh_reset_device(pe, NULL); |
689 | if (rc) { | 689 | if (rc) { |
690 | pr_warning("%s: Cannot reset, err=%d\n", | 690 | pr_warn("%s: Cannot reset, err=%d\n", |
691 | __func__, rc); | 691 | __func__, rc); |
692 | goto hard_fail; | 692 | goto hard_fail; |
693 | } | 693 | } |
694 | 694 | ||
@@ -701,7 +701,7 @@ static void eeh_handle_normal_event(struct eeh_pe *pe) | |||
701 | /* All devices should claim they have recovered by now. */ | 701 | /* All devices should claim they have recovered by now. */ |
702 | if ((result != PCI_ERS_RESULT_RECOVERED) && | 702 | if ((result != PCI_ERS_RESULT_RECOVERED) && |
703 | (result != PCI_ERS_RESULT_NONE)) { | 703 | (result != PCI_ERS_RESULT_NONE)) { |
704 | pr_warning("EEH: Not recovered\n"); | 704 | pr_warn("EEH: Not recovered\n"); |
705 | goto hard_fail; | 705 | goto hard_fail; |
706 | } | 706 | } |
707 | 707 | ||
diff --git a/arch/powerpc/kernel/eeh_pe.c b/arch/powerpc/kernel/eeh_pe.c index 418d79c9eaa4..77632abf6a75 100644 --- a/arch/powerpc/kernel/eeh_pe.c +++ b/arch/powerpc/kernel/eeh_pe.c | |||
@@ -179,7 +179,8 @@ void *eeh_pe_dev_traverse(struct eeh_pe *root, | |||
179 | void *ret; | 179 | void *ret; |
180 | 180 | ||
181 | if (!root) { | 181 | if (!root) { |
182 | pr_warning("%s: Invalid PE %p\n", __func__, root); | 182 | pr_warn("%s: Invalid PE %p\n", |
183 | __func__, root); | ||
183 | return NULL; | 184 | return NULL; |
184 | } | 185 | } |
185 | 186 | ||
diff --git a/arch/powerpc/platforms/powernv/eeh-ioda.c b/arch/powerpc/platforms/powernv/eeh-ioda.c index f6abdb11ee84..5ab61b78dfc6 100644 --- a/arch/powerpc/platforms/powernv/eeh-ioda.c +++ b/arch/powerpc/platforms/powernv/eeh-ioda.c | |||
@@ -247,8 +247,8 @@ static void ioda_eeh_phb_diag(struct pci_controller *hose) | |||
247 | rc = opal_pci_get_phb_diag_data2(phb->opal_id, phb->diag.blob, | 247 | rc = opal_pci_get_phb_diag_data2(phb->opal_id, phb->diag.blob, |
248 | PNV_PCI_DIAG_BUF_SIZE); | 248 | PNV_PCI_DIAG_BUF_SIZE); |
249 | if (rc != OPAL_SUCCESS) { | 249 | if (rc != OPAL_SUCCESS) { |
250 | pr_warning("%s: Failed to get diag-data for PHB#%x (%ld)\n", | 250 | pr_warn("%s: Failed to get diag-data for PHB#%x (%ld)\n", |
251 | __func__, hose->global_number, rc); | 251 | __func__, hose->global_number, rc); |
252 | return; | 252 | return; |
253 | } | 253 | } |
254 | 254 | ||
@@ -627,8 +627,8 @@ static void ioda_eeh_hub_diag(struct pci_controller *hose) | |||
627 | 627 | ||
628 | rc = opal_pci_get_hub_diag_data(phb->hub_id, data, sizeof(*data)); | 628 | rc = opal_pci_get_hub_diag_data(phb->hub_id, data, sizeof(*data)); |
629 | if (rc != OPAL_SUCCESS) { | 629 | if (rc != OPAL_SUCCESS) { |
630 | pr_warning("%s: Failed to get HUB#%llx diag-data (%ld)\n", | 630 | pr_warn("%s: Failed to get HUB#%llx diag-data (%ld)\n", |
631 | __func__, phb->hub_id, rc); | 631 | __func__, phb->hub_id, rc); |
632 | return; | 632 | return; |
633 | } | 633 | } |
634 | 634 | ||
@@ -664,8 +664,8 @@ static void ioda_eeh_hub_diag(struct pci_controller *hose) | |||
664 | ioda_eeh_hub_diag_common(data); | 664 | ioda_eeh_hub_diag_common(data); |
665 | break; | 665 | break; |
666 | default: | 666 | default: |
667 | pr_warning("%s: Invalid type of HUB#%llx diag-data (%d)\n", | 667 | pr_warn("%s: Invalid type of HUB#%llx diag-data (%d)\n", |
668 | __func__, phb->hub_id, data->type); | 668 | __func__, phb->hub_id, data->type); |
669 | } | 669 | } |
670 | } | 670 | } |
671 | 671 | ||
diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch/powerpc/platforms/powernv/eeh-powernv.c index 0401f84f7b89..4a113f3c9171 100644 --- a/arch/powerpc/platforms/powernv/eeh-powernv.c +++ b/arch/powerpc/platforms/powernv/eeh-powernv.c | |||
@@ -50,7 +50,8 @@ static int powernv_eeh_init(void) | |||
50 | 50 | ||
51 | /* We require OPALv3 */ | 51 | /* We require OPALv3 */ |
52 | if (!firmware_has_feature(FW_FEATURE_OPALv3)) { | 52 | if (!firmware_has_feature(FW_FEATURE_OPALv3)) { |
53 | pr_warning("%s: OPALv3 is required !\n", __func__); | 53 | pr_warn("%s: OPALv3 is required !\n", |
54 | __func__); | ||
54 | return -EINVAL; | 55 | return -EINVAL; |
55 | } | 56 | } |
56 | 57 | ||
@@ -304,8 +305,8 @@ static int powernv_eeh_wait_state(struct eeh_pe *pe, int max_wait) | |||
304 | 305 | ||
305 | max_wait -= mwait; | 306 | max_wait -= mwait; |
306 | if (max_wait <= 0) { | 307 | if (max_wait <= 0) { |
307 | pr_warning("%s: Timeout getting PE#%x's state (%d)\n", | 308 | pr_warn("%s: Timeout getting PE#%x's state (%d)\n", |
308 | __func__, pe->addr, max_wait); | 309 | __func__, pe->addr, max_wait); |
309 | return EEH_STATE_NOT_SUPPORT; | 310 | return EEH_STATE_NOT_SUPPORT; |
310 | } | 311 | } |
311 | 312 | ||
diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c index dd1874ca56d9..b08053819d99 100644 --- a/arch/powerpc/platforms/pseries/eeh_pseries.c +++ b/arch/powerpc/platforms/pseries/eeh_pseries.c | |||
@@ -89,26 +89,26 @@ static int pseries_eeh_init(void) | |||
89 | * of domain/bus/slot/function for EEH RTAS operations. | 89 | * of domain/bus/slot/function for EEH RTAS operations. |
90 | */ | 90 | */ |
91 | if (ibm_set_eeh_option == RTAS_UNKNOWN_SERVICE) { | 91 | if (ibm_set_eeh_option == RTAS_UNKNOWN_SERVICE) { |
92 | pr_warning("%s: RTAS service <ibm,set-eeh-option> invalid\n", | 92 | pr_warn("%s: RTAS service <ibm,set-eeh-option> invalid\n", |
93 | __func__); | 93 | __func__); |
94 | return -EINVAL; | 94 | return -EINVAL; |
95 | } else if (ibm_set_slot_reset == RTAS_UNKNOWN_SERVICE) { | 95 | } else if (ibm_set_slot_reset == RTAS_UNKNOWN_SERVICE) { |
96 | pr_warning("%s: RTAS service <ibm,set-slot-reset> invalid\n", | 96 | pr_warn("%s: RTAS service <ibm,set-slot-reset> invalid\n", |
97 | __func__); | 97 | __func__); |
98 | return -EINVAL; | 98 | return -EINVAL; |
99 | } else if (ibm_read_slot_reset_state2 == RTAS_UNKNOWN_SERVICE && | 99 | } else if (ibm_read_slot_reset_state2 == RTAS_UNKNOWN_SERVICE && |
100 | ibm_read_slot_reset_state == RTAS_UNKNOWN_SERVICE) { | 100 | ibm_read_slot_reset_state == RTAS_UNKNOWN_SERVICE) { |
101 | pr_warning("%s: RTAS service <ibm,read-slot-reset-state2> and " | 101 | pr_warn("%s: RTAS service <ibm,read-slot-reset-state2> and " |
102 | "<ibm,read-slot-reset-state> invalid\n", | 102 | "<ibm,read-slot-reset-state> invalid\n", |
103 | __func__); | 103 | __func__); |
104 | return -EINVAL; | 104 | return -EINVAL; |
105 | } else if (ibm_slot_error_detail == RTAS_UNKNOWN_SERVICE) { | 105 | } else if (ibm_slot_error_detail == RTAS_UNKNOWN_SERVICE) { |
106 | pr_warning("%s: RTAS service <ibm,slot-error-detail> invalid\n", | 106 | pr_warn("%s: RTAS service <ibm,slot-error-detail> invalid\n", |
107 | __func__); | 107 | __func__); |
108 | return -EINVAL; | 108 | return -EINVAL; |
109 | } else if (ibm_configure_pe == RTAS_UNKNOWN_SERVICE && | 109 | } else if (ibm_configure_pe == RTAS_UNKNOWN_SERVICE && |
110 | ibm_configure_bridge == RTAS_UNKNOWN_SERVICE) { | 110 | ibm_configure_bridge == RTAS_UNKNOWN_SERVICE) { |
111 | pr_warning("%s: RTAS service <ibm,configure-pe> and " | 111 | pr_warn("%s: RTAS service <ibm,configure-pe> and " |
112 | "<ibm,configure-bridge> invalid\n", | 112 | "<ibm,configure-bridge> invalid\n", |
113 | __func__); | 113 | __func__); |
114 | return -EINVAL; | 114 | return -EINVAL; |
@@ -118,11 +118,11 @@ static int pseries_eeh_init(void) | |||
118 | spin_lock_init(&slot_errbuf_lock); | 118 | spin_lock_init(&slot_errbuf_lock); |
119 | eeh_error_buf_size = rtas_token("rtas-error-log-max"); | 119 | eeh_error_buf_size = rtas_token("rtas-error-log-max"); |
120 | if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) { | 120 | if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) { |
121 | pr_warning("%s: unknown EEH error log size\n", | 121 | pr_warn("%s: unknown EEH error log size\n", |
122 | __func__); | 122 | __func__); |
123 | eeh_error_buf_size = 1024; | 123 | eeh_error_buf_size = 1024; |
124 | } else if (eeh_error_buf_size > RTAS_ERROR_LOG_MAX) { | 124 | } else if (eeh_error_buf_size > RTAS_ERROR_LOG_MAX) { |
125 | pr_warning("%s: EEH error log size %d exceeds the maximal %d\n", | 125 | pr_warn("%s: EEH error log size %d exceeds the maximal %d\n", |
126 | __func__, eeh_error_buf_size, RTAS_ERROR_LOG_MAX); | 126 | __func__, eeh_error_buf_size, RTAS_ERROR_LOG_MAX); |
127 | eeh_error_buf_size = RTAS_ERROR_LOG_MAX; | 127 | eeh_error_buf_size = RTAS_ERROR_LOG_MAX; |
128 | } | 128 | } |
@@ -270,7 +270,7 @@ static void *pseries_eeh_of_probe(struct device_node *dn, void *flag) | |||
270 | /* Retrieve the device address */ | 270 | /* Retrieve the device address */ |
271 | regs = of_get_property(dn, "reg", NULL); | 271 | regs = of_get_property(dn, "reg", NULL); |
272 | if (!regs) { | 272 | if (!regs) { |
273 | pr_warning("%s: OF node property %s::reg not found\n", | 273 | pr_warn("%s: OF node property %s::reg not found\n", |
274 | __func__, dn->full_name); | 274 | __func__, dn->full_name); |
275 | return NULL; | 275 | return NULL; |
276 | } | 276 | } |
@@ -398,7 +398,7 @@ static int pseries_eeh_get_pe_addr(struct eeh_pe *pe) | |||
398 | pe->config_addr, BUID_HI(pe->phb->buid), | 398 | pe->config_addr, BUID_HI(pe->phb->buid), |
399 | BUID_LO(pe->phb->buid), 0); | 399 | BUID_LO(pe->phb->buid), 0); |
400 | if (ret) { | 400 | if (ret) { |
401 | pr_warning("%s: Failed to get address for PHB#%d-PE#%x\n", | 401 | pr_warn("%s: Failed to get address for PHB#%d-PE#%x\n", |
402 | __func__, pe->phb->global_number, pe->config_addr); | 402 | __func__, pe->phb->global_number, pe->config_addr); |
403 | return 0; | 403 | return 0; |
404 | } | 404 | } |
@@ -411,7 +411,7 @@ static int pseries_eeh_get_pe_addr(struct eeh_pe *pe) | |||
411 | pe->config_addr, BUID_HI(pe->phb->buid), | 411 | pe->config_addr, BUID_HI(pe->phb->buid), |
412 | BUID_LO(pe->phb->buid), 0); | 412 | BUID_LO(pe->phb->buid), 0); |
413 | if (ret) { | 413 | if (ret) { |
414 | pr_warning("%s: Failed to get address for PHB#%d-PE#%x\n", | 414 | pr_warn("%s: Failed to get address for PHB#%d-PE#%x\n", |
415 | __func__, pe->phb->global_number, pe->config_addr); | 415 | __func__, pe->phb->global_number, pe->config_addr); |
416 | return 0; | 416 | return 0; |
417 | } | 417 | } |
@@ -584,17 +584,17 @@ static int pseries_eeh_wait_state(struct eeh_pe *pe, int max_wait) | |||
584 | return ret; | 584 | return ret; |
585 | 585 | ||
586 | if (max_wait <= 0) { | 586 | if (max_wait <= 0) { |
587 | pr_warning("%s: Timeout when getting PE's state (%d)\n", | 587 | pr_warn("%s: Timeout when getting PE's state (%d)\n", |
588 | __func__, max_wait); | 588 | __func__, max_wait); |
589 | return EEH_STATE_NOT_SUPPORT; | 589 | return EEH_STATE_NOT_SUPPORT; |
590 | } | 590 | } |
591 | 591 | ||
592 | if (mwait <= 0) { | 592 | if (mwait <= 0) { |
593 | pr_warning("%s: Firmware returned bad wait value %d\n", | 593 | pr_warn("%s: Firmware returned bad wait value %d\n", |
594 | __func__, mwait); | 594 | __func__, mwait); |
595 | mwait = EEH_STATE_MIN_WAIT_TIME; | 595 | mwait = EEH_STATE_MIN_WAIT_TIME; |
596 | } else if (mwait > EEH_STATE_MAX_WAIT_TIME) { | 596 | } else if (mwait > EEH_STATE_MAX_WAIT_TIME) { |
597 | pr_warning("%s: Firmware returned too long wait value %d\n", | 597 | pr_warn("%s: Firmware returned too long wait value %d\n", |
598 | __func__, mwait); | 598 | __func__, mwait); |
599 | mwait = EEH_STATE_MAX_WAIT_TIME; | 599 | mwait = EEH_STATE_MAX_WAIT_TIME; |
600 | } | 600 | } |
@@ -675,7 +675,7 @@ static int pseries_eeh_configure_bridge(struct eeh_pe *pe) | |||
675 | } | 675 | } |
676 | 676 | ||
677 | if (ret) | 677 | if (ret) |
678 | pr_warning("%s: Unable to configure bridge PHB#%d-PE#%x (%d)\n", | 678 | pr_warn("%s: Unable to configure bridge PHB#%d-PE#%x (%d)\n", |
679 | __func__, pe->phb->global_number, pe->addr, ret); | 679 | __func__, pe->phb->global_number, pe->addr, ret); |
680 | 680 | ||
681 | return ret; | 681 | return ret; |