Re: [PATCH] debugobjects: fix debug_objects_freed accounting

2018-02-22 Thread Arnd Bergmann
On Thu, Feb 22, 2018 at 2:58 PM, Waiman Long wrote: > On 02/22/2018 06:45 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

Re: [PATCH] debugobjects: fix debug_objects_freed accounting

2018-02-22 Thread Waiman Long
On 02/22/2018 06:45 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

[PATCH] 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