[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190312170353.062939563@linuxfoundation.org>
Date: Tue, 12 Mar 2019 10:07:17 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org,
Jordan Glover <Golden_Miller83@...tonmail.ch>,
Petr Vorel <pvorel@...e.cz>,
John Johansen <john.johansen@...onical.com>,
Sasha Levin <sashal@...nel.org>
Subject: [PATCH 4.20 057/171] apparmor: Fix warning about unused function apparmor_ipv6_postroute
4.20-stable review patch. If anyone has any objections, please let me know.
------------------
[ Upstream commit a1a02062ad466052a34a8c4323143ccf9726eb52 ]
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,
^~~~~~~~~~~~~~~~~~~~~~~
Reported-by: Jordan Glover <Golden_Miller83@...tonmail.ch>
Tested-by: Jordan Glover <Golden_Miller83@...tonmail.ch>
Signed-off-by: Petr Vorel <pvorel@...e.cz>
Signed-off-by: John Johansen <john.johansen@...onical.com>
Signed-off-by: Sasha Levin <sashal@...nel.org>
---
security/apparmor/lsm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
index 42446a216f3b..7d1eeb084968 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -1598,12 +1598,14 @@ static unsigned int apparmor_ipv4_postroute(void *priv,
return apparmor_ip_postroute(priv, skb, state);
}
+#if IS_ENABLED(CONFIG_IPV6)
static unsigned int apparmor_ipv6_postroute(void *priv,
struct sk_buff *skb,
const struct nf_hook_state *state)
{
return apparmor_ip_postroute(priv, skb, state);
}
+#endif
static const struct nf_hook_ops apparmor_nf_ops[] = {
{
--
2.19.1
Powered by blists - more mailing lists