You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
ima: Fix fall-through warnings for Clang
[ Upstream commit 28073eb09c ]
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of just
letting the code fall through to the next case.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Stable-dep-of: c7423dbdbc9e ("ima: Handle -ESTALE returned by ima_filter_rule_match()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
576828e59a
commit
d5b227f0d2
@@ -743,6 +743,7 @@ int ima_load_data(enum kernel_load_data_id id, bool contents)
|
||||
pr_err("impossible to appraise a module without a file descriptor. sig_enforce kernel parameter might help\n");
|
||||
return -EACCES; /* INTEGRITY_UNKNOWN */
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -566,6 +566,7 @@ static bool ima_match_rules(struct ima_rule_entry *rule, struct inode *inode,
|
||||
rc = ima_filter_rule_match(secid, rule->lsm[i].type,
|
||||
Audit_equal,
|
||||
rule->lsm[i].rule);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -802,6 +803,7 @@ void __init ima_init_policy(void)
|
||||
add_rules(default_measurement_rules,
|
||||
ARRAY_SIZE(default_measurement_rules),
|
||||
IMA_DEFAULT_POLICY);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user