]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: vme: vme_user: fix up const issue in vme_bus_match()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 14:53:33 +0000 (16:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 15:31:46 +0000 (17:31 +0200)
commit1a44c265c90cf0fb51694b90c8b48a83c69479ed
tree37c53f79cb746d721c331ce23dd18fce6a6e9f55
parentf8b067f8776f59e2321e3721c190977fef607d2a
staging: vme: vme_user: fix up const issue in vme_bus_match()

vme_bus_match takes a const pointer and casts it away with
container_of() which is generally not a good idea.  Fix this up by
properly marking the output as const.

Link: https://lore.kernel.org/r/2025052132-giddiness-slain-5ba1@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme.c