From 350542a8cfb65ff1fe2ac1ad3a816bc7378d611b Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 23 Oct 2009 18:38:18 +0000 Subject: [PATCH] The patch below fixes the following category of checkpatch complaints: WARNING: externs should be avoided in .c files The patch below has been tested by rerunning the following command and by verifying its output: scripts/run-regression-tests 2.6.26.8 Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1263 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla_attr.c | 4 ---- qla2x00t/qla_gbl.h | 4 ++++ qla2x00t/qla_init.c | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/qla2x00t/qla_attr.c b/qla2x00t/qla_attr.c index e0c9bc18d..f70d7201d 100644 --- a/qla2x00t/qla_attr.c +++ b/qla2x00t/qla_attr.c @@ -448,10 +448,6 @@ out: return size; } -extern int qla2x00_configure_loop(scsi_qla_host_t *); -extern int qla2x00_configure_local_loop(scsi_qla_host_t *); -extern int qla2x00_configure_fabric(scsi_qla_host_t *); - static ssize_t qla2x00_update_portdb(struct device *dev, struct device_attribute *attr, const char *buffer, size_t size) diff --git a/qla2x00t/qla_gbl.h b/qla2x00t/qla_gbl.h index e5a408a21..b57497d22 100644 --- a/qla2x00t/qla_gbl.h +++ b/qla2x00t/qla_gbl.h @@ -54,6 +54,10 @@ extern int qla2x00_issue_marker(scsi_qla_host_t *ha, int ha_locked); extern void qla84xx_put_chip(struct scsi_qla_host *); +extern int qla2x00_configure_loop(scsi_qla_host_t *); +extern int qla2x00_configure_local_loop(scsi_qla_host_t *); +extern int qla2x00_configure_fabric(scsi_qla_host_t *); + /* * Global Data in qla_os.c source file. */ diff --git a/qla2x00t/qla_init.c b/qla2x00t/qla_init.c index de9714755..f8c68ec13 100644 --- a/qla2x00t/qla_init.c +++ b/qla2x00t/qla_init.c @@ -31,9 +31,6 @@ static void qla2x00_init_response_q_entries(scsi_qla_host_t *); static int qla2x00_init_rings(scsi_qla_host_t *); static int qla2x00_fw_ready(scsi_qla_host_t *); static int qla2x00_configure_hba(scsi_qla_host_t *); -int qla2x00_configure_loop(scsi_qla_host_t *); -int qla2x00_configure_local_loop(scsi_qla_host_t *); -int qla2x00_configure_fabric(scsi_qla_host_t *); static int qla2x00_find_all_fabric_devs(scsi_qla_host_t *, struct list_head *); static int qla2x00_device_resync(scsi_qla_host_t *); static int qla2x00_fabric_dev_login(scsi_qla_host_t *, fc_port_t *,