[madvenka786:orc_v2 7/20] include/asm-generic/orc_lookup.h:69:25: error: array type has incomplete element type 'struct orc_entry'

From: kernel test robot
Date: Sun May 22 2022 - 17:50:41 EST


tree: https://github.com/madvenka786/linux orc_v2
head: ed9a1d5c036130a53c639eb712485e3d13ab4372
commit: a4c6af5b74f86f69cebc1b18d8a31a3beff7cd8e [7/20] objtool: Reorganize ORC kernel code
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220523/202205230515.qgof50pO-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/madvenka786/linux/commit/a4c6af5b74f86f69cebc1b18d8a31a3beff7cd8e
git remote add madvenka786 https://github.com/madvenka786/linux
git fetch --no-tags madvenka786 orc_v2
git checkout a4c6af5b74f86f69cebc1b18d8a31a3beff7cd8e
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from arch/x86/um/../kernel/module.c:26:
>> include/asm-generic/orc_lookup.h:69:25: error: array type has incomplete element type 'struct orc_entry'
69 | extern struct orc_entry __start_orc_unwind[];
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/orc_lookup.h:70:25: error: array type has incomplete element type 'struct orc_entry'
70 | extern struct orc_entry __stop_orc_unwind[];
| ^~~~~~~~~~~~~~~~~


vim +69 include/asm-generic/orc_lookup.h

65
66 extern bool orc_init;
67 extern int __start_orc_unwind_ip[];
68 extern int __stop_orc_unwind_ip[];
> 69 extern struct orc_entry __start_orc_unwind[];
70 extern struct orc_entry __stop_orc_unwind[];
71

--
0-DAY CI Kernel Test Service
https://01.org/lkp