]> err.no Git - linux-2.6/commitdiff
[Blackfin] arch: __FUNCTION__ is gcc-specific, use __func__
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 23 Apr 2008 01:39:01 +0000 (09:39 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 23 Apr 2008 01:39:01 +0000 (09:39 +0800)
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
22 files changed:
arch/blackfin/kernel/bfin_gpio.c
arch/blackfin/kernel/dma-mapping.c
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf533/boards/H8606.c
arch/blackfin/mach-bf533/boards/cm_bf533.c
arch/blackfin/mach-bf533/boards/ezkit.c
arch/blackfin/mach-bf533/boards/generic_board.c
arch/blackfin/mach-bf533/boards/stamp.c
arch/blackfin/mach-bf537/boards/cm_bf537.c
arch/blackfin/mach-bf537/boards/generic_board.c
arch/blackfin/mach-bf537/boards/minotaur.c
arch/blackfin/mach-bf537/boards/pnav10.c
arch/blackfin/mach-bf537/boards/stamp.c
arch/blackfin/mach-bf548/boards/ezkit.c
arch/blackfin/mach-bf561/boards/cm_bf561.c
arch/blackfin/mach-bf561/boards/ezkit.c
arch/blackfin/mach-bf561/boards/generic_board.c
arch/blackfin/mach-bf561/boards/tepla.c
arch/blackfin/mach-common/ints-priority.c
arch/blackfin/oprofile/common.c
arch/blackfin/oprofile/op_model_bf533.c
include/asm-blackfin/uaccess.h

index b54dad505f836042506ea5843771e11731547737..7e8ceea9b5d175240dc2dd5f25bf03bd9cfc2a49 100644 (file)
@@ -821,7 +821,7 @@ int peripheral_request(unsigned short per, const char *label)
                dump_stack();
                printk(KERN_ERR
                    "%s: Peripheral %d is already reserved as GPIO by %s !\n",
-                      __FUNCTION__, ident, get_label(ident));
+                      __func__, ident, get_label(ident));
                local_irq_restore(flags);
                return -EBUSY;
        }
@@ -848,7 +848,7 @@ int peripheral_request(unsigned short per, const char *label)
                        dump_stack();
                        printk(KERN_ERR
                               "%s: Peripheral %d function %d is already reserved by %s !\n",
-                              __FUNCTION__, ident, P_FUNCT2MUX(per), get_label(ident));
+                              __func__, ident, P_FUNCT2MUX(per), get_label(ident));
                        local_irq_restore(flags);
                        return -EBUSY;
                }
@@ -891,7 +891,7 @@ int peripheral_request(unsigned short per, const char *label)
                        dump_stack();
                        printk(KERN_ERR
                               "%s: Peripheral %d is already reserved as GPIO by %s !\n",
-                              __FUNCTION__, ident, get_label(ident));
+                              __func__, ident, get_label(ident));
                        local_irq_restore(flags);
                        return -EBUSY;
                }
@@ -919,7 +919,7 @@ int peripheral_request(unsigned short per, const char *label)
                        printk(KERN_ERR
                               "%s: Peripheral %d function %d is already"
                               " reserved by %s !\n",
-                              __FUNCTION__, ident, P_FUNCT2MUX(per),
+                              __func__, ident, P_FUNCT2MUX(per),
                                get_label(ident));
                        local_irq_restore(flags);
                        return -EBUSY;
index d6b61d56b656798db1b2fa2bee1d9df7c04872ac..2f62a9f4058acbf9eea9bc75142f8990967d0c0e 100644 (file)
@@ -59,7 +59,7 @@ void dma_alloc_init(unsigned long start, unsigned long end)
        memset((void *)dma_base, 0, DMA_UNCACHED_REGION);
        dma_initialized = 1;
 
-       printk(KERN_INFO "%s: dma_page @ 0x%p - %d pages at 0x%08lx\n", __FUNCTION__,
+       printk(KERN_INFO "%s: dma_page @ 0x%p - %d pages at 0x%08lx\n", __func__,
               dma_page, dma_pages, dma_base);
 }
 
@@ -100,7 +100,7 @@ static void __free_dma_pages(unsigned long addr, unsigned int pages)
        int i;
 
        if ((page + pages) > dma_pages) {
-               printk(KERN_ERR "%s: freeing outside range.\n", __FUNCTION__);
+               printk(KERN_ERR "%s: freeing outside range.\n", __func__);
                BUG();
        }
 
index cf4bc0d8335521737422e2d3c3796278e4962fee..1452391fe95deec7984d39e0b78397b69109bdbe 100644 (file)
@@ -94,7 +94,7 @@ int __init bfin_isp1761_init(void)
 {
        unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices);
 
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING);
 
        return platform_add_devices(bfin_isp1761_devices, num_devices);
@@ -896,7 +896,7 @@ static struct platform_device *stamp_devices[] __initdata = {
 
 static int __init stamp_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info,
index 97378b0a975308047004fb89eb2768038968597f..39c3dd3d595c056fde47537558847f8d4c54920b 100644 (file)
@@ -411,7 +411,7 @@ static struct platform_device *h8606_devices[] __initdata = {
 static int __init H8606_init(void)
 {
        printk(KERN_INFO "HV Sistemas H8606 board support by http://www.hvsistemas.com\n");
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(h8606_devices, ARRAY_SIZE(h8606_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
index 886f260d9359f35b9e754ecab4eccccbd35ceb94..7e7b7c9a5c85c73e3a2955f0e57aed376d61a8ac 100644 (file)
@@ -355,7 +355,7 @@ static struct platform_device *cm_bf533_devices[] __initdata = {
 
 static int __init cm_bf533_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(cm_bf533_devices, ARRAY_SIZE(cm_bf533_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
index 241b5a20a36a78003e1128ce79f9af98e7ae89cd..35c1efdf8e16ed8dc0148837d41d56d6eea5cc26 100644 (file)
@@ -369,7 +369,7 @@ static struct platform_device *ezkit_devices[] __initdata = {
 
 static int __init ezkit_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
index e359a0d6467fd846c66c68e9fce44c480b877582..82b1f6a60e3f7dc07859cc082b1e4fca75da5096 100644 (file)
@@ -84,7 +84,7 @@ static struct platform_device *generic_board_devices[] __initdata = {
 
 static int __init generic_board_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        return platform_add_devices(generic_board_devices, ARRAY_SIZE(generic_board_devices));
 }
 
index 32b37afc6e6aa2e5f2ae7ed325f6aec9e8de65d0..3a727d3676e17e7bf6bb66cc42bb43a6689c93b9 100644 (file)
@@ -553,7 +553,7 @@ static int __init stamp_init(void)
 {
        int ret;
 
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
 
 #ifdef CONFIG_I2C_BOARDINFO
        i2c_register_board_info(0, bfin_i2c_board_info,
index b575b23fe6973fe4b3c09dbdd84f55c5922d76f8..199fde69b96499303b16ebafe1db483ff567990b 100644 (file)
@@ -451,7 +451,7 @@ static struct platform_device *cm_bf537_devices[] __initdata = {
 
 static int __init cm_bf537_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(cm_bf537_devices, ARRAY_SIZE(cm_bf537_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
index c95395ba7bfa97c09b948fe9475709ef3da1c317..b3d78ea755ca61168d64034a0fcdc41f8ca10e9f 100644 (file)
@@ -90,7 +90,7 @@ int __init bfin_isp1761_init(void)
 {
        unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices);
 
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING);
 
        return platform_add_devices(bfin_isp1761_devices, num_devices);
@@ -690,7 +690,7 @@ static struct platform_device *stamp_devices[] __initdata = {
 
 static int __init stamp_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info,
index d71e0be339212c752a14aeea214ee7d1b72f654f..815ad404588fa05392b08abb3ec68bb3bc070136 100644 (file)
@@ -297,7 +297,7 @@ static struct platform_device *minotaur_devices[] __initdata = {
 
 static int __init minotaur_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(minotaur_devices, ARRAY_SIZE(minotaur_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info,
index 509a8a236fd05cafe1e29b9b8ad25db5ca11788d..0b3e22b1b681467de987528a347379f16be25048 100644 (file)
@@ -497,7 +497,7 @@ static struct platform_device *stamp_devices[] __initdata = {
 
 static int __init stamp_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info,
index f81a9b8a640e70dc259493ea85b2097db2aa5b08..e95478252c877b32c7f9184f782979b6deaa1dfc 100644 (file)
@@ -91,7 +91,7 @@ int __init bfin_isp1761_init(void)
 {
        unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices);
 
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING);
 
        return platform_add_devices(bfin_isp1761_devices, num_devices);
@@ -854,7 +854,7 @@ static struct platform_device *stamp_devices[] __initdata = {
 
 static int __init stamp_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
 
 #ifdef CONFIG_I2C_BOARDINFO
        i2c_register_board_info(0, bfin_i2c_board_info,
index 04c0c8df6e965f9ea5ffe17b6021d0ab6814385f..acbfb0fc0289fba1e559ef6717545b346d9a0ac4 100644 (file)
@@ -695,7 +695,7 @@ static struct platform_device *ezkit_devices[] __initdata = {
 
 static int __init ezkit_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
 
 #ifdef CONFIG_I2C_BOARDINFO
        i2c_register_board_info(0, bfin_i2c_board_info0,
index bf9e738a7c6451938a3254039e324c68cc71ff85..4a3e0853f2a4405811cd75041ccb3692c0e3e096 100644 (file)
@@ -349,7 +349,7 @@ static struct platform_device *cm_bf561_devices[] __initdata = {
 
 static int __init cm_bf561_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        platform_add_devices(cm_bf561_devices, ARRAY_SIZE(cm_bf561_devices));
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
        spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
index 79a55b42e9649192aabe1bbb42bb3ad583294cba..984d654cc8d77a9f2048750b5016f4c45d9fd9e2 100644 (file)
@@ -78,7 +78,7 @@ int __init bfin_isp1761_init(void)
 {
        unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices);
 
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING);
 
        return platform_add_devices(bfin_isp1761_devices, num_devices);
index fc80c5d059f8b28cbd29471f37c152f7d21e9322..2faa0072d614532cd38aa9c45da18806a4f162f8 100644 (file)
@@ -70,7 +70,7 @@ static struct platform_device *generic_board_devices[] __initdata = {
 
 static int __init generic_board_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        return platform_add_devices(generic_board_devices,
                                    ARRAY_SIZE(generic_board_devices));
 }
index ec6a2207c202491f347cd3ab2f45721fb33ec634..c9174b39f98dcdf08278f6b37bc1853354170df6 100644 (file)
@@ -50,7 +50,7 @@ static struct platform_device *tepla_devices[] __initdata = {
 
 static int __init tepla_init(void)
 {
-       printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
+       printk(KERN_INFO "%s(): registering device resources\n", __func__);
        return platform_add_devices(tepla_devices, ARRAY_SIZE(tepla_devices));
 }
 
index 225ef14af75eade0ef629575cc5ab646db063796..a2a11717bf664c711e6b96105d0eb4006efbe8af 100644 (file)
@@ -316,7 +316,7 @@ static void bfin_demux_error_irq(unsigned int int_err_irq,
                printk(KERN_ERR
                       "%s : %s : LINE %d :\nIRQ ?: PERIPHERAL ERROR"
                       " INTERRUPT ASSERTED BUT NO SOURCE FOUND\n",
-                      __FUNCTION__, __FILE__, __LINE__);
+                      __func__, __FILE__, __LINE__);
 
 }
 #endif                         /* BF537_GENERIC_ERROR_INT_DEMUX */
index cb8b8d5af34fa450f1c58273d10acf71428eff2b..0f6d303a88913f3a3d20b0f8aaea8f42f5004429 100644 (file)
@@ -75,7 +75,7 @@ static int op_bfin_start(void)
 {
        int ret = -EBUSY;
 
-       printk(KERN_INFO "KSDBG:in %s\n", __FUNCTION__);
+       printk(KERN_INFO "KSDBG:in %s\n", __func__);
        mutex_lock(&pfmon_lock);
        if (!pfmon_enabled) {
                ret = model->start(ctr);
index 872dffe3362360f6eb1e46e4d9d53961d04c359e..d1c698bb9ee5f037e0db9e0bbcadc97717b513a4 100644 (file)
@@ -125,7 +125,7 @@ int pm_overflow_handler(int irq, struct pt_regs *regs)
        unsigned int pc, pfctl;
        unsigned int count[2];
 
-       pr_debug("get interrupt in %s\n", __FUNCTION__);
+       pr_debug("get interrupt in %s\n", __func__);
        if (oprofile_running == 0) {
                pr_debug("error: entering interrupt when oprofile is stopped.\n\r");
                return -1;
index 22a410b8003b78954f972523e98d341d30eefa27..d928b8099056ab15b9fd9a840043909588c93ab4 100644 (file)
@@ -133,7 +133,7 @@ static inline int bad_user_access_length(void)
 }
 
 #define __put_user_bad() (printk(KERN_INFO "put_user_bad %s:%d %s\n",\
-                           __FILE__, __LINE__, __FUNCTION__),\
+                           __FILE__, __LINE__, __func__),\
                            bad_user_access_length(), (-EFAULT))
 
 /*
@@ -177,7 +177,7 @@ static inline int bad_user_access_length(void)
                default:                                                \
                        x = 0;                                          \
                        printk(KERN_INFO "get_user_bad: %s:%d %s\n",    \
-                              __FILE__, __LINE__, __FUNCTION__);       \
+                              __FILE__, __LINE__, __func__);   \
                        _err = __get_user_bad();                        \
                        break;                                          \
                }                                                       \