[radeon-alex:amd-18.30 1/1] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:9: warning: preprocessor token pr_fmt redefined

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-18.30
head:   7b669e917dcab69f330fab0903d5eb21ba0fb87e
commit: 7b669e917dcab69f330fab0903d5eb21ba0fb87e [1/1] drm/amdgpu:No action when VCN PG state is unchanged
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 7b669e917dcab69f330fab0903d5eb21ba0fb87e
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:9: warning: preprocessor token pr_fmt redefined
   include/linux/printk.h:285:9: this was the original definition
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:33:6: warning: symbol 'kgd2kfd_init_p' was not declared. Should it be static?
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:286:5: warning: symbol 'pool_to_domain' was not declared. Should it be static?
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:0: warning: "pr_fmt" redefined
    #define pr_fmt(fmt) "kfd2kgd: " fmt
    
   In file included from include/linux/kernel.h:14:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   include/linux/printk.h:285:0: note: this is the location of the previous definition
    #define pr_fmt(fmt) fmt
    
--
   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c:23:9: warning: preprocessor token pr_fmt redefined
   include/linux/printk.h:285:9: this was the original definition
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c:235:57: warning: non-ANSI function declaration of function 'amdgpu_amdkfd_gfx_7_get_functions'
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c:23:0: warning: "pr_fmt" redefined
    #define pr_fmt(fmt) "kfd2kgd: " fmt
    
   In file included from include/linux/kernel.h:14:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   include/linux/printk.h:285:0: note: this is the location of the previous definition
    #define pr_fmt(fmt) fmt
    
--
   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c:23:9: warning: preprocessor token pr_fmt redefined
   include/linux/printk.h:285:9: this was the original definition
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c:208:59: warning: non-ANSI function declaration of function 'amdgpu_amdkfd_gfx_8_0_get_functions'
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c:23:0: warning: "pr_fmt" redefined
    #define pr_fmt(fmt) "kfd2kgd: " fmt
    
   In file included from include/linux/kernel.h:14:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   include/linux/printk.h:285:0: note: this is the location of the previous definition
    #define pr_fmt(fmt) fmt
    
--
   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:23:9: warning: preprocessor token pr_fmt redefined
   include/linux/printk.h:285:9: this was the original definition
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:258:59: warning: non-ANSI function declaration of function 'amdgpu_amdkfd_gfx_9_0_get_functions'
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:534:17: warning: cast removes address space of expression (<asn:1>)
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:536:17: warning: cast removes address space of expression (<asn:1>)
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:23:0: warning: "pr_fmt" redefined
    #define pr_fmt(fmt) "kfd2kgd: " fmt
    
   In file included from include/linux/kernel.h:14:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   include/linux/printk.h:285:0: note: this is the location of the previous definition
    #define pr_fmt(fmt) fmt
    
--
   include/kcl/kcl_drm_global.h:46:30: warning: no newline at end of file
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:23:9: warning: preprocessor token pr_fmt redefined
   include/linux/printk.h:285:9: this was the original definition
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:23:0: warning: "pr_fmt" redefined
    #define pr_fmt(fmt) "kfd2kgd: " fmt
    
   In file included from include/linux/kernel.h:14:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   include/linux/printk.h:285:0: note: this is the location of the previous definition
    #define pr_fmt(fmt) fmt
    

vim +23 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c

61986dd6 Kent Russell 2018-01-15 @23  #define pr_fmt(fmt) "kfd2kgd: " fmt
61986dd6 Kent Russell 2018-01-15  24  

:::::: The code at line 23 was first introduced by commit
:::::: 61986dd6bef0b17e85a9846bb4d1ca610f9d6ce0 drm/amdkfd: Copy in KFD-related files

:::::: TO: Kent Russell <kent.russell@xxxxxxx>
:::::: CC: Kevin Wang <Kevin1.Wang@xxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux