On 2/13/20 2:39 PM, Greg Kroah-Hartman wrote:
On Thu, Feb 13, 2020 at 02:30:09PM -0800, John Hubbard wrote:
On 2/9/20 2:55 AM, Greg Kroah-Hartman wrote:
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this.
Should we follow that line of reasoning further, and simply return void from the debugfs functions--rather than playing whack-a-mole with this indefinitely?
That is what we (well I) have been doing. Look at all of the changes that have happened to include/linux/debugfs.h over the past few releases. I'm slowly winnowing down the api to make it impossible to get wrong for this type of thing, and am almost there.
Oops, I see now that you have already been very busy with this. :) Looking good...
thanks,