Skip to content

Commit c82faa8

Browse files
jonhunterMikulas Patocka
authored andcommitted
dm: Don't warn if IMA_DISABLE_HTABLE is not enabled
Commit f1cd6cb ("dm ima: add a warning in dm_init if duplicate ima events are not measured") added a warning message if CONFIG_IMA is enabled but CONFIG_IMA_DISABLE_HTABLE is not to inform users. When enabling CONFIG_IMA, CONFIG_IMA_DISABLE_HTABLE is disabled by default and so warning is seen. Therefore, it seems more appropriate to make this an INFO level message than warning. If this truly is a warning, then maybe CONFIG_IMA_DISABLE_HTABLE should default to y if CONFIG_IMA is enabled. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
1 parent 23f57ed commit c82faa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/md/dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static int __init dm_init(void)
272272
int r, i;
273273

274274
#if (IS_ENABLED(CONFIG_IMA) && !IS_ENABLED(CONFIG_IMA_DISABLE_HTABLE))
275-
DMWARN("CONFIG_IMA_DISABLE_HTABLE is disabled."
275+
DMINFO("CONFIG_IMA_DISABLE_HTABLE is disabled."
276276
" Duplicate IMA measurements will not be recorded in the IMA log.");
277277
#endif
278278

0 commit comments

Comments
 (0)