Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dm-verity: fix section mismatch error

The function "__init dm_verity_init" was calling "__exit
dm_verity_verify_sig_exit" and this triggered section mismatch error.

Fix this by dropping the "__exit" tag on dm_verity_verify_sig_exit.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: 033724b1c627A ("dm-verity: add dm-verity keyring")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601210645.11u5Myme-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202601211041.pcTzwcdp-lkp@intel.com/

+2 -2
+1 -1
drivers/md/dm-verity-verify-sig.c
··· 192 192 return 0; 193 193 } 194 194 195 - void __exit dm_verity_verify_sig_exit(void) 195 + void dm_verity_verify_sig_exit(void) 196 196 { 197 197 key_revoke(dm_verity_keyring); 198 198 key_put(dm_verity_keyring);
+1 -1
drivers/md/dm-verity-verify-sig.h
··· 31 31 void verity_verify_sig_opts_cleanup(struct dm_verity_sig_opts *sig_opts); 32 32 33 33 int __init dm_verity_verify_sig_init(void); 34 - void __exit dm_verity_verify_sig_exit(void); 34 + void dm_verity_verify_sig_exit(void); 35 35 36 36 #else 37 37