Skip to contentSkip to conversation

: Hide netlbl_unlabel_audit_addr6 under ifdef CONFIG_IPV6.

PATCH Applied Pavel Emelyanov 2 participants 2 messages Feb 7, 2008 – Feb 13, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 : Hide netlbl_unlabel_audit_addr6 under ifdef CONFIG_IPV6.

This one is called from under this config only, so move it in the same place.

---
 net/netlabel/netlabel_unlabeled.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
net/netlabel/netlabel_unlabeled.c +2 -0
index 3587874..3e745b7 100644
@@ -180,6 +180,7 @@ static void netlbl_unlabel_audit_addr4(struct audit_buffer *audit_buf,
 	}
 }
 
+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
 /**
  * netlbl_unlabel_audit_addr6 - Audit an IPv6 address
  * @audit_buf: audit buffer
@@ -213,6 +214,7 @@ static void netlbl_unlabel_audit_addr6(struct audit_buffer *audit_buf,
 		audit_log_format(audit_buf, " src_prefixlen=%d", mask_len);
 	}
 }
+#endif /* IPv6 */
 
 /*
  * Unlabeled Connection Hash Table Functions
Signature · 1 line
1.5.3.4