aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2016-05-19 15:14:28 +0530
committerAmit Pundir <amit.pundir@linaro.org>2016-05-19 15:18:27 +0530
commit71d97a95427b3c9c11788a8e6dd0117551d29166 (patch)
tree8bb3b20e632191a2d63db6ff1d7decaca1176674
parent2d2129d30505a494f6e5438173b6a5b3839d4fd1 (diff)
ANDROID: dm: update debugfs_create_bool() call
Upstream commit 11f532e698ed (debugfs: Pass bool pointer to debugfs_create_bool()) updated debugfs_create_bool() and it now takes 'bool *' as 4rth argument instead of 'u32 *'. Hence update debugfs_create_bool() call in dm-android-verity, otherwise we run into following warnings: drivers/md/dm-android-verity.c: In function 'dm_android_verity_init': drivers/md/dm-android-verity.c:821:5: warning: passing argument 4 of 'debugfs_create_bool' from incompatible pointer type (u32 *)&target_added); ^ In file included from drivers/md/dm-android-verity.c:16:0: include/linux/debugfs.h:97:16: note: expected 'bool *' but argument is of type 'u32 *' struct dentry *debugfs_create_bool(const char *name, umode_t mode, ^ Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--drivers/md/dm-android-verity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-android-verity.c b/drivers/md/dm-android-verity.c
index 9c26cbb5f179..802c9e5bbb71 100644
--- a/drivers/md/dm-android-verity.c
+++ b/drivers/md/dm-android-verity.c
@@ -818,7 +818,7 @@ static int __init dm_android_verity_init(void)
}
file = debugfs_create_bool("target_added", S_IRUGO, debug_dir,
- (u32 *)&target_added);
+ &target_added);
if (IS_ERR_OR_NULL(file)) {
DMERR("Cannot create android_verity debugfs directory: %ld",
@@ -828,7 +828,7 @@ static int __init dm_android_verity_init(void)
}
file = debugfs_create_bool("verity_enabled", S_IRUGO, debug_dir,
- (u32 *)&verity_enabled);
+ &verity_enabled);
if (IS_ERR_OR_NULL(file)) {
DMERR("Cannot create android_verity debugfs directory: %ld",