mips: Convert pr_warning to pr_warn
authorJoe Perches <joe@perches.com>
Sat, 4 Oct 2014 16:50:42 +0000 (09:50 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:44:51 +0000 (07:44 +0100)
Use the much more common pr_warn instead of pr_warning
with the goal of removing pr_warning eventually.

Other miscellanea:

o Coalesce formats
o Realign arguments

Signed-off-by: Joe Perches <joe@perches.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Patchwork: https://patchwork.linux-mips.org/patch/7935/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ar7/platform.c
arch/mips/include/asm/octeon/cvmx-pow.h
arch/mips/kernel/crash_dump.c
arch/mips/kernel/perf_event_mipsxx.c
arch/mips/kernel/setup.c
arch/mips/pci/pci-tx4939.c
arch/mips/txx9/generic/setup_tx4927.c
arch/mips/txx9/generic/setup_tx4938.c
arch/mips/txx9/generic/setup_tx4939.c

index 7e2356fd5fd65eee45fe5838730a772bfcd2aeb8..af2441dbfc127e5e93c2e07aab8ce2319cb20e5d 100644 (file)
@@ -311,8 +311,7 @@ static void __init cpmac_get_mac(int instance, unsigned char *dev_addr)
                                        &dev_addr[0], &dev_addr[1],
                                        &dev_addr[2], &dev_addr[3],
                                        &dev_addr[4], &dev_addr[5]) != 6) {
-                       pr_warning("cannot parse mac address, "
-                                       "using random address\n");
+                       pr_warn("cannot parse mac address, using random address\n");
                        eth_random_addr(dev_addr);
                }
        } else
@@ -665,7 +664,7 @@ static int __init ar7_register_devices(void)
 
        res = platform_device_register(&physmap_flash);
        if (res)
-               pr_warning("unable to register physmap-flash: %d\n", res);
+               pr_warn("unable to register physmap-flash: %d\n", res);
 
        if (ar7_is_titan())
                titan_fixup_devices();
@@ -673,13 +672,13 @@ static int __init ar7_register_devices(void)
        ar7_device_disable(vlynq_low_data.reset_bit);
        res = platform_device_register(&vlynq_low);
        if (res)
-               pr_warning("unable to register vlynq-low: %d\n", res);
+               pr_warn("unable to register vlynq-low: %d\n", res);
 
        if (ar7_has_high_vlynq()) {
                ar7_device_disable(vlynq_high_data.reset_bit);
                res = platform_device_register(&vlynq_high);
                if (res)
-                       pr_warning("unable to register vlynq-high: %d\n", res);
+                       pr_warn("unable to register vlynq-high: %d\n", res);
        }
 
        if (ar7_has_high_cpmac()) {
@@ -689,9 +688,10 @@ static int __init ar7_register_devices(void)
 
                        res = platform_device_register(&cpmac_high);
                        if (res)
-                               pr_warning("unable to register cpmac-high: %d\n", res);
+                               pr_warn("unable to register cpmac-high: %d\n",
+                                       res);
                } else
-                       pr_warning("unable to add cpmac-high phy: %d\n", res);
+                       pr_warn("unable to add cpmac-high phy: %d\n", res);
        } else
                cpmac_low_data.phy_mask = 0xffffffff;
 
@@ -700,18 +700,18 @@ static int __init ar7_register_devices(void)
                cpmac_get_mac(0, cpmac_low_data.dev_addr);
                res = platform_device_register(&cpmac_low);
                if (res)
-                       pr_warning("unable to register cpmac-low: %d\n", res);
+                       pr_warn("unable to register cpmac-low: %d\n", res);
        } else
-               pr_warning("unable to add cpmac-low phy: %d\n", res);
+               pr_warn("unable to add cpmac-low phy: %d\n", res);
 
        detect_leds();
        res = platform_device_register(&ar7_gpio_leds);
        if (res)
-               pr_warning("unable to register leds: %d\n", res);
+               pr_warn("unable to register leds: %d\n", res);
 
        res = platform_device_register(&ar7_udc);
        if (res)
-               pr_warning("unable to register usb slave: %d\n", res);
+               pr_warn("unable to register usb slave: %d\n", res);
 
        /* Register watchdog only if enabled in hardware */
        bootcr = ioremap_nocache(AR7_REGS_DCL, 4);
@@ -726,7 +726,7 @@ static int __init ar7_register_devices(void)
                ar7_wdt_res.end = ar7_wdt_res.start + 0x20;
                res = platform_device_register(&ar7_wdt);
                if (res)
-                       pr_warning("unable to register watchdog: %d\n", res);
+                       pr_warn("unable to register watchdog: %d\n", res);
        }
 
        return 0;
index 4b4d0ecfd9eb70672bffcf45ea747bf3676e33cd..2188e65afb86fa18a83a36ef91199904352efa9f 100644 (file)
@@ -1066,7 +1066,7 @@ static inline void __cvmx_pow_warn_if_pending_switch(const char *function)
        uint64_t switch_complete;
        CVMX_MF_CHORD(switch_complete);
        if (!switch_complete)
-               pr_warning("%s called with tag switch in progress\n", function);
+               pr_warn("%s called with tag switch in progress\n", function);
 }
 
 /**
@@ -1084,8 +1084,7 @@ static inline void cvmx_pow_tag_sw_wait(void)
                if (unlikely(switch_complete))
                        break;
                if (unlikely(cvmx_get_cycle() > start_cycle + MAX_CYCLES)) {
-                       pr_warning("Tag switch is taking a long time, "
-                                  "possible deadlock\n");
+                       pr_warn("Tag switch is taking a long time, possible deadlock\n");
                        start_cycle = -MAX_CYCLES - 1;
                }
        }
@@ -1296,19 +1295,16 @@ static inline void cvmx_pow_tag_sw_nocheck(uint32_t tag,
                __cvmx_pow_warn_if_pending_switch(__func__);
                current_tag = cvmx_pow_get_current_tag();
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL)
-                       pr_warning("%s called with NULL_NULL tag\n",
-                                  __func__);
+                       pr_warn("%s called with NULL_NULL tag\n", __func__);
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL)
-                       pr_warning("%s called with NULL tag\n", __func__);
+                       pr_warn("%s called with NULL tag\n", __func__);
                if ((current_tag.s.type == tag_type)
                   && (current_tag.s.tag == tag))
-                       pr_warning("%s called to perform a tag switch to the "
-                                  "same tag\n",
-                            __func__);
+                       pr_warn("%s called to perform a tag switch to the same tag\n",
+                               __func__);
                if (tag_type == CVMX_POW_TAG_TYPE_NULL)
-                       pr_warning("%s called to perform a tag switch to "
-                                  "NULL. Use cvmx_pow_tag_sw_null() instead\n",
-                            __func__);
+                       pr_warn("%s called to perform a tag switch to NULL. Use cvmx_pow_tag_sw_null() instead\n",
+                               __func__);
        }
 
        /*
@@ -1407,23 +1403,19 @@ static inline void cvmx_pow_tag_sw_full_nocheck(cvmx_wqe_t *wqp, uint32_t tag,
                __cvmx_pow_warn_if_pending_switch(__func__);
                current_tag = cvmx_pow_get_current_tag();
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL)
-                       pr_warning("%s called with NULL_NULL tag\n",
-                                  __func__);
+                       pr_warn("%s called with NULL_NULL tag\n", __func__);
                if ((current_tag.s.type == tag_type)
                   && (current_tag.s.tag == tag))
-                       pr_warning("%s called to perform a tag switch to "
-                                  "the same tag\n",
-                            __func__);
+                       pr_warn("%s called to perform a tag switch to the same tag\n",
+                               __func__);
                if (tag_type == CVMX_POW_TAG_TYPE_NULL)
-                       pr_warning("%s called to perform a tag switch to "
-                                  "NULL. Use cvmx_pow_tag_sw_null() instead\n",
-                            __func__);
+                       pr_warn("%s called to perform a tag switch to NULL. Use cvmx_pow_tag_sw_null() instead\n",
+                               __func__);
                if (wqp != cvmx_phys_to_ptr(0x80))
                        if (wqp != cvmx_pow_get_current_wqp())
-                               pr_warning("%s passed WQE(%p) doesn't match "
-                                          "the address in the POW(%p)\n",
-                                    __func__, wqp,
-                                    cvmx_pow_get_current_wqp());
+                               pr_warn("%s passed WQE(%p) doesn't match the address in the POW(%p)\n",
+                                       __func__, wqp,
+                                       cvmx_pow_get_current_wqp());
        }
 
        /*
@@ -1507,12 +1499,10 @@ static inline void cvmx_pow_tag_sw_null_nocheck(void)
                __cvmx_pow_warn_if_pending_switch(__func__);
                current_tag = cvmx_pow_get_current_tag();
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL)
-                       pr_warning("%s called with NULL_NULL tag\n",
-                                  __func__);
+                       pr_warn("%s called with NULL_NULL tag\n", __func__);
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL)
-                       pr_warning("%s called when we already have a "
-                                  "NULL tag\n",
-                            __func__);
+                       pr_warn("%s called when we already have a NULL tag\n",
+                               __func__);
        }
 
        tag_req.u64 = 0;
@@ -1725,17 +1715,14 @@ static inline void cvmx_pow_tag_sw_desched_nocheck(
                __cvmx_pow_warn_if_pending_switch(__func__);
                current_tag = cvmx_pow_get_current_tag();
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL)
-                       pr_warning("%s called with NULL_NULL tag\n",
-                                  __func__);
+                       pr_warn("%s called with NULL_NULL tag\n", __func__);
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL)
-                       pr_warning("%s called with NULL tag. Deschedule not "
-                                  "allowed from NULL state\n",
-                            __func__);
+                       pr_warn("%s called with NULL tag. Deschedule not allowed from NULL state\n",
+                               __func__);
                if ((current_tag.s.type != CVMX_POW_TAG_TYPE_ATOMIC)
                        && (tag_type != CVMX_POW_TAG_TYPE_ATOMIC))
-                       pr_warning("%s called where neither the before or "
-                                  "after tag is ATOMIC\n",
-                            __func__);
+                       pr_warn("%s called where neither the before or after tag is ATOMIC\n",
+                               __func__);
        }
 
        tag_req.u64 = 0;
@@ -1832,12 +1819,10 @@ static inline void cvmx_pow_desched(uint64_t no_sched)
                __cvmx_pow_warn_if_pending_switch(__func__);
                current_tag = cvmx_pow_get_current_tag();
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL)
-                       pr_warning("%s called with NULL_NULL tag\n",
-                                  __func__);
+                       pr_warn("%s called with NULL_NULL tag\n", __func__);
                if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL)
-                       pr_warning("%s called with NULL tag. Deschedule not "
-                                  "expected from NULL state\n",
-                            __func__);
+                       pr_warn("%s called with NULL tag. Deschedule not expected from NULL state\n",
+                               __func__);
        }
 
        /* Need to make sure any writes to the work queue entry are complete */
index f291cf99b03ae30e550ce73ab2784690460102c0..6fe7790e5868e71812dc30f552590452248aca34 100644 (file)
@@ -38,7 +38,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,
                kunmap_atomic(vaddr);
        } else {
                if (!kdump_buf_page) {
-                       pr_warning("Kdump: Kdump buffer page not allocated\n");
+                       pr_warn("Kdump: Kdump buffer page not allocated\n");
 
                        return -EFAULT;
                }
@@ -57,7 +57,7 @@ static int __init kdump_buf_page_init(void)
 
        kdump_buf_page = kmalloc(PAGE_SIZE, GFP_KERNEL);
        if (!kdump_buf_page) {
-               pr_warning("Kdump: Failed to allocate kdump buffer page\n");
+               pr_warn("Kdump: Failed to allocate kdump buffer page\n");
                ret = -ENOMEM;
        }
 
index a8f9cdc6f8b0417583d7433c116e1916cf5b7f7d..7633d30550e9bd1e6022a24b6bcbafd5b9477479 100644 (file)
@@ -561,8 +561,8 @@ static int mipspmu_get_irq(void)
                        IRQF_PERCPU | IRQF_NOBALANCING | IRQF_NO_THREAD,
                        "mips_perf_pmu", NULL);
                if (err) {
-                       pr_warning("Unable to request IRQ%d for MIPS "
-                          "performance counters!\n", mipspmu.irq);
+                       pr_warn("Unable to request IRQ%d for MIPS performance counters!\n",
+                               mipspmu.irq);
                }
        } else if (cp0_perfcount_irq < 0) {
                /*
@@ -572,8 +572,7 @@ static int mipspmu_get_irq(void)
                perf_irq = mipsxx_pmu_handle_shared_irq;
                err = 0;
        } else {
-               pr_warning("The platform hasn't properly defined its "
-                       "interrupt controller.\n");
+               pr_warn("The platform hasn't properly defined its interrupt controller\n");
                err = -ENOENT;
        }
 
index d21ec57b6e952046db450d48929161b76b0710e3..eacfd7dbe8cca172b5e4b82152cfbb5d9e640de6 100644 (file)
@@ -89,7 +89,7 @@ void __init add_memory_region(phys_t start, phys_t size, long type)
 
        /* Sanity check */
        if (start + size < start) {
-               pr_warning("Trying to add an invalid memory region, skipped\n");
+               pr_warn("Trying to add an invalid memory region, skipped\n");
                return;
        }
 
index c10fbf2a19dc761ec16095e4f8fddb0c62e8cb3d..cd8ed09c4f5302ffad25822ad3f20a554c6a5dd1 100644 (file)
@@ -103,5 +103,5 @@ void __init tx4939_setup_pcierr_irq(void)
                        tx4927_pcierr_interrupt,
                        0, "PCI error",
                        (void *)TX4939_PCIC_REG))
-               pr_warning("Failed to request irq for PCIERR\n");
+               pr_warn("Failed to request irq for PCIERR\n");
 }
index e714d6ce9a824e8c24b81278e57a0a426b2f796f..a4664cb6c1e183712c2f60a430e082f231b27ddc 100644 (file)
@@ -29,8 +29,8 @@ static void __init tx4927_wdr_init(void)
 {
        /* report watchdog reset status */
        if (____raw_readq(&tx4927_ccfgptr->ccfg) & TX4927_CCFG_WDRST)
-               pr_warning("Watchdog reset detected at 0x%lx\n",
-                          read_c0_errorepc());
+               pr_warn("Watchdog reset detected at 0x%lx\n",
+                       read_c0_errorepc());
        /* clear WatchDogReset (W1C) */
        tx4927_ccfg_set(TX4927_CCFG_WDRST);
        /* do reset on watchdog */
index 0a3bf2dfaba1cc8dc9350abfe9090c944e297e17..58cdb2aba5e1ba72cac3235974919eb26ffad254 100644 (file)
@@ -31,8 +31,8 @@ static void __init tx4938_wdr_init(void)
 {
        /* report watchdog reset status */
        if (____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_WDRST)
-               pr_warning("Watchdog reset detected at 0x%lx\n",
-                          read_c0_errorepc());
+               pr_warn("Watchdog reset detected at 0x%lx\n",
+                       read_c0_errorepc());
        /* clear WatchDogReset (W1C) */
        tx4938_ccfg_set(TX4938_CCFG_WDRST);
        /* do reset on watchdog */
index b7eccbd17bf7e72d3ec78250ecc0bc80f606b504..e3733cde50d6f5caa82fda165c7971946001a8ed 100644 (file)
@@ -35,8 +35,8 @@ static void __init tx4939_wdr_init(void)
 {
        /* report watchdog reset status */
        if (____raw_readq(&tx4939_ccfgptr->ccfg) & TX4939_CCFG_WDRST)
-               pr_warning("Watchdog reset detected at 0x%lx\n",
-                          read_c0_errorepc());
+               pr_warn("Watchdog reset detected at 0x%lx\n",
+                       read_c0_errorepc());
        /* clear WatchDogReset (W1C) */
        tx4939_ccfg_set(TX4939_CCFG_WDRST);
        /* do reset on watchdog */