On Wed, 2015-23-09 at 03:07:59 UTC, Vaibhav Jain wrote: > Presently a lockdep warning is reported during creation of afu_err_buff > bin_attribute for the afu. This is caused due to the variable attr.key > not pointing to a static class key, hence the function lockdep_init_map > reports this warning: > > BUG: key <some-address> not in .data! > > The patch fixes this issue by calling sysfs_attr_init on the > attr_eb.attr structure before populating it with the afu_err_buff file > details. This will populate the attr.key variable with a static class > key so that lockdep_init_map stops complaining about the lockdep key not > being static. > > Reported-by: Daniel Axtens <[email protected]> > Signed-off-by: Vaibhav Jain <[email protected]> > Acked-by: Ian Munsie <[email protected]> > Reviewed-by: Daniel Axtens <[email protected]>
Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/d6eb71a6d2eda21c8cd7a4dc cheers _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
