* [PATCH net-next] genetlink: make info in GENL_REQ_ATTR_CHECK() const
@ 2024-02-22 22:28 Jakub Kicinski
2024-02-24 3:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Kicinski @ 2024-02-22 22:28 UTC (permalink / raw)
To: davem; +Cc: netdev, edumazet, pabeni, Jakub Kicinski
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.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
---
include/net/genetlink.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/genetlink.h b/include/net/genetlink.h
index ecadba836ae5..9ece6e5a3ea8 100644
--- a/include/net/genetlink.h
+++ b/include/net/genetlink.h
@@ -153,7 +153,7 @@ static inline void *genl_info_userhdr(const struct genl_info *info)
/* Report that a root attribute is missing */
#define GENL_REQ_ATTR_CHECK(info, attr) ({ \
- struct genl_info *__info = (info); \
+ const struct genl_info *__info = (info); \
\
NL_REQ_ATTR_CHECK(__info->extack, NULL, __info->attrs, (attr)); \
})
--
2.43.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] genetlink: make info in GENL_REQ_ATTR_CHECK() const
2024-02-22 22:28 [PATCH net-next] genetlink: make info in GENL_REQ_ATTR_CHECK() const Jakub Kicinski
@ 2024-02-24 3:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-02-24 3:10 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: davem, netdev, edumazet, pabeni
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 22 Feb 2024 14:28:19 -0800 you wrote:
> 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.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
>
> [...]
Here is the summary with links:
- [net-next] genetlink: make info in GENL_REQ_ATTR_CHECK() const
https://git.kernel.org/netdev/net-next/c/5fd5403964ec
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-24 3:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22 22:28 [PATCH net-next] genetlink: make info in GENL_REQ_ATTR_CHECK() const Jakub Kicinski
2024-02-24 3:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).