]> www.infradead.org Git - users/dwmw2/linux.git/commit
genetlink: make info in GENL_REQ_ATTR_CHECK() const
authorJakub Kicinski <kuba@kernel.org>
Thu, 22 Feb 2024 22:28:19 +0000 (14:28 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Feb 2024 02:17:36 +0000 (18:17 -0800)
commit5fd5403964ecf047b03a9608a339bdc26a109f33
tree352b0864d79e2d6452d79fb4f324453bcea36f45
parent6511743e01faa2220c758882d250a2217bde8d0b
genetlink: make info in GENL_REQ_ATTR_CHECK() const

Make the local variable in GENL_REQ_ATTR_CHECK() const.
genl_info_dump() returns a const pointer, so the macro
is currently hard to use in genl dumps.

Link: https://lore.kernel.org/r/20240222222819.156320-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/genetlink.h