[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210130302.cTwFOBJu-lkp@intel.com>
Date: Thu, 13 Oct 2022 03:57:21 +0800
From: kernel test robot <lkp@...el.com>
To: Mark Rutland <mark.rutland@....com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Florent Revest <revest@...omium.org>
Subject: [mark:arm64/ftrace/minimal-regs 4/5]
arch/powerpc/include/asm/ftrace.h:50:35: error: incomplete definition of
type 'struct ftrace_refs'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/minimal-regs
head: a6fb93c9bc584bf123d18caa80dd6f7a083c272b
commit: c4373895d771e6d7a11f9749db5ebf2f4920ca58 [4/5] ftrace: abstract DYNAMIC_FTRACE_WITH_ARGS accesses
config: powerpc-randconfig-r006-20221012
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=c4373895d771e6d7a11f9749db5ebf2f4920ca58
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark arm64/ftrace/minimal-regs
git checkout c4373895d771e6d7a11f9749db5ebf2f4920ca58
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 error/warnings (new ones prefixed by >>):
In file included from arch/powerpc/kernel/asm-offsets.c:36:
In file included from arch/powerpc/include/asm/dbell.h:17:
In file included from arch/powerpc/include/asm/kvm_ppc.h:19:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/ftrace.h:23:
>> arch/powerpc/include/asm/ftrace.h:48:50: warning: declaration of 'struct ftrace_refs' will not be visible outside of this function [-Wvisibility]
ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs)
^
>> arch/powerpc/include/asm/ftrace.h:50:35: error: incomplete definition of type 'struct ftrace_refs'
return instruction_pointer(&fregs->regs)
~~~~~^
arch/powerpc/include/asm/ftrace.h:48:50: note: forward declaration of 'struct ftrace_refs'
ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs)
^
>> arch/powerpc/include/asm/ftrace.h:50:42: error: expected ';' after return statement
return instruction_pointer(&fregs->regs)
^
;
1 warning and 2 errors generated.
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" (157199 bytes)
Powered by blists - more mailing lists