Whamcloud - gitweb
LU-18876 misc: make dbgcksum_file_name static 29/58629/5
authorTimothy Day <timday@amazon.com>
Wed, 2 Apr 2025 18:30:27 +0000 (14:30 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 16 Apr 2025 20:44:52 +0000 (20:44 +0000)
commit5624256e6811a5c36f1d6a1724705ee170aa5364
tree282ff315a514a6e31d4578a4a52c78946b795895
parentec4d9693d1386a1cddfeb59b90225c88782c062c
LU-18876 misc: make dbgcksum_file_name static

The global variable dbgcksum_file_name is defined
twice: once in OSC and another time in target. This
causes a linker error when the Lustre modules are
compiled into the static kernel image.

Resolve this by making both instances local to
the functions that require them using
OBD_ALLOC()/FREE().

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I37ac4c60754082561a65e61ab2d956d68555394f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58629
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_request.c
lustre/target/tgt_handler.c