OSDN Git Service

net: ppp: Fix modular build for PPPOLAC and PPPOPNS
authorGuenter Roeck <groeck@chromium.org>
Tue, 1 Mar 2016 17:47:32 +0000 (09:47 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:19:56 +0000 (16:49 +0530)
commit9752f90bc23d8ee78ee9d8613b89436e4fc505af
treedc657570500c8822311460c703e081e20e26c9ce
parenta9c7e0955a71e12167d763ef286c80acb5e5fb45
net: ppp: Fix modular build for PPPOLAC and PPPOPNS

Unlike other configurations in net/ppp, PPPOLAC and PPPOPNS
are defined as boolean configuration options. In allmodconfig builds
(or, specifically, if PPP and some of the other PPP protocols were
built as modules), this resulted in build errors such as the following,
since pppox was built both as module and into the kernel.

ERROR: "pppox_ioctl" [net/l2tp/l2tp_ppp.ko] undefined!
ERROR: "unregister_pppox_proto" [net/l2tp/l2tp_ppp.ko] undefined!
ERROR: "register_pppox_proto" [net/l2tp/l2tp_ppp.ko] undefined!
ERROR: "pppox_unbind_sock" [net/l2tp/l2tp_ppp.ko] undefined!

Fix the problem by defining PPPOLAC and PPPOPNS tristate.

Signed-off-by: Guenter Roeck <groeck@chromium.org>
drivers/net/ppp/Kconfig