> Beware that sysfs_remove_bin_file() will complain loudly if you later > attempt to delete that file that was never created. That's another problem... what is a driver that creates 15 files supposed to do ? Have 15 booleans to remember which files where successfully created and then test all of them on cleanup ? That sounds like even more bloat to me... What about making sysfs_remove_bin_file() not complain ? It's common practice to have disposal things not complain ... like kfree(NULL), or the changes done recently so that misc_deregister() can be called even if misc_register() failed etc... Ben. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: sysfs file creation result nightmare
- From: Andrew Morton <[email protected]>
- Re: sysfs file creation result nightmare
- References:
- sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- From: Benjamin Herrenschmidt <[email protected]>
- Re: sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- From: Andrew Morton <[email protected]>
- Re: sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- From: Olivier Galibert <[email protected]>
- Re: sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- From: Andrew Morton <[email protected]>
- Re: sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- From: Olivier Galibert <[email protected]>
- Re: sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- From: Andrew Morton <[email protected]>
- Re: sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- From: Benjamin Herrenschmidt <[email protected]>
- Re: sysfs file creation result nightmare
- From: Jean Delvare <[email protected]>
- sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
- Prev by Date: Re: [PATCH] genirq: fix irq flow handler uninstall
- Next by Date: Re: [PATCH] Fix sparsemem on Cell
- Previous by thread: Re: sysfs file creation result nightmare
- Next by thread: Re: sysfs file creation result nightmare
- Index(es):