45d20e8348
a disabled Kconfig option results in a reference to a not implemented
routine when the IS_ENABLED() macro is used for both conditional
implementation of the routine as well as a C language source code test
at the call site -- the "if (0) func();" construct only gets eliminated
later by the optimizer, while the compiler already has emitted its
warning about "func()" being undeclared
provide an empty implementation for the mpc512x_setup_diu() and
mpc512x_init_diu() routines in case of the disabled option, to avoid the
compiler warning which is considered fatal and breaks compilation
the bug appeared with commit
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
clock.c | ||
mpc512x.h | ||
mpc512x_generic.c | ||
mpc512x_shared.c | ||
mpc5121_ads.c | ||
mpc5121_ads.h | ||
mpc5121_ads_cpld.c | ||
pdm360ng.c |