]> www.infradead.org Git - users/hch/misc.git/commit
microblaze: Export xmb_manager functions
authorMichal Simek <michal.simek@amd.com>
Wed, 19 Jun 2024 12:11:32 +0000 (14:11 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 2 Oct 2024 07:18:54 +0000 (09:18 +0200)
commitbadf752b5e4b17d281f93f409d4718388ff912e6
tree930cd258dc6c42b3bfa885743beb945b8093afc2
parent9852d85ec9d492ebef56dc5f229416c925758edc
microblaze: Export xmb_manager functions

When TMR_MANAGER is enabled as module there is a need to export functions
which are present in architecture code.

It has been found by running:
make W=1 C=1 allmodconfig
sed -i -e 's/WERROR=y/WERROR=n/g' .config
make C=1 W=1

which errors out like this:
ERROR: modpost: "xmb_manager_register" [drivers/misc/xilinx_tmr_manager.ko] undefined!
ERROR: modpost: "xmb_inject_err" [drivers/misc/xilinx_tmr_inject.ko] undefined!

Fixes: a5e3aaa654c1 ("microblaze: Add xmb_manager_register function")
Reported-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/e322dbbbde0feef83f44304ea13249d365d1dc5f.1718799090.git.michal.simek@amd.com
arch/microblaze/kernel/microblaze_ksyms.c