Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690926 - sys-kernel/kpatch-0.6.3[kmod]: kmod/core/core.c:143:15: error: variable ‘trace’ has initializer but incomplete type
Summary: sys-kernel/kpatch-0.6.3[kmod]: kmod/core/core.c:143:15: error: variable ‘trac...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alice Ferrazzi
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-28 17:31 UTC by Stefan Strogin
Modified: 2019-08-01 13:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,13.35 KB, text/plain)
2019-07-28 17:31 UTC, Stefan Strogin
Details
config.gz (config.gz,35.73 KB, application/gzip)
2019-07-29 02:04 UTC, Stefan Strogin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Strogin gentoo-dev 2019-07-28 17:31:59 UTC
Created attachment 584912 [details]
build.log

USE="kmod kpatch kpatch-build -contrib -doc -test"

make -C core
make[1]: Entering directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core'
make -C /lib/modules/5.2.3-gentoo/build M=/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core kpatch.ko
make[2]: Entering directory '/usr/src/linux-5.2.3-gentoo'
  CC [M]  /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.o
/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:143:15: error: variable ‘trace’ has initializer but incomplete type
  143 | static struct stack_trace trace = {
      |               ^~~~~~~~~~~
/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:144:3: error: ‘struct stack_trace’ has no member named ‘max_entries’
  144 |  .max_entries = ARRAY_SIZE(stack_entries),
      |   ^~~~~~~~~~~
In file included from ./include/linux/list.h:9,
                 from ./include/linux/module.h:9,
                 from /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:37:
./include/linux/kernel.h:47:25: warning: excess elements in struct initializer
   47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                         ^
/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:144:17: note: in expansion of macro ‘ARRAY_SIZE’
  144 |  .max_entries = ARRAY_SIZE(stack_entries),
      |                 ^~~~~~~~~~
./include/linux/kernel.h:47:25: note: (near initialization for ‘trace’)
   47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                         ^
/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:144:17: note: in expansion of macro ‘ARRAY_SIZE’
  144 |  .max_entries = ARRAY_SIZE(stack_entries),
      |                 ^~~~~~~~~~
/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:145:3: error: ‘struct stack_trace’ has no member named ‘entries’
  145 |  .entries = &stack_entries[0],
      |   ^~~~~~~
/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.c:145:13: warning: excess elements in struct initializer
  145 |  .entries = &stack_entries[0],
(...)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:279: /var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core/core.o] Error 1
make[2]: *** [Makefile:1746: kpatch.o] Error 2
make[2]: Leaving directory '/usr/src/linux-5.2.3-gentoo'
make[1]: *** [Makefile:13: kpatch.ko] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod/core'
make: *** [Makefile:7: all] Error 2
make: Leaving directory '/var/tmp/portage/sys-kernel/kpatch-0.6.3/work/kpatch-0.6.3/kmod'
Comment 1 Stefan Strogin gentoo-dev 2019-07-29 02:04:29 UTC
Created attachment 584964 [details]
config.gz

5.2.3-gentoo
Comment 2 Stefan Strogin gentoo-dev 2019-08-01 13:19:27 UTC
See also: https://github.com/dynup/kpatch/issues/966