[staging:staging-testing 189/192] drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:48:25: note: in expansion of macro '__glue'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   b5596d52a3715a37d6d0875791d93ae5b73c6f21
commit: 6e523414a8f7da23f59154b85544a96d5bf580f8 [189/192] staging: vc04_services: fix dmac_map/unmap_area prototypes
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6e523414a8f7da23f59154b85544a96d5bf580f8
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   In file included from arch/arm/include/asm/glue-cache.h:13:0,
                    from arch/arm/include/asm/cacheflush.h:15,
                    from include/linux/highmem.h:11,
                    from include/linux/pagemap.h:10,
                    from drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:38:
   drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c: In function 'create_pagelist':
>> arch/arm/include/asm/glue-cache.h:116:18: error: implicit declaration of function 'v7_dma_map_area' [-Werror=implicit-function-declaration]
    #  define _CACHE v7
                     ^
   arch/arm/include/asm/glue.h:19:27: note: in definition of macro '____glue'
    #define ____glue(name,fn) name##fn
                              ^~~~
>> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:48:25: note: in expansion of macro '__glue'
    #define dmac_map_area   __glue(_CACHE,_dma_map_area)
                            ^~~~~~
>> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:48:32: note: in expansion of macro '_CACHE'
    #define dmac_map_area   __glue(_CACHE,_dma_map_area)
                                   ^~~~~~
   drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:413:4: note: in expansion of macro 'dmac_map_area'
       dmac_map_area(page_address(pg) + off, bytes, dir);
       ^~~~~~~~~~~~~
   drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c: In function 'free_pagelist':
>> arch/arm/include/asm/glue-cache.h:116:18: error: implicit declaration of function 'v7_dma_unmap_area' [-Werror=implicit-function-declaration]
    #  define _CACHE v7
                     ^
   arch/arm/include/asm/glue.h:19:27: note: in definition of macro '____glue'
    #define ____glue(name,fn) name##fn
                              ^~~~
   drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:49:27: note: in expansion of macro '__glue'
    #define dmac_unmap_area   __glue(_CACHE,_dma_unmap_area)
                              ^~~~~~
   drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:49:34: note: in expansion of macro '_CACHE'
    #define dmac_unmap_area   __glue(_CACHE,_dma_unmap_area)
                                     ^~~~~~
   drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:572:5: note: in expansion of macro 'dmac_unmap_area'
        dmac_unmap_area(page_address(pg) + offset,
        ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from arch/arm/include/asm/glue-cache.h:13:0,
                    from arch/arm/include/asm/cacheflush.h:15,
                    from include/linux/highmem.h:11,
                    from include/linux/pagemap.h:10,
                    from drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c:38:
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c: In function 'create_pagelist':
>> arch/arm/include/asm/glue-cache.h:116:18: error: implicit declaration of function 'v7_dma_map_area' [-Werror=implicit-function-declaration]
    #  define _CACHE v7
                     ^
   arch/arm/include/asm/glue.h:19:27: note: in definition of macro '____glue'
    #define ____glue(name,fn) name##fn
                              ^~~~
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c:48:25: note: in expansion of macro '__glue'
    #define dmac_map_area   __glue(_CACHE,_dma_map_area)
                            ^~~~~~
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c:48:32: note: in expansion of macro '_CACHE'
    #define dmac_map_area   __glue(_CACHE,_dma_map_area)
                                   ^~~~~~
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c:413:4: note: in expansion of macro 'dmac_map_area'
       dmac_map_area(page_address(pg) + off, bytes, dir);
       ^~~~~~~~~~~~~
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c: In function 'free_pagelist':
>> arch/arm/include/asm/glue-cache.h:116:18: error: implicit declaration of function 'v7_dma_unmap_area' [-Werror=implicit-function-declaration]
    #  define _CACHE v7
                     ^
   arch/arm/include/asm/glue.h:19:27: note: in definition of macro '____glue'
    #define ____glue(name,fn) name##fn
                              ^~~~
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c:49:27: note: in expansion of macro '__glue'
    #define dmac_unmap_area   __glue(_CACHE,_dma_unmap_area)
                              ^~~~~~
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c:49:34: note: in expansion of macro '_CACHE'
    #define dmac_unmap_area   __glue(_CACHE,_dma_unmap_area)
                                     ^~~~~~
   drivers/staging/vc04_services//interface/vchiq_arm/vchiq_2835_arm.c:572:5: note: in expansion of macro 'dmac_unmap_area'
        dmac_unmap_area(page_address(pg) + offset,
        ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/__glue +48 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c

71bad7f0 popcornmix 2013-07-02  32   */
71bad7f0 popcornmix 2013-07-02  33  
71bad7f0 popcornmix 2013-07-02  34  #include <linux/kernel.h>
71bad7f0 popcornmix 2013-07-02  35  #include <linux/types.h>
71bad7f0 popcornmix 2013-07-02  36  #include <linux/errno.h>
71bad7f0 popcornmix 2013-07-02  37  #include <linux/interrupt.h>
71bad7f0 popcornmix 2013-07-02 @38  #include <linux/pagemap.h>
71bad7f0 popcornmix 2013-07-02  39  #include <linux/dma-mapping.h>
71bad7f0 popcornmix 2013-07-02  40  #include <linux/version.h>
71bad7f0 popcornmix 2013-07-02  41  #include <linux/io.h>
71bad7f0 popcornmix 2013-07-02  42  #include <linux/platform_device.h>
71bad7f0 popcornmix 2013-07-02  43  #include <linux/uaccess.h>
71bad7f0 popcornmix 2013-07-02  44  #include <linux/of.h>
71bad7f0 popcornmix 2013-07-02  45  #include <asm/pgtable.h>
71bad7f0 popcornmix 2013-07-02  46  #include <soc/bcm2835/raspberrypi-firmware.h>
71bad7f0 popcornmix 2013-07-02  47  
71bad7f0 popcornmix 2013-07-02 @48  #define dmac_map_area			__glue(_CACHE,_dma_map_area)
71bad7f0 popcornmix 2013-07-02  49  #define dmac_unmap_area 		__glue(_CACHE,_dma_unmap_area)
71bad7f0 popcornmix 2013-07-02  50  
71bad7f0 popcornmix 2013-07-02  51  #define TOTAL_SLOTS (VCHIQ_SLOT_ZERO_SLOTS + 2 * 32)

:::::: The code at line 48 was first introduced by commit
:::::: 71bad7f086419dc674244b91ca35a12bfa4cb597 staging: add bcm2708 vchiq driver

:::::: TO: popcornmix <popcornmix@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux