RE: [PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, Du, Changbin wrote: > > On Fri, 22 Apr 2016, changbin...@intel.com wrote: > > > A bad thing is that debug_object_fixup use the return value for > > > arithmetic operation. It confused me that what is the reall return > > > > What's bad about that? The fact that it's used for a

RE: [PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread Du, Changbin
Hi, > On Fri, 22 Apr 2016, changbin...@intel.com wrote: > > From: "Du, Changbin" > > > > The object debugging infrastructure core provides some fixup callbacks > > for the subsystem who use it. These callbacks are called from the debug > > code whenever a problem in debug_object_init is detected.

Re: [PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, changbin...@intel.com wrote: > From: "Du, Changbin" > > The object debugging infrastructure core provides some fixup callbacks > for the subsystem who use it. These callbacks are called from the debug > code whenever a problem in debug_object_init is detected. And > debugobje

[PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread changbin . du
From: "Du, Changbin" The object debugging infrastructure core provides some fixup callbacks for the subsystem who use it. These callbacks are called from the debug code whenever a problem in debug_object_init is detected. And debugobjects core suppose them returns 1 when the fixup was successful,