Re: [PATCH] arm: mach-tegra: check wether we have debugfs enabled or not

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

 



On Wed, Oct 17, 2012 at 4:12 PM, Russell King - ARM Linux
<linux@xxxxxxxxxxxxxxxx> wrote:
>
> So, you want to make this function hard-fail if a debugfs error occurs
> _or_ debugfs is not configured?  That doesn't seem to be a clever thing
> to do.


I was seeing some places where the check is only for the pointer null
or valid one that is returned by
the debugfs_create_file, and fixed it up using this macro by failing
out even if we dont have debugfs
enabled in kernel.

I am sure that i really dont' know any part of the ARM stuff, tried to
fix this too, because this function
also checks for the null pointer if debugfs_create_file failed to
create a file in debugfs and fails out if
it can't be able to create that, but it wont check for whether we have
debugfs enabled in kernel.

thanks,
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux