2014-11-12 22:33:12

by Jim Davis

[permalink] [raw]
Subject: randconfig build error with next-20141112, in net/sched

Building with the attached random configuration file,

ERROR: "reciprocal_value" [net/sched/sch_sfq.ko] undefined!
ERROR: "reciprocal_value" [net/sched/sch_netem.ko] undefined!


Attachments:
randconfig-1415825765.txt (93.18 kB)

2014-11-13 10:22:52

by Hannes Frederic Sowa

[permalink] [raw]
Subject: Re: randconfig build error with next-20141112, in net/sched

On Mi, 2014-11-12 at 15:33 -0700, Jim Davis wrote:
> Building with the attached random configuration file,
>
> ERROR: "reciprocal_value" [net/sched/sch_sfq.ko] undefined!
> ERROR: "reciprocal_value" [net/sched/sch_netem.ko] undefined!

Thanks for the report. I think moving reciproval_div.o from lib-y to
obj-y should resolve the problem. On it...

The problem with lib-y is, if vmlinux itself doesn't use the symbol,
even if it is EXPORT_SYMBOLED, it won't be linked into the kernel. You
seem to hit a configuration where reciproval_divide wasn't used in the
kernel at all but only in modules, as such it got purged from vmlinux
during linking.

Thanks,
Hannes