[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210220307.ytU6KYR8-lkp@intel.com>
Date: Sat, 22 Oct 2022 03:30:57 +0800
From: kernel test robot <lkp@...el.com>
To: Mark Rutland <mark.rutland@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Florent Revest <revest@...omium.org>
Subject: [mark:arm64/ftrace/per-callsite-ops 3/12]
arch/powerpc/include/asm/ftrace.h:50:42: error: invalid use of undefined
type 'const struct ftrace_refs'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/per-callsite-ops
head: d0ae0c8983e2bf602a151b421652005bc5477727
commit: d98c0a4c0abfb37d72c140d13aa4f54e84c96f4f [3/12] ftrace: abstract DYNAMIC_FTRACE_WITH_ARGS accesses
config: powerpc-allyesconfig
compiler: powerpc-linux-gcc (GCC) 12.1.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
# https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=d98c0a4c0abfb37d72c140d13aa4f54e84c96f4f
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark arm64/ftrace/per-callsite-ops
git checkout d98c0a4c0abfb37d72c140d13aa4f54e84c96f4f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc prepare
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/ftrace.h:23,
from include/linux/kvm_host.h:32,
from arch/powerpc/include/asm/kvm_ppc.h:19,
from arch/powerpc/include/asm/dbell.h:17,
from arch/powerpc/kernel/asm-offsets.c:36:
arch/powerpc/include/asm/ftrace.h:48:50: warning: 'struct ftrace_refs' declared inside parameter list will not be visible outside of this definition or declaration
48 | ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs)
| ^~~~~~~~~~~
arch/powerpc/include/asm/ftrace.h: In function 'ftrace_regs_get_instruction_pointer':
>> arch/powerpc/include/asm/ftrace.h:50:42: error: invalid use of undefined type 'const struct ftrace_refs'
50 | return instruction_pointer(&fregs->regs)
| ^~
>> arch/powerpc/include/asm/ftrace.h:50:49: error: expected ';' before '}' token
50 | return instruction_pointer(&fregs->regs)
| ^
| ;
51 | }
| ~
make[2]: *** [scripts/Makefile.build:118: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:1270: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:231: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +50 arch/powerpc/include/asm/ftrace.h
46
47 static __always_inline unsigned long
48 ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs)
49 {
> 50 return instruction_pointer(&fregs->regs)
51 }
52
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (329812 bytes)
Powered by blists - more mailing lists