Tejun Heo <hte...@gmail.com> writes: > On Thu, Jun 04, 2015 at 11:03:16AM +0930, Rusty Russell wrote: >> Please describe the circumstances under which this function can fail. > > Allocation failure obviously
Won't happen here, this is a boot-time function. version_sysfs_builtin. The __init is the clue. > and violatin of certain API rules - > e.g. dup names, wrong nesting, activation rule violations. Duplicated names imply some weird build error, and we get an warning in that case already. Not sure how we'd get wrong nesting or whatever activation rule violations are, but happy to be enlightened? Neither of the others justify version_sysfs_builtin checking the return value of sysfs_create_file(). Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/