Re: [PATCH -next -v2 5/8] lockdown: drop an unused include and move lockdown_reasons

From
sashiko-bot@kernel.org
Date
2026-11-10 13:11:17
Reply to
Cai Xinchen, 2026-11-10
linux/export.h is not needed since the file has no EXPORT_SYMBOL() usage.

lockdown_reasons[] is only used by the lockdown LSM after the audit data
was removed from lsm_audit.  Move it into security/lockdown/lockdown.c,
make it static, and drop the now stale extern declaration.  The existing
enum comment in include/linux/security.h already pointed at
security/lockdown/lockdown.c and becomes accurate now that the array has
moved there.

No functional change.

Signed-off-by: Cai Xinchen <redacted>
Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110132818.2231593-1-caixinchen1@huawei.com?part=5
Thread (18 messages) 18 messages, 3 authors, last reply 6d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help