[PATCH 2/2] powerpc: use spin loop primitives in some functions

kbuild test robot lkp at intel.com
Sun Jul 2 19:30:05 AEST 2017


Hi Nicholas,

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.12-rc7 next-20170630]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Michael-Ellerman/powerpc-64-implement-spin-loop-primitives/20170630-210421
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-ppc6xx_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

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

   In file included from arch/powerpc/include/asm/io.h:32:0,
                    from arch/powerpc/include/asm/book3s/32/pgtable.h:95,
                    from arch/powerpc/include/asm/book3s/pgtable.h:7,
                    from arch/powerpc/include/asm/pgtable.h:16,
                    from include/linux/mm.h:70,
                    from drivers/soc/fsl/qe/qe.c:23:
   drivers/soc/fsl/qe/qe.c: In function 'qe_issue_cmd':
>> arch/powerpc/include/asm/delay.h:67:3: error: implicit declaration of function 'spin_begin' [-Werror=implicit-function-declaration]
      spin_begin();                                                  \
      ^
>> drivers/soc/fsl/qe/qe.c:142:8: note: in expansion of macro 'spin_event_timeout'
     ret = spin_event_timeout((in_be32(&qe_immr->cp.cecr) & QE_CR_FLG) == 0,
           ^~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/delay.h:70:4: error: implicit declaration of function 'spin_cpu_relax' [-Werror=implicit-function-declaration]
       spin_cpu_relax();                                      \
       ^
>> drivers/soc/fsl/qe/qe.c:142:8: note: in expansion of macro 'spin_event_timeout'
     ret = spin_event_timeout((in_be32(&qe_immr->cp.cecr) & QE_CR_FLG) == 0,
           ^~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/delay.h:71:3: error: implicit declaration of function 'spin_end' [-Werror=implicit-function-declaration]
      spin_end();                                                    \
      ^
>> drivers/soc/fsl/qe/qe.c:142:8: note: in expansion of macro 'spin_event_timeout'
     ret = spin_event_timeout((in_be32(&qe_immr->cp.cecr) & QE_CR_FLG) == 0,
           ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from arch/powerpc/include/asm/io.h:32:0,
                    from arch/powerpc/include/asm/book3s/32/pgtable.h:95,
                    from arch/powerpc/include/asm/book3s/pgtable.h:7,
                    from arch/powerpc/include/asm/pgtable.h:16,
                    from include/linux/mm.h:70,
                    from drivers/soc//fsl/qe/qe.c:23:
   drivers/soc//fsl/qe/qe.c: In function 'qe_issue_cmd':
>> arch/powerpc/include/asm/delay.h:67:3: error: implicit declaration of function 'spin_begin' [-Werror=implicit-function-declaration]
      spin_begin();                                                  \
      ^
   drivers/soc//fsl/qe/qe.c:142:8: note: in expansion of macro 'spin_event_timeout'
     ret = spin_event_timeout((in_be32(&qe_immr->cp.cecr) & QE_CR_FLG) == 0,
           ^~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/delay.h:70:4: error: implicit declaration of function 'spin_cpu_relax' [-Werror=implicit-function-declaration]
       spin_cpu_relax();                                      \
       ^
   drivers/soc//fsl/qe/qe.c:142:8: note: in expansion of macro 'spin_event_timeout'
     ret = spin_event_timeout((in_be32(&qe_immr->cp.cecr) & QE_CR_FLG) == 0,
           ^~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/delay.h:71:3: error: implicit declaration of function 'spin_end' [-Werror=implicit-function-declaration]
      spin_end();                                                    \
      ^
   drivers/soc//fsl/qe/qe.c:142:8: note: in expansion of macro 'spin_event_timeout'
     ret = spin_event_timeout((in_be32(&qe_immr->cp.cecr) & QE_CR_FLG) == 0,
           ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/spin_begin +67 arch/powerpc/include/asm/delay.h

    61	                                                                               \
    62		if (delay) {                                                           \
    63			while (!(__ret = (condition)) &&                               \
    64					(tb_ticks_since(__start) <= __loops))          \
    65				udelay(delay);                                         \
    66		} else {                                                               \
  > 67			spin_begin();                                                  \
    68			while (!(__ret = (condition)) &&                               \
    69					(tb_ticks_since(__start) <= __loops))          \
  > 70				spin_cpu_relax();                                      \
  > 71			spin_end();                                                    \
    72		}                                                                      \
    73		if (!__ret)                                                            \
    74			__ret = (condition);                                           \

---
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: 29061 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20170702/d07fddf3/attachment-0001.gz>


More information about the Linuxppc-dev mailing list