History

apparmor: Fix warning about unused function apparmor_ipv6_postroute

when compiled without CONFIG_IPV6: security/apparmor/lsm.c:1601:21: warning: ‘apparmor_ipv6_postroute’ defined but not used [-Wunused-function] static unsigned int apparmor_ipv6_postroute(void *priv, ^~~~~~~~~~~~~~~~~~~~~~~

Petr Vorel committed 8 years ago

Commit 43aa09f1 parent 5f215851 file · +2 −0Browse files

Unified · Split

security/apparmor/lsm.c+2−0
@@ -1598,12 +1598,14 @@ static unsigned int apparmor_ipv4_postroute(void *priv, · 1597 unmodified lines
1598 return apparmor_ip_postroute(priv, skb, state);1598 return apparmor_ip_postroute(priv, skb, state);
1599}1599}
1600 1600
1601#if IS_ENABLED(CONFIG_IPV6)
1601static unsigned int apparmor_ipv6_postroute(void *priv,1602static unsigned int apparmor_ipv6_postroute(void *priv,
1602 struct sk_buff *skb,1603 struct sk_buff *skb,
1603 const struct nf_hook_state *state)1604 const struct nf_hook_state *state)
1604{1605{
1605 return apparmor_ip_postroute(priv, skb, state);1606 return apparmor_ip_postroute(priv, skb, state);
1606}1607}
1608#endif
1607 1609
1608static const struct nf_hook_ops apparmor_nf_ops[] = {1610static const struct nf_hook_ops apparmor_nf_ops[] = {
1609 {1611 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t