Staging: lustre: obdclass: Remove unused header files
PATCH 1/1 Staging: lustre: obdclass: Remove unused header files
Remove unused header files that are already included in 'lu_object.h' and 'obd.h'
--- drivers/staging/lustre/lustre/obdclass/lu_object.c | 1 - drivers/staging/lustre/lustre/obdclass/lu_ref.c | 1 - 2 files changed, 2 deletions(-)
drivers/staging/lustre/lustre/obdclass/lu_object.c +0 -1
@@ -55,7 +55,6 @@#include "../include/lustre_disk.h" #include "../include/lustre_fid.h" #include "../include/lu_object.h" -#include "../include/lu_ref.h" #include <linux/list.h> static void lu_object_free (const struct lu_env *env,struct lu_object *o);
drivers/staging/lustre/lustre/obdclass/lu_ref.c +0 -1
@@ -47,4 +47,3 @@#include "../include/obd.h" #include "../include/obd_class.h" #include "../include/obd_support.h" -#include "../include/lu_ref.h"
Signature · 1 line
2.1.4
PATCH 1/1 Staging: lustre: obdclass: Remove unused header files
Quoted 14 lines · Shraddha Barke
Remove unused header files that are already included in '
lu_object.h' and 'obd.h'Signed-off-by Shraddha Barke <[email protected]>--- drivers/staging/lustre/lustre/obdclass/lu_object.c | 1 - drivers/staging/lustre/lustre/obdclass/lu_ref.c | 1 - 2 files changed, 2 deletions(-)drivers/staging/lustre/lustre/obdclass/lu_object.c +0
-0
drivers/staging/lustre/lustre/obdclass/lu_object.c line 58
Quoted 4 lines
drivers/staging/lustre/lustre/obdclass/lu_object.c +0
-1@@ -55,7 +55,6 @@#include "../include/lustre_disk.h" #include "../include/lustre_fid.h" #include "../include/lu_object.h" -#include "../include/lu_ref.h"
If things from lu_ref.h are directly referred to in the .c file, it may be better to keep the include, rather than relying on some other include file (that could change in the future) to include it.
julia
Quoted 22 lines
drivers/staging/lustre/lustre/obdclass/lu_object.c +0
-0#include <linux/list.h> static void lu_object_free (const struct lu_env *env,struct lu_object *o);drivers/staging/lustre/lustre/obdclass/lu_ref.c +0
-2@@ -47,4 +47,3 @@#include "../include/obd.h" #include "../include/obd_class.h" #include "../include/obd_support.h" -#include "../include/lu_ref.h" --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 outreachy-kernel+unsubscribe at googlegroups.com. To post to this group, send email to outreachy-kernel at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1445594277-14421-1-git-send-email-shraddha.6596%40gmail.com.
For more options, visit https://groups.google.com/d/optout.