Staging: lustre: obdclass: Remove unused function obd_export_nid2str
PATCH 1/1 Staging: lustre: obdclass: Remove unused function obd_export_nid2str
Remove obd_export_nid2str as it is defined but not used anymore.
--- drivers/staging/lustre/lustre/obdclass/genops.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/staging/lustre/lustre/obdclass/genops.c +0 -8
@@ -1104,14 +1104,6 @@ void class_fail_export(struct obd_export *exp) }EXPORT_SYMBOL (class_fail_export); -static char *obd_export_nid2str (struct obd_export *exp) -{ -if (exp->exp_connection !=NULL ) -return libcfs_nid2str (exp->exp_connection->c_peer.nid); - -return "(no nid)" ; -} -#if LUSTRE_TRACKS_LOCK_EXP_REFS void (*class_export_dump_hook)(struct obd_export *) =NULL ;EXPORT_SYMBOL (class_export_dump_hook);
Signature · 1 line
2.1.4
Quoted 1 line · Shraddha Barke
Remove
obd_export_nid2stras it is defined but not used anymore.
I think this is on top of your previous patch. It should be on top of Greg's tree, since I guess he won't take a patch that causes build warnings.
julia
Quoted 35 lines
Signed-off-by Shraddha Barke <[email protected]>--- drivers/staging/lustre/lustre/obdclass/genops.c | 8 -------- 1 file changed, 8 deletions(-)drivers/staging/lustre/lustre/obdclass/genops.c +0
-8@@ -1104,14 +1104,6 @@ void class_fail_export(struct obd_export *exp) }EXPORT_SYMBOL (class_fail_export); -static char *obd_export_nid2str (struct obd_export *exp) -{ -if (exp->exp_connection !=NULL ) -return libcfs_nid2str (exp->exp_connection->c_peer.nid); - -return "(no nid)" ; -} -#if LUSTRE_TRACKS_LOCK_EXP_REFS void (*class_export_dump_hook)(struct obd_export *) =NULL ;EXPORT_SYMBOL (class_export_dump_hook);Signature · 8 lines
2.1.4 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1443950881-25330-1-git-send-email-shraddha.6596%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Greg KH
maintainerQuoted 7 lines · Julia Lawall
Quoted 1 line · Shraddha Barke
Remove
obd_export_nid2stras it is defined but not used anymore.I think this is on top of your previous patch. It should be on top of Greg's tree, since I guess he won't take a patch that causes build warnings.
No, it's ok, I noticed the build warnings after I applied it, and it was due to patches from a different developer that I accepted, not this series, from what I can tell, so I let it go in.
thanks,
greg k-h
Greg KH
maintainerQuoted 6 lines · Shraddha Barke
Remove
obd_export_nid2stras it is defined but not used anymore.Signed-off-by Shraddha Barke <[email protected]>--- drivers/staging/lustre/lustre/obdclass/genops.c | 8 -------- 1 file changed, 8 deletions(-)
Thanks, now applied.
I beat the 0-day bot telling you about this for once! :)
greg k-h