[mel:mm-pagealloc-irqpvec-v1r4 245/266] include/linux/kfifo.h:348:2: error: expected identifier or '(' before '{' token

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git mm-pagealloc-irqpvec-v1r4
head:   08183d83ca607af03f36160b843a2ea3f943e7b6
commit: 1d8219f0f351c68cea62e8809877d1c0d37c1b08 [245/266] linux-next-git-rejects
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 1d8219f0f351c68cea62e8809877d1c0d37c1b08
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.h:27:0,
                    from drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:29:
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c: In function 'amd_sched_entity_fini':
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:223:41: error: 'job' undeclared (first use in this function)
      while (kfifo_out(&entity->job_queue, &job, sizeof(job))) {
                                            ^
   include/linux/kfifo.h:553:30: note: in definition of macro 'kfifo_out'
     typeof(__tmp->ptr) __buf = (buf); \
                                 ^~~
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:223:41: note: each undeclared identifier is reported only once for each function it appears in
      while (kfifo_out(&entity->job_queue, &job, sizeof(job))) {
                                            ^
   include/linux/kfifo.h:553:30: note: in definition of macro 'kfifo_out'
     typeof(__tmp->ptr) __buf = (buf); \
                                 ^~~
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:207:23: warning: unused variable 'rq' [-Wunused-variable]
     struct amd_sched_rq *rq = entity->rq;
                          ^~
   In file included from drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.h:27:0,
                    from drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:29:
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c: At top level:
>> include/linux/kfifo.h:348:2: error: expected identifier or '(' before '{' token
    ({ \
     ^
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:233:2: note: in expansion of macro 'kfifo_free'
     kfifo_free(&entity->job_queue);
     ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:234:1: error: expected identifier or '(' before '}' token
    }
    ^
   drivers/gpu/drm/amd/amdgpu/../scheduler/gpu_scheduler.c:56:13: warning: 'amd_sched_rq_remove_entity' defined but not used [-Wunused-function]
    static void amd_sched_rq_remove_entity(struct amd_sched_rq *rq,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~

vim +348 include/linux/kfifo.h

86d488031 Stefani Seibold 2009-12-21  342  
2e956fb32 Stefani Seibold 2010-08-10  343  /**
2e956fb32 Stefani Seibold 2010-08-10  344   * kfifo_free - frees the fifo
2e956fb32 Stefani Seibold 2010-08-10  345   * @fifo: the fifo to be freed
86d488031 Stefani Seibold 2009-12-21  346   */
2e956fb32 Stefani Seibold 2010-08-10  347  #define kfifo_free(fifo) \
2e956fb32 Stefani Seibold 2010-08-10 @348  ({ \
e0bf1024b Huang Ying      2010-09-09  349  	typeof((fifo) + 1) __tmp = (fifo); \
2e956fb32 Stefani Seibold 2010-08-10  350  	struct __kfifo *__kfifo = &__tmp->kfifo; \
2e956fb32 Stefani Seibold 2010-08-10  351  	if (__is_kfifo_ptr(__tmp)) \
2e956fb32 Stefani Seibold 2010-08-10  352  		__kfifo_free(__kfifo); \
2e956fb32 Stefani Seibold 2010-08-10  353  })
86d488031 Stefani Seibold 2009-12-21  354  

:::::: The code at line 348 was first introduced by commit
:::::: 2e956fb320568cc70861761483e2f0e2db75fd66 kfifo: replace the old non generic API

:::::: TO: Stefani Seibold <stefani@xxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux