]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cleanup: fix scoped_class()
authorChristian Brauner <brauner@kernel.org>
Sun, 2 Nov 2025 23:12:40 +0000 (00:12 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 4 Nov 2025 11:35:49 +0000 (12:35 +0100)
commit4e97bae1b412cd6ed8053b3d8a242122952985cc
treed6f2adabcb5d7a32d6724f33213fc7a5f69656ca
parentdcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa
cleanup: fix scoped_class()

This is a class, not a guard so why on earth is it checking for guard
pointers or conditional lock acquisition? None of it makes any sense at
all.

I'm not sure what happened back then. Maybe I had a brief psychedelic
period that I completely forgot about and spaced out into a zone where
that initial macro implementation made any sense at all.

Link: https://patch.msgid.link/20251103-work-creds-init_cred-v1-1-cb3ec8711a6a@kernel.org
Fixes: 5c21c5f22d07 ("cleanup: add a scoped version of CLASS()")
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/cleanup.h