Just a few minor cleanups to make a couple more elements static and remove some extern definitions from the header which are not exported. Signed-off-by: Chris Boot <bootc@xxxxxxxxx> Cc: Andy Grover <agrover@xxxxxxxxxx> Cc: Clemens Ladisch <clemens@xxxxxxxxxx> Cc: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> Cc: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> --- drivers/target/sbp/sbp_target.c | 6 +++--- drivers/target/sbp/sbp_target.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/target/sbp/sbp_target.c b/drivers/target/sbp/sbp_target.c index d7c9ac9..37c6098 100644 --- a/drivers/target/sbp/sbp_target.c +++ b/drivers/target/sbp/sbp_target.c @@ -43,10 +43,10 @@ #include "sbp_target.h" /* Local pointer to allocated TCM configfs fabric module */ -struct target_fabric_configfs *sbp_fabric_configfs; +static struct target_fabric_configfs *sbp_fabric_configfs; /* FireWire address region for management and command block address handlers */ -const struct fw_address_region sbp_register_region = { +static const struct fw_address_region sbp_register_region = { .start = CSR_REGISTER_BASE + 0x10000, .end = 0x1000000000000ULL, }; @@ -1435,7 +1435,7 @@ static void sbp_sense_mangle(struct sbp_target_request *req) STATUS_BLOCK_SBP_STATUS(SBP_STATUS_OK)); } -int sbp_send_sense(struct sbp_target_request *req) +static int sbp_send_sense(struct sbp_target_request *req) { struct se_cmd *se_cmd = &req->se_cmd; diff --git a/drivers/target/sbp/sbp_target.h b/drivers/target/sbp/sbp_target.h index 1ec2269..6d0d74a 100644 --- a/drivers/target/sbp/sbp_target.h +++ b/drivers/target/sbp/sbp_target.h @@ -193,9 +193,6 @@ struct sbp_tport { int max_logins_per_lun; }; -extern struct target_fabric_configfs *sbp_fabric_configfs; -extern const struct fw_address_region sbp_register_region; - static inline u64 sbp2_pointer_to_addr(const struct sbp2_pointer *ptr) { return (u64)(be32_to_cpu(ptr->high) & 0x0000ffff) << 32 | -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html