]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/pkey: Build module name array selectively based on kernel config options
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 25 Oct 2024 10:34:31 +0000 (12:34 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:17 +0000 (11:17 +0100)
commiteb37a9aea64d1b3b2944679dc6b85b3bb84053cd
tree0627cb21a9046a2150cf6430b601be1ea3f4c145
parent1bcf8d9a0c3d8b0c706f52c1cb0d523da7dd6361
s390/pkey: Build module name array selectively based on kernel config options

There is a static array of pkey handler kernel module names
used in case the pkey_handler_request_modules() is invoked.
This static array is walked through and if the module is not
already loaded a module_request() is performed.

This patch reworks the code to instead of unconditionally
building up a list of module names into the array, only the
pkey handler modules available based on the current kernel
config options are inserted.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/pkey_base.c