[radeon-alex:amd-18.50 1284/1415] arch/arm64/include/asm/io.h:136:32: note: in expansion of macro 'readl_relaxed'

kbuild test robot lkp at intel.com
Fri Dec 14 14:30:03 UTC 2018


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-18.50
head:   88a0039cb034176ee3416dd0c3a49feea2f446ab
commit: a26f88704ef76f0213692b3b04f210de6e9e8676 [1284/1415] drm/scheduler: fix build error due to change in scheduler struct
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.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 a26f88704ef76f0213692b3b04f210de6e9e8676
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/swab.h:5:0,
                    from include/uapi/linux/byteorder/big_endian.h:13,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/arm64/include/uapi/asm/byteorder.h:21,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arm64/include/asm/bitops.h:50,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/kthread.h:6,
                    from drivers/gpu/drm/v3d/v3d_sched.c:21:
   drivers/gpu/drm/v3d/v3d_sched.c: In function 'v3d_job_timedout':
   drivers/gpu/drm/v3d/v3d_sched.c:157:44: error: 'job_q' undeclared (first use in this function); did you mean 'job'?
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                               ^
   include/uapi/linux/swab.h:117:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:89:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
>> arch/arm64/include/asm/io.h:136:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_drv.h:166:37: note: in expansion of macro 'readl'
    #define V3D_CORE_READ(core, offset) readl(v3d->core_regs[core] + offset)
                                        ^~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:157:13: note: in expansion of macro 'V3D_CORE_READ'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:157:30: note: in expansion of macro 'V3D_CLE_CTNCA'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                 ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:157:44: note: each undeclared identifier is reported only once for each function it appears in
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                               ^
   include/uapi/linux/swab.h:117:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:89:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
>> arch/arm64/include/asm/io.h:136:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_drv.h:166:37: note: in expansion of macro 'readl'
    #define V3D_CORE_READ(core, offset) readl(v3d->core_regs[core] + offset)
                                        ^~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:157:13: note: in expansion of macro 'V3D_CORE_READ'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:157:30: note: in expansion of macro 'V3D_CLE_CTNCA'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                 ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:158:30: error: implicit declaration of function 'V3D_CLE_CTNRA'; did you mean 'V3D_CLE_CTNCA'? [-Werror=implicit-function-declaration]
     u32 ctra = V3D_CORE_READ(0, V3D_CLE_CTNRA(job_q));
                                 ^
   include/uapi/linux/swab.h:117:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:89:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
>> arch/arm64/include/asm/io.h:136:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_drv.h:166:37: note: in expansion of macro 'readl'
    #define V3D_CORE_READ(core, offset) readl(v3d->core_regs[core] + offset)
                                        ^~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:158:13: note: in expansion of macro 'V3D_CORE_READ'
     u32 ctra = V3D_CORE_READ(0, V3D_CLE_CTNRA(job_q));
                ^~~~~~~~~~~~~
   drivers/gpu/drm/v3d/v3d_sched.c:166:9: error: 'struct v3d_job' has no member named 'timedout_ctca'
     if (job->timedout_ctca != ctca || job->timedout_ctra != ctra) {
            ^~
   drivers/gpu/drm/v3d/v3d_sched.c:166:39: error: 'struct v3d_job' has no member named 'timedout_ctra'
     if (job->timedout_ctca != ctca || job->timedout_ctra != ctra) {
                                          ^~
   drivers/gpu/drm/v3d/v3d_sched.c:167:6: error: 'struct v3d_job' has no member named 'timedout_ctca'
      job->timedout_ctca = ctca;
         ^~
   drivers/gpu/drm/v3d/v3d_sched.c:168:6: error: 'struct v3d_job' has no member named 'timedout_ctra'
      job->timedout_ctra = ctra;
         ^~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/swab.h:5:0,
                    from include/uapi/linux/byteorder/big_endian.h:13,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/arm64/include/uapi/asm/byteorder.h:21,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arm64/include/asm/bitops.h:50,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/kthread.h:6,
                    from drivers/gpu//drm/v3d/v3d_sched.c:21:
   drivers/gpu//drm/v3d/v3d_sched.c: In function 'v3d_job_timedout':
   drivers/gpu//drm/v3d/v3d_sched.c:157:44: error: 'job_q' undeclared (first use in this function); did you mean 'job'?
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                               ^
   include/uapi/linux/swab.h:117:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:89:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
>> arch/arm64/include/asm/io.h:136:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_drv.h:166:37: note: in expansion of macro 'readl'
    #define V3D_CORE_READ(core, offset) readl(v3d->core_regs[core] + offset)
                                        ^~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:157:13: note: in expansion of macro 'V3D_CORE_READ'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:157:30: note: in expansion of macro 'V3D_CLE_CTNCA'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                 ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:157:44: note: each undeclared identifier is reported only once for each function it appears in
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                               ^
   include/uapi/linux/swab.h:117:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:89:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
>> arch/arm64/include/asm/io.h:136:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_drv.h:166:37: note: in expansion of macro 'readl'
    #define V3D_CORE_READ(core, offset) readl(v3d->core_regs[core] + offset)
                                        ^~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:157:13: note: in expansion of macro 'V3D_CORE_READ'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:157:30: note: in expansion of macro 'V3D_CLE_CTNCA'
     u32 ctca = V3D_CORE_READ(0, V3D_CLE_CTNCA(job_q));
                                 ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:158:30: error: implicit declaration of function 'V3D_CLE_CTNRA'; did you mean 'V3D_CLE_CTNCA'? [-Werror=implicit-function-declaration]
     u32 ctra = V3D_CORE_READ(0, V3D_CLE_CTNRA(job_q));
                                 ^
   include/uapi/linux/swab.h:117:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:89:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
>> arch/arm64/include/asm/io.h:136:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_drv.h:166:37: note: in expansion of macro 'readl'
    #define V3D_CORE_READ(core, offset) readl(v3d->core_regs[core] + offset)
                                        ^~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:158:13: note: in expansion of macro 'V3D_CORE_READ'
     u32 ctra = V3D_CORE_READ(0, V3D_CLE_CTNRA(job_q));
                ^~~~~~~~~~~~~
   drivers/gpu//drm/v3d/v3d_sched.c:166:9: error: 'struct v3d_job' has no member named 'timedout_ctca'
     if (job->timedout_ctca != ctca || job->timedout_ctra != ctra) {
            ^~
   drivers/gpu//drm/v3d/v3d_sched.c:166:39: error: 'struct v3d_job' has no member named 'timedout_ctra'
     if (job->timedout_ctca != ctca || job->timedout_ctra != ctra) {
                                          ^~
   drivers/gpu//drm/v3d/v3d_sched.c:167:6: error: 'struct v3d_job' has no member named 'timedout_ctca'
      job->timedout_ctca = ctca;
         ^~
   drivers/gpu//drm/v3d/v3d_sched.c:168:6: error: 'struct v3d_job' has no member named 'timedout_ctra'
      job->timedout_ctra = ctra;
         ^~
   cc1: some warnings being treated as errors

vim +/readl_relaxed +136 arch/arm64/include/asm/io.h

fc47897d Catalin Marinas 2012-03-05  128  
fc47897d Catalin Marinas 2012-03-05  129  /*
fc47897d Catalin Marinas 2012-03-05  130   * I/O memory access primitives. Reads are ordered relative to any
fc47897d Catalin Marinas 2012-03-05  131   * following Normal memory access. Writes are ordered relative to any prior
fc47897d Catalin Marinas 2012-03-05  132   * Normal memory access.
fc47897d Catalin Marinas 2012-03-05  133   */
fc47897d Catalin Marinas 2012-03-05  134  #define readb(c)		({ u8  __v = readb_relaxed(c); __iormb(); __v; })
fc47897d Catalin Marinas 2012-03-05  135  #define readw(c)		({ u16 __v = readw_relaxed(c); __iormb(); __v; })
fc47897d Catalin Marinas 2012-03-05 @136  #define readl(c)		({ u32 __v = readl_relaxed(c); __iormb(); __v; })
12f88398 Chen Gang       2013-04-19  137  #define readq(c)		({ u64 __v = readq_relaxed(c); __iormb(); __v; })
fc47897d Catalin Marinas 2012-03-05  138  

:::::: The code at line 136 was first introduced by commit
:::::: fc47897d2c65bc94b6868a5c914afbd33216e26f arm64: Device specific operations

:::::: TO: Catalin Marinas <catalin.marinas at arm.com>
:::::: CC: Catalin Marinas <catalin.marinas at arm.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 60315 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181214/b657cced/attachment-0001.gz>


More information about the dri-devel mailing list