The symbol 'mcount' has EXPORT_SYMBOL_GPL attached to it. This is because
"things that use this symbol are too chummy with kernel internals to not be
derivative". However, the symbol may or may not actually be referenced by a
given module, depending on the setting of CONFIG_FTRACE. This leads to an
interesting result: The module may or may not be too chummy depending on a
variable outside its control, and the module source code doesn't have any say
in the matter. So we have a .c file that *is* a derivative work if the kernel
is built one way, and is *not* if the kernel is built another. Worse yet,
it *also* depends at runtime on the setting of /proc/sys/kernel/ftrace_enabled
But it's the SAME EXACT SOURCE. And since the source file isn't called
schrodinger.c, I believe the following patch is in order..
(As an aside, arch/um/kernel/gprof_syms.c already lists mcount as a
SYMBOL, not a SYMBOL_GPL - yet another inconsistency.