ANDROID: dm: android-verity: hide __setup functions in loadable module
The dm-android-verity driver can be built-in, or a loadable module. In the latter case, we get a couple of harmless warnings: drivers/md/dm-android-verity.c:68:19: warning: 'verified_boot_state_param' defined but not used [-Wunused-function] drivers/md/dm-android-verity.c:76:19: warning: 'verity_mode_param' defined but not used [-Wunused-function] drivers/md/dm-android-verity.c:84:19: warning: 'verity_keyid_param' defined but not used [-Wunused-function] drivers/md/dm-android-verity.c:92:19: warning: 'verity_buildvariant' defined but not used [-Wunused-function] The problem is that __setup() is ignored for modules. By adding an #ifdef around all four definitions, we make this explicit to the compiler. Link: https://kernelci.org/build/id/5910609459b514c7cbb12d50/logs/ Fixes: cbad12fb ("ANDROID: dm: android-verity: Allow android-verity to be compiled as an independent module") Cc: Badhri Jagan Sridharan <Badhri@google.com> Signed-off-by:Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com>
Loading
Please register or sign in to comment