Re: mmotm 2020-01-28-20-05 uploaded (net/mptcp/subflow.c)

From: Randy Dunlap
Date: Tue Jan 28 2020 - 23:39:12 EST


On 1/28/20 8:06 PM, akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> The mm-of-the-moment snapshot 2020-01-28-20-05 has been uploaded to
>
> http://www.ozlabs.org/~akpm/mmotm/
>
> mmotm-readme.txt says
>
> README for mm-of-the-moment:
>
> http://www.ozlabs.org/~akpm/mmotm/
>
> This is a snapshot of my -mm patch queue. Uploaded at random hopefully
> more than once a week.
>

Lots of build errors when CONFIG_PROC_FS is not set/enabled:

(truncation of around 500 lines of errors & warnings:)

In file included from ../include/asm-generic/percpu.h:7:0,
from ../arch/x86/include/asm/percpu.h:556,
from ../arch/x86/include/asm/preempt.h:6,
from ../include/linux/preempt.h:78,
from ../include/linux/spinlock.h:51,
from ../include/linux/seqlock.h:36,
from ../include/linux/time.h:6,
from ../include/linux/stat.h:19,
from ../include/linux/module.h:13,
from ../net/mptcp/subflow.c:10:
../net/mptcp/subflow.c: In function âmptcp_subflow_create_socketâ:
../net/mptcp/subflow.c:624:25: error: âstruct netns_coreâ has no member named âsock_inuseâ
this_cpu_add(*net->core.sock_inuse, 1);
^
../include/linux/percpu-defs.h:219:47: note: in definition of macro â__verify_pcpu_ptrâ
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
../include/linux/percpu-defs.h:509:33: note: in expansion of macro â__pcpu_size_callâ
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~
../net/mptcp/subflow.c:624:2: note: in expansion of macro âthis_cpu_addâ
this_cpu_add(*net->core.sock_inuse, 1);
^~~~~~~~~~~~
../net/mptcp/subflow.c:624:25: error: âstruct netns_coreâ has no member named âsock_inuseâ
this_cpu_add(*net->core.sock_inuse, 1);
^
../include/linux/percpu-defs.h:376:16: note: in definition of macro â__pcpu_size_callâ
switch(sizeof(variable)) { \
^~~~~~~~
../net/mptcp/subflow.c:624:2: note: in expansion of macro âthis_cpu_addâ
this_cpu_add(*net->core.sock_inuse, 1);
^~~~~~~~~~~~
In file included from ../arch/x86/include/asm/preempt.h:6:0,
from ../include/linux/preempt.h:78,
from ../include/linux/spinlock.h:51,
from ../include/linux/seqlock.h:36,
from ../include/linux/time.h:6,
from ../include/linux/stat.h:19,
from ../include/linux/module.h:13,
from ../net/mptcp/subflow.c:10:
../net/mptcp/subflow.c:624:25: error: âstruct netns_coreâ has no member named âsock_inuseâ
this_cpu_add(*net->core.sock_inuse, 1);
^
../arch/x86/include/asm/percpu.h:129:17: note: in definition of macro âpercpu_add_opâ
typedef typeof(var) pao_T__; \
^~~
../include/linux/percpu-defs.h:377:11: note: in expansion of macro âthis_cpu_add_1â
case 1: stem##1(variable, __VA_ARGS__);break; \
^~~~
../include/linux/percpu-defs.h:509:33: note: in expansion of macro â__pcpu_size_callâ
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~
../net/mptcp/subflow.c:624:2: note: in expansion of macro âthis_cpu_addâ
this_cpu_add(*net->core.sock_inuse, 1);
^~~~~~~~~~~~
../net/mptcp/subflow.c:624:25: error: âstruct netns_coreâ has no member named âsock_inuseâ
this_cpu_add(*net->core.sock_inuse, 1);
^
../arch/x86/include/asm/percpu.h:138:17: note: in definition of macro âpercpu_add_opâ
switch (sizeof(var)) { \
^~~
../include/linux/percpu-defs.h:377:11: note: in expansion of macro âthis_cpu_add_1â
case 1: stem##1(variable, __VA_ARGS__);break; \
^~~~
../include/linux/percpu-defs.h:509:33: note: in expansion of macro â__pcpu_size_callâ
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~
../net/mptcp/subflow.c:624:2: note: in expansion of macro âthis_cpu_addâ
this_cpu_add(*net->core.sock_inuse, 1);
^~~~~~~~~~~~
../net/mptcp/subflow.c:624:25: error: âstruct netns_coreâ has no member named âsock_inuseâ
this_cpu_add(*net->core.sock_inuse, 1);
^
../arch/x86/include/asm/percpu.h:141:45: note: in definition of macro âpercpu_add_opâ
asm qual ("incb "__percpu_arg(0) : "+m" (var)); \
^~~
../include/linux/percpu-defs.h:377:11: note: in expansion of macro âthis_cpu_add_1â
case 1: stem##1(variable, __VA_ARGS__);break; \
^~~~
../include/linux/percpu-defs.h:509:33: note: in expansion of macro â__pcpu_size_callâ
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~
../net/mptcp/subflow.c:624:2: note: in expansion of macro âthis_cpu_addâ
this_cpu_add(*net->core.sock_inuse, 1);
^~~~~~~~~~~~
../net/mptcp/subflow.c:624:25: error: âstruct netns_coreâ has no member named âsock_inuseâ
this_cpu_add(*net->core.sock_inuse, 1);
^
../arch/x86/include/asm/percpu.h:143:45: note: in definition of macro âpercpu_add_opâ
asm qual ("decb "__percpu_arg(0) : "+m" (var)); \
^~~
../include/linux/percpu-defs.h:377:11: note: in expansion of macro âthis_cpu_add_1â
case 1: stem##1(variable, __VA_ARGS__);break; \
^~~~
../include/linux/percpu-defs.h:509:33: note: in expansion of macro â__pcpu_size_callâ
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~
../net/mptcp/subflow.c:624:2: note: in expansion of macro âthis_cpu_addâ
this_cpu_add(*net->core.sock_inuse, 1);
^~~~~~~~~~~~
../net/mptcp/subflow.c:624:25: error: âstruct netns_coreâ has no member named âsock_inuseâ
this_cpu_add(*net->core.sock_inuse, 1);
^




--
~Randy
Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>