Files
Albert I e8688a9bc4 qcom: Resolve section mismatches due to EXPORT_SYMBOL() on __init
Mainline kernel documentation has already warned this in advance:

  Note that it makes no sense for a function marked with __init to be exported
  to modules with EXPORT_SYMBOL() or EXPORT_SYMBOL_GPL()- this will break.

Commit 1b9980fb24 introduced with Linux 4.9.321 fixes modpost behavior so the
previously uncaught poor use of EXPORT_SYMBOL() on __init functions were caught
by the script for good.

While this commit is intended to resolve such bad behavior, this also acts as a
cleanup commit for such functions as there are no other drivers that need to
call affected __init functions (at least within kernel itself, and we shouldn't
unless you're techpack/audio). We make them static instead in this case.

Link: https://www.kernel.org/doc/html/latest/kernel-hacking/hacking.html?highlight=export_symbol
Signed-off-by: Albert I <kras@raphielgang.org>
2022-07-06 03:09:24 +08:00
..