]> git.neil.brown.name Git - history.git/commitdiff
[ARM] Correct the usage of __FUNCTION__ to make gcc happy.
authorRussell King <rmk@flint.arm.linux.org.uk>
Sun, 29 Sep 2002 20:21:43 +0000 (21:21 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 29 Sep 2002 20:21:43 +0000 (21:21 +0100)
arch/arm/mach-pxa/dma.c
arch/arm/mach-sa1100/badge4.c
arch/arm/mach-sa1100/dma.c
arch/arm/mach-sa1100/h3600.c

index 76d2e7a2fb745cd19c464e4e0e5a3a309af61961..e2c141ca96193a21959a535ea9c73b2df464ca8e 100644 (file)
@@ -81,9 +81,9 @@ void pxa_free_dma (int dma_ch)
        unsigned long flags;
 
        if (!dma_channels[dma_ch].name) {
-               printk (KERN_CRIT __FUNCTION__
-                       ": trying to free channel %d which is already freed\n",
-                       dma_ch);
+               printk (KERN_CRIT
+                       "%s: trying to free channel %d which is already freed\n",
+                       __FUNCTION__, dma_ch);
                return;
        }
 
index ec1d49e24279611841fb693f3e10d62b91aa9134..aace82ac1870b40e8c70a36a560ff01f17c22369 100644 (file)
@@ -57,8 +57,9 @@ static int __init badge4_init(void)
 
        ret = badge4_sa1111_init();
        if (ret < 0)
-               printk(KERN_ERR __FUNCTION__
-                      ": SA-1111 initialization failed (%d)\n", ret);
+               printk(KERN_ERR
+                      "%s: SA-1111 initialization failed (%d)\n",
+                       __FUNCTION__, ret);
 
        /* N.B, according to rmk this is the singular place that GPDR
            should be set */
@@ -132,11 +133,11 @@ void badge4_set_5V(unsigned subsystem, int on)
        /* detect on->off and off->on transitions */
        if ((!old_5V_bitmap) && (badge4_5V_bitmap)) {
                /* was off, now on */
-               printk(KERN_INFO __FUNCTION__ ": enabling 5V supply rail\n");
+               printk(KERN_INFO "%s: enabling 5V supply rail\n", __FUNCTION__);
                GPSR = BADGE4_GPIO_PCMEN5V;
        } else if ((old_5V_bitmap) && (!badge4_5V_bitmap)) {
                /* was on, now off */
-               printk(KERN_INFO __FUNCTION__ ": disabling 5V supply rail\n");
+               printk(KERN_INFO "%s: disabling 5V supply rail\n", __FUNCTION__);
                GPCR = BADGE4_GPIO_PCMEN5V;
        }
 
index 930d1bfa63645903ff7bcff90056fe385b59fe74..11e0121b1b84053a2f3f7656d93bfd4addcaeb31 100644 (file)
@@ -126,9 +126,9 @@ int sa1100_request_dma (dma_device_t device, const char *device_id,
        err = request_irq(IRQ_DMA0 + i, dma_irq_handler, SA_INTERRUPT,
                          device_id, regs);
        if (err) {
-               printk(KERN_ERR __FUNCTION__
-                      "unable to request IRQ %d for %s\n",
-                      IRQ_DMA0 + i, device_id);
+               printk(KERN_ERR
+                      "%s: unable to request IRQ %d for %s\n",
+                      __FUNCTION__, IRQ_DMA0 + i, device_id);
                dma->device = 0;
                return err;
        }
@@ -164,12 +164,12 @@ void sa1100_free_dma(dma_regs_t *regs)
                if (regs == (dma_regs_t *)&DDAR(i))
                        break;
        if (i >= SA1100_DMA_CHANNELS) {
-               printk(KERN_ERR __FUNCTION__ ": bad DMA identifier\n");
+               printk(KERN_ERR "%s: bad DMA identifier\n", __FUNCTION__);
                return;
        }
 
        if (!dma_chan[i].device) {
-               printk(KERN_ERR __FUNCTION__ "Trying to free free DMA\n");
+               printk(KERN_ERR "%s: Trying to free free DMA\n", __FUNCTION__);
                return;
        }
 
@@ -215,10 +215,14 @@ void sa1100_free_dma(dma_regs_t *regs)
 
 int sa1100_start_dma(dma_regs_t *regs, dma_addr_t dma_ptr, u_int size)
 {
-       long flags;
+       unsigned long flags;
        u_long status;
        int ret;
 
+       if (dma_ptr & 3)
+               printk(KERN_WARNING "DMA: unaligned start address (0x%08lx)\n",
+                      (unsigned long)dma_ptr);
+
        if (size > MAX_DMA_SIZE)
                return -EOVERFLOW;
 
@@ -324,7 +328,7 @@ void sa1100_reset_dma(dma_regs_t *regs)
                if (regs == (dma_regs_t *)&DDAR(i))
                        break;
        if (i >= SA1100_DMA_CHANNELS) {
-               printk(KERN_ERR __FUNCTION__ ": bad DMA identifier\n");
+               printk(KERN_ERR "%s: bad DMA identifier\n", __FUNCTION__);
                return;
        }
 
index e944e2eda5dd386a086d9a7c8fbca75d78a87be4..0881cc01ad2551ef83fe9f18459e744dd78292b2 100644 (file)
@@ -133,7 +133,8 @@ static void h3100_control_egpio( enum ipaq_egpio_type x, int setp )
 
        /*
        if ( x != IPAQ_EGPIO_VPP_ON ) {
-               printk(__FUNCTION__ " : type=%d (%s) gpio=0x%x (0x%x) egpio=0x%x (0x%x) setp=%d\n",
+               printk("%s: type=%d (%s) gpio=0x%x (0x%x) egpio=0x%x (0x%x) setp=%d\n",
+                      __FUNCTION__,
                       x, egpio_names[x], GPLR, gpio, h3600_egpio, egpio, setp );
        }
        */