> DEFINE_FREE(fwnode_handle, struct fwnode_handle *, fwnode_handle_put(_T)) > > I can send a patch for this. You need to be a bit carefull to move > the declaration into the correct scope for this to work. I should write > some Smatch rules for this... I became also curious how available development tools will evolve further for improved handling of scope-based resource management. Regards, Markus