[vserver] 4.1.35 vserver patched kernel compile fails

From: Tor Rune Skoglund <trs_at_swi.no>
Date: Tue 08 Nov 2016 - 18:13:12 GMT
Message-ID: <24f8da16-ad0d-1100-b352-33273eaa5065@swi.no>

Hi list and Herbert,

In the process of upgrading our systems to new kernels with the new and
shiny 4.1.35 patch, I run into the following gcc error when compiling
the patched kernel.

I *presume* that this is since implicit function declaration in the
vserver code raise an error due to the
-Werror=implicit-function-declaration parameter for gcc. However, this
is with default gcc settings on Gentoo, so in principle (and to increase
"user-friendliness" for those that want to use vserver), maybe it should
just work out of the box?

Anyway, if someone care to comment before I start diggin further, I
would be glad. :)

gcc is version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4), on amd64.

make output:
[...]
  CC kernel/vserver/limit.o
kernel/vserver/limit.c: In function ‘vx_vsi_meminfo’:
kernel/vserver/limit.c:264:2: error: implicit declaration of function
‘mem_cgroup_from_task’ [-Werror=implicit-function-declaration]
  mcg = mem_cgroup_from_task(current);
  ^
kernel/vserver/limit.c:264:6: warning: assignment makes pointer from
integer without a cast
  mcg = mem_cgroup_from_task(current);
      ^
kernel/vserver/limit.c:269:2: error: implicit declaration of function
‘mem_cgroup_mem_limit_pages’ [-Werror=implicit-function-declaration]
  res_limit = mem_cgroup_mem_limit_pages(mcg);
  ^
kernel/vserver/limit.c:270:2: error: implicit declaration of function
‘mem_cgroup_mem_usage_pages’ [-Werror=implicit-function-declaration]
  res_usage = mem_cgroup_mem_usage_pages(mcg);
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target 'kernel/vserver/limit.o'
failed
make[2]: *** [kernel/vserver/limit.o] Error 1
scripts/Makefile.build:403: recipe for target 'kernel/vserver' failed
make[1]: *** [kernel/vserver] Error 2
Makefile:948: recipe for target 'kernel' failed
make: *** [kernel] Error 2

- Tor Rune Skoglund
Received on Tue Nov 8 18:10:05 2016

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 08 Nov 2016 - 18:10:05 GMT by hypermail 2.1.8