Files
Albert I 01b2b9fbcc 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 ac0d234fe5 introduced with Linux 4.14.286 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
Change-Id: I267fd77e94314f12a02b7d1815540264bfb2aeee
Signed-off-by: Albert I <kras@raphielgang.org>
[dereference23: Forward port to msm-4.14]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2024-01-31 08:58:37 +01:00
..