target: do not include target_core_mib.h under include/target
Subsystems (2)
PATCH 1/1 target: do not include target_core_mib.h under include/target
Headers under include/ should not include headers that require a specific include path. Fix this by moving the defintion of scsi_port_stats to target_core_base.h, and including target_core_mib.h directly where needed.
drivers/target/target_core_configfs.c +1 -0
@@ -51,6 +51,7 @@#include "target_core_hba.h" #include "target_core_pr.h" #include "target_core_rd.h" +#include "target_core_mib.h" static struct list_head g_tf_list;static struct mutex g_tf_lock;
drivers/target/target_core_hba.c +1 -0
@@ -43,6 +43,7 @@#include <target/target_core_transport.h> #include "target_core_hba.h" +#include "target_core_mib.h" static LIST_HEAD (subsystem_list);static DEFINE_MUTEX (subsystem_mutex);
drivers/target/target_core_mib.h +0 -7
@@ -13,13 +13,6 @@ struct scsi_index_table {u32 scsi_mib_index[SCSI_INDEX_TYPE_MAX ]; }____cacheline_aligned ; -/* SCSI Port stats */ -struct scsi_port_stats { -u64 cmd_pdus; -u64 tx_data_octets; -u64 rx_data_octets; -}____cacheline_aligned ; -extern int init_scsi_target_mib (void );extern void remove_scsi_target_mib (void );extern void init_scsi_index_table (void );
drivers/target/target_core_tpg.c +1 -0
@@ -45,6 +45,7 @@#include <target/target_core_fabric_ops.h> #include "target_core_hba.h" +#include "target_core_mib.h" /* core_clear_initiator_node_from_tpg(): *
drivers/target/target_core_transport.c +1 -0
@@ -58,6 +58,7 @@#include "target_core_pr.h" #include "target_core_scdb.h" #include "target_core_ua.h" +#include "target_core_mib.h" /* #define DEBUG_CDB_HANDLER */ #ifdef DEBUG_CDB_HANDLER
include/target/target_core_base.h +7 -1
@@ -8,7 +8,6 @@#include <scsi/scsi_cmnd.h> #include <net/sock.h> #include <net/tcp.h> -#include "target_core_mib.h" #define TARGET_CORE_MOD_VERSION "v4.0.0-rc6"#define SHUTDOWN_SIGS (sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGABRT))
@@ -175,6 +174,13 @@ struct se_obj {atomic_t obj_access_count; }____cacheline_aligned ; +/* SCSI Port stats */ +struct scsi_port_stats { +u64 cmd_pdus; +u64 tx_data_octets; +u64 rx_data_octets; +}____cacheline_aligned ; +/* * Used by TCM Core internally to signal if ALUA emulation is enabled or * disabled, or running in with TCM/pSCSI passthrough mode
PATCH 1/1 target: remove EXTRA_CFLAGS
Add the current directory is superflous in general, and no includes in drivers/scsi are needed either.
drivers/target/Makefile +0 -1
@@ -1,4 +1,3 @@ -EXTRA_CFLAGS += -I$(srctree)/drivers/target/ -I$(srctree)/drivers/scsi/ target_core_mod-y := target_core_configfs.o \ target_core_device.o \
Quoted 5 lines · Christoph Hellwig
Headers under
include/should not include headers that require a specific include path. Fix this by moving the defintion ofscsi_port_statstotarget_core_base.h, and includingtarget_core_mib.hdirectly where needed.Signed-off-by Christoph Hellwig <[email protected]>
Thanks Christoph.. Committed as 0080d7d into lio-core-2.6.git and picked into scsi-post-merge-2.6.git/for-jejb.
--nab
Re: [PATCH] target: remove EXTRA_CFLAGS
In reply to Christoph HellwigQuoted 5 lines · Christoph Hellwig
Add the current directory is superflous in general, and no includes in
drivers/scsiare needed either.Signed-off-by Christoph Hellwig <[email protected]>
Committed as c524eda into lio-core-2.6.git and picked into scsi-post-merge-2.6.git/for-jejb.
Thanks!
--nab
Re: [PATCH] target: remove EXTRA_CFLAGS
Quoted 9 lines · Nicholas A. Bellinger
Quoted 5 lines · Christoph Hellwig
Add the current directory is superflous in general, and no includes in
drivers/scsiare needed either.Signed-off-by Christoph Hellwig <[email protected]>Committed as c524eda into lio-core-2.6.git and picked into scsi-post-merge-2.6.git/for-jejb.
tcm_mod_builder.py should get a similar treatment, but I'm not python savy enough to not fuck that up.
Re: [PATCH] target: remove EXTRA_CFLAGS
Quoted 8 lines · Christoph Hellwig
Quoted 7 lines · Nicholas A. Bellinger
Quoted 5 lines · Christoph Hellwig
Add the current directory is superflous in general, and no includes in
drivers/scsiare needed either.Signed-off-by Christoph Hellwig <[email protected]>
Quoted 6 lines
Quoted 2 lines
Committed as c524eda into lio-core-2.6.git and picked into scsi-post-merge-2.6.git/for-jejb.
tcm_mod_builder.pyshould get a similar treatment, but I'm not python savy enough to not fuck that up.
--
;)
Committed as 8ff3e08 into lio-core-2.6.git and picked into scsi-post-merge-2.6.git/for-jejb.
Thanks!
--nab