landlock: fix typo in landlock_append_net_rule() stub function
Subsystems (2)
PATCH 1/1 landlock: fix typo in landlock_append_net_rule() stub function
From: Arnd Bergmann <[email protected]>
There is an extraneous semicolon in the empty stub helper for this function tha causes randconfig builds to break:
In file included from security/landlock/setup.c:17:security/landlock/net.h:28:1: error: expected identifier or '(' before '{' token security/landlock/net.h:26:1: error: 'landlock_append_net_rule' declared 'static' but never defined [-Werror=unused-function]
--- security/landlock/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/landlock/net.h +1 -1
@@ -24,7 +24,7 @@ static inline void landlock_add_net_hooks(void)static inline int landlock_append_net_rule (struct landlock_ruleset *const ruleset,const u16 port, -access_mask_t access_rights); +access_mask_t access_rights) {return -EAFNOSUPPORT ; }
Signature · 1 line
2.39.2
Mickaël Salaün
maintainerThanks Arnd, I fixed the issue and squashed it in -next.
There will be a next patch series including other fixes.
Quoted 31 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
There is an extraneous semicolon in the empty stub helper for this function tha causes randconfig builds to break:
In file included from
security/landlock/setup.c:17:security/landlock/net.h:28:1: error: expected identifier or '(' before '{' tokensecurity/landlock/net.h:26:1: error: 'landlock_append_net_rule' declared 'static' but never defined [-Werror=unused-function]Fixes 614d46b333ab9 ("landlock: Add network rules and TCP hooks support")Signed-off-by Arnd Bergmann <[email protected]>--- security/landlock/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)security/landlock/net.h +1
-1@@ -24,7 +24,7 @@ static inline void landlock_add_net_hooks(void)static inline int landlock_append_net_rule (struct landlock_ruleset *const ruleset,const u16 port, -access_mask_t access_rights); +access_mask_t access_rights) {return -EAFNOSUPPORT ; }Signature · 1 line
2.39.2