Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 393b7133 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Amit Pundir
Browse files

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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent d774af91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment