Commit 7bd47be
dm table: Fix W=1 build warning when mempool_needs_integrity is unused
The mempool_needs_integrity is unused. This, in particular, prevents
kernel builds with Clang, `make W=1` and CONFIG_WERROR=y:
drivers/md/dm-table.c:1052:7: error: variable 'mempool_needs_integrity' set but not used [-Werror,-Wunused-but-set-variable]
1052 | bool mempool_needs_integrity = t->integrity_supported;
| ^
Fix this by removing the leftover.
Fixes: 105ca2a ("block: split struct bio_integrity_payload")
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>1 parent 0af2f6b commit 7bd47be
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | | - | |
1053 | 1052 | | |
1054 | 1053 | | |
1055 | 1054 | | |
| |||
1074 | 1073 | | |
1075 | 1074 | | |
1076 | 1075 | | |
1077 | | - | |
1078 | | - | |
1079 | 1076 | | |
1080 | 1077 | | |
1081 | 1078 | | |
| |||
0 commit comments