Re: [PATCH] [v2] debugobjects: fix debug_objects_freed accounting

2018-02-22 Thread Waiman Long
On 02/22/2018 10:52 AM, Arnd Bergmann wrote: > The removal of the batched object freeing has caused the debug_objects_freed > to become read-only, and the reading is inside an ifdef, so gcc warns that it > is completely unused without CONFIG_DEBUG_FS: > > lib/debugobjects.c:71:14: error: 'debug_obj

Re: [PATCH] [v2] debugobjects: fix debug_objects_freed accounting

2018-02-22 Thread Yang Shi
On 2/22/18 7:52 AM, Arnd Bergmann wrote: The removal of the batched object freeing has caused the debug_objects_freed to become read-only, and the reading is inside an ifdef, so gcc warns that it is completely unused without CONFIG_DEBUG_FS: lib/debugobjects.c:71:14: error: 'debug_objects_free

[PATCH] [v2] debugobjects: fix debug_objects_freed accounting

2018-02-22 Thread Arnd Bergmann
The removal of the batched object freeing has caused the debug_objects_freed to become read-only, and the reading is inside an ifdef, so gcc warns that it is completely unused without CONFIG_DEBUG_FS: lib/debugobjects.c:71:14: error: 'debug_objects_freed' defined but not used [-Werror=unused-vari