diff options
Diffstat (limited to 'net/netlabel/netlabel_domainhash.c')
| -rw-r--r-- | net/netlabel/netlabel_domainhash.c | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/net/netlabel/netlabel_domainhash.c b/net/netlabel/netlabel_domainhash.c index 3f905e5370c..38204112b9f 100644 --- a/net/netlabel/netlabel_domainhash.c +++ b/net/netlabel/netlabel_domainhash.c @@ -78,7 +78,7 @@ static void netlbl_domhsh_free_entry(struct rcu_head *entry)  	struct netlbl_dom_map *ptr;  	struct netlbl_af4list *iter4;  	struct netlbl_af4list *tmp4; -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  	struct netlbl_af6list *iter6;  	struct netlbl_af6list *tmp6;  #endif /* IPv6 */ @@ -90,7 +90,7 @@ static void netlbl_domhsh_free_entry(struct rcu_head *entry)  			netlbl_af4list_remove_entry(iter4);  			kfree(netlbl_domhsh_addr4_entry(iter4));  		} -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  		netlbl_af6list_foreach_safe(iter6, tmp6,  					    &ptr->type_def.addrsel->list6) {  			netlbl_af6list_remove_entry(iter6); @@ -217,7 +217,7 @@ static void netlbl_domhsh_audit_add(struct netlbl_dom_map *entry,  			cipsov4 = map4->type_def.cipsov4;  			netlbl_af4list_audit_addr(audit_buf, 0, NULL,  						  addr4->addr, addr4->mask); -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  		} else if (addr6 != NULL) {  			struct netlbl_domaddr6_map *map6;  			map6 = netlbl_domhsh_addr6_entry(addr6); @@ -306,7 +306,7 @@ int netlbl_domhsh_add(struct netlbl_dom_map *entry,  	struct netlbl_dom_map *entry_old;  	struct netlbl_af4list *iter4;  	struct netlbl_af4list *tmp4; -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  	struct netlbl_af6list *iter6;  	struct netlbl_af6list *tmp6;  #endif /* IPv6 */ @@ -338,7 +338,7 @@ int netlbl_domhsh_add(struct netlbl_dom_map *entry,  					       &entry->type_def.addrsel->list4)  				netlbl_domhsh_audit_add(entry, iter4, NULL,  							ret_val, audit_info); -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  			netlbl_af6list_foreach_rcu(iter6,  					       &entry->type_def.addrsel->list6)  				netlbl_domhsh_audit_add(entry, NULL, iter6, @@ -365,7 +365,7 @@ int netlbl_domhsh_add(struct netlbl_dom_map *entry,  				ret_val = -EEXIST;  				goto add_return;  			} -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  		netlbl_af6list_foreach_rcu(iter6,  					   &entry->type_def.addrsel->list6)  			if (netlbl_af6list_search_exact(&iter6->addr, @@ -386,7 +386,7 @@ int netlbl_domhsh_add(struct netlbl_dom_map *entry,  			if (ret_val != 0)  				goto add_return;  		} -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  		netlbl_af6list_foreach_safe(iter6, tmp6,  					    &entry->type_def.addrsel->list6) {  			netlbl_af6list_remove_entry(iter6); @@ -510,7 +510,7 @@ int netlbl_domhsh_remove_af4(const char *domain,  	struct netlbl_dom_map *entry_map;  	struct netlbl_af4list *entry_addr;  	struct netlbl_af4list *iter4; -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  	struct netlbl_af6list *iter6;  #endif /* IPv6 */  	struct netlbl_domaddr4_map *entry; @@ -533,7 +533,7 @@ int netlbl_domhsh_remove_af4(const char *domain,  		goto remove_af4_failure;  	netlbl_af4list_foreach_rcu(iter4, &entry_map->type_def.addrsel->list4)  		goto remove_af4_single_addr; -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  	netlbl_af6list_foreach_rcu(iter6, &entry_map->type_def.addrsel->list6)  		goto remove_af4_single_addr;  #endif /* IPv6 */ @@ -644,7 +644,7 @@ struct netlbl_domaddr4_map *netlbl_domhsh_getentry_af4(const char *domain,  	return netlbl_domhsh_addr4_entry(addr_iter);  } -#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) +#if IS_ENABLED(CONFIG_IPV6)  /**   * netlbl_domhsh_getentry_af6 - Get an entry from the domain hash table   * @domain: the domain name to search for  |