Fix another error in conditional compilation; plus some additional cosmetic changes

This commit is contained in:
Gregory Nutt 2015-01-24 09:04:28 -06:00
parent 5060c35094
commit d84abfafc4
2 changed files with 9 additions and 7 deletions

14
Kconfig
View file

@ -390,10 +390,6 @@ config DEBUG
Note that enabling this option by itself does not produce debug output. Note that enabling this option by itself does not produce debug output.
Debug output must also be selected on a subsystem-by-subsystem basis. Debug output must also be selected on a subsystem-by-subsystem basis.
config ARCH_HAVE_STACKCHECK
bool
default n
config ARCH_HAVE_HEAPCHECK config ARCH_HAVE_HEAPCHECK
bool bool
default n default n
@ -668,13 +664,19 @@ config DEBUG_WATCHDOG
endif # DEBUG endif # DEBUG
config ARCH_HAVE_STACKCHECK
bool
default n
config STACK_COLORATION config STACK_COLORATION
bool "Stack coloration" bool "Stack coloration"
default n default n
depends on ARCH_HAVE_STACKCHECK && !DEBUG_STACK depends on ARCH_HAVE_STACKCHECK
---help--- ---help---
Enable stack coloration to initialize the stack memory to the value Enable stack coloration to initialize the stack memory to the value
of STACK_COLOR and use the stack checking API in a non debug build. of STACK_COLOR and enable the stack checking APIs that can be used
to monitor the level of stack usage.
Only supported by a few architectures. Only supported by a few architectures.
config DEBUG_SYMBOLS config DEBUG_SYMBOLS

View file

@ -175,7 +175,7 @@ struct ipv6_hdr_s
#endif /* CONFIG_NET_IPv6 */ #endif /* CONFIG_NET_IPv6 */
#ifdef CONFIG_NET_STATISTICS #ifdef CONFIG_NET_STATISTICS
#ifdef CONFIG_NET_IPv6 #ifdef CONFIG_NET_IPv4
struct ipv4_stats_s struct ipv4_stats_s
{ {
net_stats_t drop; /* Number of dropped packets at the IP layer */ net_stats_t drop; /* Number of dropped packets at the IP layer */