audit: use KMEM_CACHE() instead of kmem_cache_create()
authorKunwu Chan <chentao@kylinos.cn>
Wed, 24 Jan 2024 06:02:24 +0000 (14:02 +0800)
committerPaul Moore <paul@paul-moore.com>
Thu, 25 Jan 2024 15:12:22 +0000 (10:12 -0500)
commitaa13b709084a0287ef250a9fbde5993e4dfc3078
tree796789c932e433ecfdf542e3e7904a22991d45e7
parent3104d0e94f7169ab589919f7c4ed6197f0a826cb
audit: use KMEM_CACHE() instead of kmem_cache_create()

Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c