All of lore.kernel.org
 help / color / mirror / Atom feed
* [linuxppc:next-test 166/176] arch/powerpc/include/asm/ppc-opcode.h:277:22: error: called object is not a function or function pointer
@ 2020-07-20 17:05 kernel test robot
  2020-07-21  0:56 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-07-20 17:05 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7852 bytes --]

tree:   https://github.com/linuxppc/linux next-test
head:   08b8bb849948ff5e2305d1115ce8bbdd55364a70
commit: 5f76364326a841f50b29e9fd340baa32182308b3 [166/176] powerpc sstep: Add tests for prefixed integer load/stores
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5f76364326a841f50b29e9fd340baa32182308b3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/uprobes.h:14,
                    from include/linux/uprobes.h:49,
                    from include/linux/mm_types.h:14,
                    from include/linux/mmzone.h:21,
                    from arch/powerpc/include/asm/pgtable.h:7,
                    from include/linux/pgtable.h:6,
                    from arch/powerpc/include/asm/kup.h:42,
                    from arch/powerpc/include/asm/uaccess.h:9,
                    from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/ptrace.h:7,
                    from arch/powerpc/lib/test_emulate_step.c:10:
   arch/powerpc/lib/test_emulate_step.c: In function 'test_pld':
>> arch/powerpc/include/asm/ppc-opcode.h:277:22: error: called object is not a function or function pointer
     277 | #define ___PPC_RA(a) (((a) & 0x1f) << 16)
         |                      ^
   arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro 'ppc_inst_prefix'
      31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y) })
         |                                                                          ^
   arch/powerpc/lib/test_emulate_step.c:24:34: note: in expansion of macro '___PPC_RA'
      24 |    PPC_INST_PLD | ___PPC_RT(r) | ___PPC_RA(base) IMM_L(i))
         |                                  ^~~~~~~~~
   arch/powerpc/lib/test_emulate_step.c:100:32: note: in expansion of macro 'TEST_PLD'
     100 |  stepped = emulate_step(&regs, TEST_PLD(5, 3, 0, 0));
         |                                ^~~~~~~~
   arch/powerpc/lib/test_emulate_step.c: In function 'test_plwz':
>> arch/powerpc/lib/test_emulate_step.c:28:4: error: 'PPC_INST_LWZ' undeclared (first use in this function); did you mean 'PPC_INST_LSWI'?
      28 |    PPC_INST_LWZ | ___PPC_RT(r) | ___PPC_RA(base) | IMM_L(i))
         |    ^~~~~~~~~~~~
   arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro 'ppc_inst_prefix'
      31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y) })
         |                                                                          ^
   arch/powerpc/lib/test_emulate_step.c:142:32: note: in expansion of macro 'TEST_PLWZ'
     142 |  stepped = emulate_step(&regs, TEST_PLWZ(5, 3, 0, 0));
         |                                ^~~~~~~~~
   arch/powerpc/lib/test_emulate_step.c:28:4: note: each undeclared identifier is reported only once for each function it appears in
      28 |    PPC_INST_LWZ | ___PPC_RT(r) | ___PPC_RA(base) | IMM_L(i))
         |    ^~~~~~~~~~~~
   arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro 'ppc_inst_prefix'
      31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y) })
         |                                                                          ^
   arch/powerpc/lib/test_emulate_step.c:142:32: note: in expansion of macro 'TEST_PLWZ'
     142 |  stepped = emulate_step(&regs, TEST_PLWZ(5, 3, 0, 0));
         |                                ^~~~~~~~~

vim +277 arch/powerpc/include/asm/ppc-opcode.h

5f76364326a841f Jordan Niethe          2020-05-25  275  
16c57b3620d77e0 Kumar Gala             2009-02-10  276  /* macros to insert fields into opcodes */
55a5db184667433 Michael Neuling        2012-06-25 @277  #define ___PPC_RA(a)	(((a) & 0x1f) << 16)
55a5db184667433 Michael Neuling        2012-06-25  278  #define ___PPC_RB(b)	(((b) & 0x1f) << 11)
930d6288a26787d Sandipan Das           2019-02-22  279  #define ___PPC_RC(c)	(((c) & 0x1f) << 6)
55a5db184667433 Michael Neuling        2012-06-25  280  #define ___PPC_RS(s)	(((s) & 0x1f) << 21)
55a5db184667433 Michael Neuling        2012-06-25  281  #define ___PPC_RT(t)	___PPC_RS(t)
8cd6d3c23e226ec Balbir Singh           2016-07-13  282  #define ___PPC_R(r)	(((r) & 0x1) << 16)
8cd6d3c23e226ec Balbir Singh           2016-07-13  283  #define ___PPC_PRS(prs)	(((prs) & 0x1) << 17)
8cd6d3c23e226ec Balbir Singh           2016-07-13  284  #define ___PPC_RIC(ric)	(((ric) & 0x3) << 18)
0b7673c35e9240a Michael Neuling        2012-06-25  285  #define __PPC_RA(a)	___PPC_RA(__REG_##a)
f4c015795c74ec3 Michael Neuling        2012-06-25  286  #define __PPC_RA0(a)	___PPC_RA(__REGA0_##a)
0b7673c35e9240a Michael Neuling        2012-06-25  287  #define __PPC_RB(b)	___PPC_RB(__REG_##b)
0b7673c35e9240a Michael Neuling        2012-06-25  288  #define __PPC_RS(s)	___PPC_RS(__REG_##s)
0b7673c35e9240a Michael Neuling        2012-06-25  289  #define __PPC_RT(t)	___PPC_RT(__REG_##t)
0016a4cf5582415 Paul Mackerras         2010-06-15  290  #define __PPC_XA(a)	((((a) & 0x1f) << 16) | ((@ & 0x20) >> 3))
0016a4cf5582415 Paul Mackerras         2010-06-15  291  #define __PPC_XB(b)	((((b) & 0x1f) << 11) | (((b) & 0x20) >> 4))
dfb432cb960bfcb Michael Neuling        2009-04-29  292  #define __PPC_XS(s)	((((s) & 0x1f) << 21) | (((s) & 0x20) >> 5))
0016a4cf5582415 Paul Mackerras         2010-06-15  293  #define __PPC_XT(s)	__PPC_XS(s)
da6b43c833f885d Michael Neuling        2009-04-29  294  #define __PPC_T_TLB(t)	(((t) & 0x3) << 21)
da6b43c833f885d Michael Neuling        2009-04-29  295  #define __PPC_WC(w)	(((w) & 0x3) << 21)
931e1241a266e70 Benjamin Herrenschmidt 2011-04-14  296  #define __PPC_WS(w)	(((w) & 0x1f) << 11)
0ca87f05ba8bdc6 Matt Evans             2011-07-20  297  #define __PPC_SH(s)	__PPC_WS(s)
c233f5979b3dbb3 Naveen N. Rao          2017-02-08  298  #define __PPC_SH64(s)	(__PPC_SH(s) | (((s) & 0x20) >> 4))
930d6288a26787d Sandipan Das           2019-02-22  299  #define __PPC_MB(s)	___PPC_RC(s)
0ca87f05ba8bdc6 Matt Evans             2011-07-20  300  #define __PPC_ME(s)	(((s) & 0x1f) << 1)
277285b854c6663 Naveen N. Rao          2016-06-22  301  #define __PPC_MB64(s)	(__PPC_MB(s) | ((s) & 0x20))
277285b854c6663 Naveen N. Rao          2016-06-22  302  #define __PPC_ME64(s)	__PPC_MB64(s)
0ca87f05ba8bdc6 Matt Evans             2011-07-20  303  #define __PPC_BI(s)	(((s) & 0x1f) << 16)
1afc149def25ac1 Tony Breeds            2012-10-02  304  #define __PPC_CT(t)	(((t) & 0x0f) << 21)
cd99ddbea250ee7 Christophe Leroy       2018-01-12  305  #define __PPC_SPR(r)	((((r) & 0x1f) << 16) | ((((r) >> 5) & 0x1f) << 11))
f1ecbaf466be5a7 Simon Guo              2018-06-07  306  #define __PPC_RC21	(0x1 << 10)
5f76364326a841f Jordan Niethe          2020-05-25  307  #define __PPC_PRFX_R(r)	(((r) & 0x1) << 20)
931e1241a266e70 Benjamin Herrenschmidt 2011-04-14  308  

:::::: The code@line 277 was first introduced by commit
:::::: 55a5db184667433add3c8136c9e3b27899c79d3c powerpc: Introduce new ___PPC_RA/B/S/T macros

:::::: TO: Michael Neuling <mikey@neuling.org>
:::::: CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69544 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linuxppc:next-test 166/176] arch/powerpc/include/asm/ppc-opcode.h:277:22: error: called object is not a function or function pointer
  2020-07-20 17:05 [linuxppc:next-test 166/176] arch/powerpc/include/asm/ppc-opcode.h:277:22: error: called object is not a function or function pointer kernel test robot
@ 2020-07-21  0:56 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2020-07-21  0:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4290 bytes --]

kernel test robot <lkp@intel.com> writes:
> tree:   https://github.com/linuxppc/linux next-test
> head:   08b8bb849948ff5e2305d1115ce8bbdd55364a70
> commit: 5f76364326a841f50b29e9fd340baa32182308b3 [166/176] powerpc sstep: Add tests for prefixed integer load/stores
> config: powerpc-allmodconfig (attached as .config)
> compiler: powerpc64-linux-gcc (GCC) 9.3.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 5f76364326a841f50b29e9fd340baa32182308b3
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>    In file included from arch/powerpc/include/asm/uprobes.h:14,
>                     from include/linux/uprobes.h:49,
>                     from include/linux/mm_types.h:14,
>                     from include/linux/mmzone.h:21,
>                     from arch/powerpc/include/asm/pgtable.h:7,
>                     from include/linux/pgtable.h:6,
>                     from arch/powerpc/include/asm/kup.h:42,
>                     from arch/powerpc/include/asm/uaccess.h:9,
>                     from include/linux/uaccess.h:11,
>                     from include/linux/sched/task.h:11,
>                     from include/linux/sched/signal.h:9,
>                     from include/linux/ptrace.h:7,
>                     from arch/powerpc/lib/test_emulate_step.c:10:
>    arch/powerpc/lib/test_emulate_step.c: In function 'test_pld':
>>> arch/powerpc/include/asm/ppc-opcode.h:277:22: error: called object is not a function or function pointer
>      277 | #define ___PPC_RA(a) (((a) & 0x1f) << 16)
>          |                      ^
>    arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro 'ppc_inst_prefix'
>       31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y) })
>          |                                                                          ^
>    arch/powerpc/lib/test_emulate_step.c:24:34: note: in expansion of macro '___PPC_RA'
>       24 |    PPC_INST_PLD | ___PPC_RT(r) | ___PPC_RA(base) IMM_L(i))
>          |                                  ^~~~~~~~~
>    arch/powerpc/lib/test_emulate_step.c:100:32: note: in expansion of macro 'TEST_PLD'
>      100 |  stepped = emulate_step(&regs, TEST_PLD(5, 3, 0, 0));
>          |                                ^~~~~~~~
>    arch/powerpc/lib/test_emulate_step.c: In function 'test_plwz':
>>> arch/powerpc/lib/test_emulate_step.c:28:4: error: 'PPC_INST_LWZ' undeclared (first use in this function); did you mean 'PPC_INST_LSWI'?
>       28 |    PPC_INST_LWZ | ___PPC_RT(r) | ___PPC_RA(base) | IMM_L(i))
>          |    ^~~~~~~~~~~~
>    arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro 'ppc_inst_prefix'
>       31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y) })
>          |                                                                          ^
>    arch/powerpc/lib/test_emulate_step.c:142:32: note: in expansion of macro 'TEST_PLWZ'
>      142 |  stepped = emulate_step(&regs, TEST_PLWZ(5, 3, 0, 0));
>          |                                ^~~~~~~~~
>    arch/powerpc/lib/test_emulate_step.c:28:4: note: each undeclared identifier is reported only once for each function it appears in
>       28 |    PPC_INST_LWZ | ___PPC_RT(r) | ___PPC_RA(base) | IMM_L(i))
>          |    ^~~~~~~~~~~~
>    arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro 'ppc_inst_prefix'
>       31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y) })
>          |                                                                          ^
>    arch/powerpc/lib/test_emulate_step.c:142:32: note: in expansion of macro 'TEST_PLWZ'
>      142 |  stepped = emulate_step(&regs, TEST_PLWZ(5, 3, 0, 0));
>          |                                ^~~~~~~~~

This was caused by me when dealing with merge conflicts.

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-21  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 17:05 [linuxppc:next-test 166/176] arch/powerpc/include/asm/ppc-opcode.h:277:22: error: called object is not a function or function pointer kernel test robot
2020-07-21  0:56 ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.