Re: FAILED: patch "[PATCH] bcache: return 0 from bch_debug_init() if CONFIG_DEBUG_FS=n" failed to apply to 4.16-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg!

2018-05-20 11:04 GMT+02:00 Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>:
> On Sun, May 20, 2018 at 10:59:32AM +0200, Kai Krakow wrote:
>> Hey Greg!
>>
>> The v1 version applied for me but it shows a compiler warning. I didn't try
>> the newer version yet.
>>
>> I could prepare a back-ported version.
>
> Backported would be good.

Currently on the way. I'm not much into kernel development so I can
only apply on 4.16.9, reboot, and check if it works. Hope that's okay.

How should it be tagged then? Should I add my "Signed-off-by" or another line?

Should it be sent as a v5 version of the patch?


> Also, the code really is wrong even with this change.  No code path
> should ever do anything different if debugfs is enabled or not, or based
> on the return value of a debugfs call.  No need to check anything here
> at all, the function should be:
>
> void __init bch_debug_init(void)
> {
>         bcache_debug = debugfs_create_dir("bcache", NULL);
> }
>
> That's it, no checking, and all is fine and good.  Any result of a
> debugfs call can always be fed back into another debugfs call with no
> harm or errors happening.

I'll try to figure out if this works, and only then send the patch.

Regards,
Kai



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux