Re: [PATCH] debugobjects: avoid another unused variable warning.

2018-03-13 Thread Yang Shi
On 3/13/18 6:18 AM, Arnd Bergmann wrote: debug_objects_maxchecked is only updated in __debug_check_no_obj_freed(), and only read in debug_objects_maxchecked, unfortunately both of these are optional and depend on different Kconfig symbols. When both CONFIG_DEBUG_OBJECTS_FREE and CONFIG_DEBUG_FS

[PATCH] debugobjects: avoid another unused variable warning.

2018-03-13 Thread Arnd Bergmann
debug_objects_maxchecked is only updated in __debug_check_no_obj_freed(), and only read in debug_objects_maxchecked, unfortunately both of these are optional and depend on different Kconfig symbols. When both CONFIG_DEBUG_OBJECTS_FREE and CONFIG_DEBUG_FS are disabled, we get this warning: lib/debu