Re: [PATCH] mmc: add ifdef around fault_create_debugfs_attr()

2015-11-10 Thread Ulf Hansson
On 10 November 2015 at 16:04, Adrien Schildknecht wrote: > On Mon, 9 Nov 2015 14:33:11 +0100 > Ulf Hansson wrote: >> On 6 November 2015 at 13:15, Adrien Schildknecht >> wrote: >> > FAIL_MMC_REQUEST can be used without FAULT_INJECTION_DEBUG_FS. >> > In this case fault_create_debugfs_attr() will a

Re: [PATCH] mmc: add ifdef around fault_create_debugfs_attr()

2015-11-10 Thread Adrien Schildknecht
On Mon, 9 Nov 2015 14:33:11 +0100 Ulf Hansson wrote: > On 6 November 2015 at 13:15, Adrien Schildknecht > wrote: > > FAIL_MMC_REQUEST can be used without FAULT_INJECTION_DEBUG_FS. > > In this case fault_create_debugfs_attr() will always return an > > error and lead to the deletion of the whole

Re: [PATCH] mmc: add ifdef around fault_create_debugfs_attr()

2015-11-09 Thread Ulf Hansson
On 6 November 2015 at 13:15, Adrien Schildknecht wrote: > FAIL_MMC_REQUEST can be used without FAULT_INJECTION_DEBUG_FS. > In this case fault_create_debugfs_attr() will always return an error and > lead to the deletion of the whole debugfs directory. > > This patch makes sure that FAULT_INJECTION_

[PATCH] mmc: add ifdef around fault_create_debugfs_attr()

2015-11-06 Thread Adrien Schildknecht
FAIL_MMC_REQUEST can be used without FAULT_INJECTION_DEBUG_FS. In this case fault_create_debugfs_attr() will always return an error and lead to the deletion of the whole debugfs directory. This patch makes sure that FAULT_INJECTION_DEBUG_FS is enabled before attempting to create the debugfs atttri