From: Frederik Deweerdt <deweerdt@free.fr>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
andrew.vasquez@qlogic.com
Subject: [patch] fix qla{2,4} build error
Date: Thu, 5 Oct 2006 20:49:18 +0000 [thread overview]
Message-ID: <20061005204918.GI352@slug> (raw)
In-Reply-To: <Pine.LNX.4.64.0610042017340.3952@g5.osdl.org>
On Wed, Oct 04, 2006 at 08:29:16PM -0700, Linus Torvalds wrote:
> 4998 total commits
> 6535 files changed, 414890 insertions(+), 233881 deletions(-)
commit 0181944fe647cae18d545ac1167df3d15d393701 adds a
'extended_error_logging' global variable to qla2xxx which is defined by
qla4xxx too.
Trying to build both drivers results in the following error:
LD drivers/scsi/built-in.o
drivers/scsi/qla4xxx/built-in.o: In function
`qla4xxx_slave_configure':
drivers/scsi/qla4xxx/ql4_os.c:1433: multiple definition of
`extended_error_logging'
drivers/scsi/qla2xxx/built-in.o:drivers/scsi/qla2xxx/qla_os.c:2166:
first defined here
make[2]: *** [drivers/scsi/built-in.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
The following patch simply adds a qla2_ (qla4_ respectively) prefix to
the variable name.
Regards,
Frederik
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
diff --git a/drivers/scsi/qla2xxx/qla_dbg.h b/drivers/scsi/qla2xxx/qla_dbg.h
index 5334253..90dad7e 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.h
+++ b/drivers/scsi/qla2xxx/qla_dbg.h
@@ -38,7 +38,7 @@ #endif
* Macros use for debugging the driver.
*/
-#define DEBUG(x) do { if (extended_error_logging) { x; } } while (0)
+#define DEBUG(x) do { if (qla2_extended_error_logging) { x; } } while (0)
#if defined(QL_DEBUG_LEVEL_1)
#define DEBUG1(x) do {x;} while (0)
@@ -46,12 +46,12 @@ #else
#define DEBUG1(x) do {} while (0)
#endif
-#define DEBUG2(x) do { if (extended_error_logging) { x; } } while (0)
-#define DEBUG2_3(x) do { if (extended_error_logging) { x; } } while (0)
-#define DEBUG2_3_11(x) do { if (extended_error_logging) { x; } } while (0)
-#define DEBUG2_9_10(x) do { if (extended_error_logging) { x; } } while (0)
-#define DEBUG2_11(x) do { if (extended_error_logging) { x; } } while (0)
-#define DEBUG2_13(x) do { if (extended_error_logging) { x; } } while (0)
+#define DEBUG2(x) do { if (qla2_extended_error_logging) { x; } } while (0)
+#define DEBUG2_3(x) do { if (qla2_extended_error_logging) { x; } } while (0)
+#define DEBUG2_3_11(x) do { if (qla2_extended_error_logging) { x; } } while (0)
+#define DEBUG2_9_10(x) do { if (qla2_extended_error_logging) { x; } } while (0)
+#define DEBUG2_11(x) do { if (qla2_extended_error_logging) { x; } } while (0)
+#define DEBUG2_13(x) do { if (qla2_extended_error_logging) { x; } } while (0)
#if defined(QL_DEBUG_LEVEL_3)
#define DEBUG3(x) do {x;} while (0)
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
index bef7011..990b897 100644
--- a/drivers/scsi/qla2xxx/qla_gbl.h
+++ b/drivers/scsi/qla2xxx/qla_gbl.h
@@ -60,7 +60,7 @@ extern int ql2xplogiabsentdevice;
extern int ql2xloginretrycount;
extern int ql2xfdmienable;
extern int ql2xallocfwdump;
-extern int extended_error_logging;
+extern int qla2_extended_error_logging;
extern void qla2x00_sp_compl(scsi_qla_host_t *, srb_t *);
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index d5d2627..833b930 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -1644,7 +1644,7 @@ #endif
* Set host adapter parameters.
*/
if (nv->host_p[0] & BIT_7)
- extended_error_logging = 1;
+ qla2_extended_error_logging = 1;
ha->flags.disable_risc_code_load = ((nv->host_p[0] & BIT_4) ? 1 : 0);
/* Always load RISC code on non ISP2[12]00 chips. */
if (!IS_QLA2100(ha) && !IS_QLA2200(ha))
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 3ba8c23..3f20d76 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -61,9 +61,9 @@ MODULE_PARM_DESC(ql2xallocfwdump,
"during HBA initialization. Memory allocation requirements "
"vary by ISP type. Default is 1 - allocate memory.");
-int extended_error_logging;
-module_param(extended_error_logging, int, S_IRUGO|S_IRUSR);
-MODULE_PARM_DESC(extended_error_logging,
+int qla2_extended_error_logging;
+module_param(qla2_extended_error_logging, int, S_IRUGO|S_IRUSR);
+MODULE_PARM_DESC(qla2_extended_error_logging,
"Option to enable extended error logging, "
"Default is 0 - no logging. 1 - log errors.");
@@ -2697,7 +2697,7 @@ qla2x00_module_init(void)
/* Derive version string. */
strcpy(qla2x00_version_str, QLA2XXX_VERSION);
- if (extended_error_logging)
+ if (qla2_extended_error_logging)
strcat(qla2x00_version_str, "-debug");
qla2xxx_transport_template =
diff --git a/drivers/scsi/qla4xxx/ql4_dbg.h b/drivers/scsi/qla4xxx/ql4_dbg.h
index 56ddc22..3e99dcf 100644
--- a/drivers/scsi/qla4xxx/ql4_dbg.h
+++ b/drivers/scsi/qla4xxx/ql4_dbg.h
@@ -22,14 +22,14 @@ #define DEBUG(x) do {} while (0);
#endif
#if defined(QL_DEBUG_LEVEL_2)
-#define DEBUG2(x) do {if(extended_error_logging == 2) x;} while (0);
+#define DEBUG2(x) do {if(qla4_extended_error_logging == 2) x;} while (0);
#define DEBUG2_3(x) do {x;} while (0);
#else /* */
#define DEBUG2(x) do {} while (0);
#endif /* */
#if defined(QL_DEBUG_LEVEL_3)
-#define DEBUG3(x) do {if(extended_error_logging == 3) x;} while (0);
+#define DEBUG3(x) do {if(qla4_extended_error_logging == 3) x;} while (0);
#else /* */
#define DEBUG3(x) do {} while (0);
#if !defined(QL_DEBUG_LEVEL_2)
diff --git a/drivers/scsi/qla4xxx/ql4_glbl.h b/drivers/scsi/qla4xxx/ql4_glbl.h
index 418fb7a..77a997a 100644
--- a/drivers/scsi/qla4xxx/ql4_glbl.h
+++ b/drivers/scsi/qla4xxx/ql4_glbl.h
@@ -72,7 +72,7 @@ int qla4xxx_reinitialize_ddb_list(struct
int qla4xxx_process_ddb_changed(struct scsi_qla_host * ha,
uint32_t fw_ddb_index, uint32_t state);
-extern int extended_error_logging;
+extern int qla4_extended_error_logging;
extern int ql4xdiscoverywait;
extern int ql4xdontresethba;
#endif /* _QLA4x_GBL_H */
diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c
index ed977f7..ef82399 100644
--- a/drivers/scsi/qla4xxx/ql4_mbx.c
+++ b/drivers/scsi/qla4xxx/ql4_mbx.c
@@ -701,7 +701,7 @@ void qla4xxx_get_conn_event_log(struct s
DEBUG3(printk("scsi%ld: Connection Event Log Dump (%d entries):\n",
ha->host_no, num_valid_entries));
- if (extended_error_logging == 3) {
+ if (qla4_extended_error_logging == 3) {
if (oldest_entry == 0) {
/* Circular Buffer has not wrapped around */
for (i=0; i < num_valid_entries; i++) {
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 5036ebf..178fcdd 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -34,9 +34,9 @@ MODULE_PARM_DESC(ql4xdontresethba,
" default it will reset hba :0"
" set to 1 to avoid resetting HBA");
-int extended_error_logging = 0; /* 0 = off, 1 = log errors */
-module_param(extended_error_logging, int, S_IRUGO | S_IRUSR);
-MODULE_PARM_DESC(extended_error_logging,
+int qla4_extended_error_logging = 0; /* 0 = off, 1 = log errors */
+module_param(qla4_extended_error_logging, int, S_IRUGO | S_IRUSR);
+MODULE_PARM_DESC(qla4_extended_error_logging,
"Option to enable extended error logging, "
"Default is 0 - no logging, 1 - debug logging");
@@ -1714,7 +1714,7 @@ static int __init qla4xxx_module_init(vo
/* Derive version string. */
strcpy(qla4xxx_version_str, QLA4XXX_DRIVER_VERSION);
- if (extended_error_logging)
+ if (qla4_extended_error_logging)
strcat(qla4xxx_version_str, "-debug");
qla4xxx_scsi_transport =
next prev parent reply other threads:[~2006-10-05 20:49 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-05 3:29 Merge window closed: v2.6.19-rc1 Linus Torvalds
2006-10-05 4:28 ` 2.6.19-rc1: known regressions Adrian Bunk
2006-10-05 4:45 ` Benjamin Herrenschmidt
2006-10-05 6:37 ` Jens Axboe
2006-10-05 6:52 ` Benjamin Herrenschmidt
2006-10-05 11:01 ` Gene Heskett
2006-10-05 14:04 ` Adrian Bunk
2006-10-05 20:27 ` Andreas Schwab
2006-10-05 21:15 ` Mel Gorman
2006-10-06 0:24 ` Andreas Schwab
2006-10-06 9:51 ` [PATCH] Use symbolic names instead of indices for zone initialisation Mel Gorman
2006-10-05 7:16 ` 2.6.19-rc1: known regressions Nigel Cunningham
2006-10-05 8:27 ` [patch] x86, fix rwsem build bug on CONFIG_M386=y Ingo Molnar
2006-10-05 9:41 ` [discuss] " Andi Kleen
2006-10-10 12:18 ` cpufreq not working on AMD K8 (was Re: 2.6.19-rc1: known regressions) Christian
2006-10-10 14:59 ` Langsdorf, Mark
2006-10-10 16:37 ` Christian
2006-10-10 16:43 ` Langsdorf, Mark
2006-10-11 14:06 ` Christian
2006-10-11 17:33 ` Langsdorf, Mark
2006-10-11 18:16 ` Christian
2006-10-11 18:38 ` Tomasz Torcz
2006-10-11 4:23 ` Adrian Bunk
2006-10-11 9:30 ` Christian
2006-10-11 14:57 ` Adrian Bunk
2006-10-05 15:09 ` Merge window closed: v2.6.19-rc1 Alistair John Strachan
2006-10-05 18:56 ` ohci1394 regression in 2.6.19-rc1 (was Re: Merge window closed: v2.6.19-rc1) Stefan Richter
2006-10-05 20:30 ` Alistair John Strachan
2006-10-05 20:32 ` Alistair John Strachan
2006-10-05 22:16 ` Stefan Richter
2006-10-05 22:37 ` Alistair John Strachan
2006-10-05 23:22 ` ohci1394 regression in 2.6.19-rc1 Stefan Richter
2006-10-06 13:55 ` Stefan Richter
2006-10-06 17:17 ` Stefan Richter
2006-10-06 18:33 ` Stefan Richter
2006-10-06 22:52 ` Alistair John Strachan
2006-10-05 15:41 ` Merge window closed: v2.6.19-rc1 Gene Heskett
2006-10-06 8:36 ` usb resets [Was Re: Merge window closed: v2.6.19-rc1] Uwe Zeisberger
2006-10-06 12:18 ` Gene Heskett
2006-10-05 19:17 ` Merge window closed: v2.6.19-rc1 Peter Osterlund
2006-10-05 19:21 ` Eric Sandeen
2006-10-05 20:49 ` Frederik Deweerdt [this message]
2006-10-05 22:01 ` [patch] fix qla{2,4} build error Andrew Vasquez
2006-10-06 16:54 ` [PATCH] Maintain module-parameter name consistency with qla2xxx/qla4xxx Andrew Vasquez
2006-10-05 21:09 ` monitor not active after boot (was Re: Merge window closed: v2.6.19-rc1) Olaf Hering
2006-10-08 10:12 ` Olaf Hering
2006-10-06 4:31 ` Merge window closed: v2.6.19-rc1 Alex Romosan
2006-10-06 18:47 ` 2.6.19-rc1 regression: airo suspend fails Adrian Bunk
2006-10-07 3:54 ` Alex Romosan
2006-10-07 19:52 ` Dave Kleikamp
2006-10-07 20:17 ` Alex Romosan
2006-10-08 6:43 ` Pavel Machek
2006-10-06 17:49 ` Merge window closed: v2.6.19-rc1 caszonyi
2006-10-06 18:12 ` Linus Torvalds
2006-10-06 19:05 ` Eric W. Biederman
2006-10-07 18:23 ` Gabor Gombas
2006-10-07 20:29 ` Eric W. Biederman
2006-10-06 22:43 ` Grant Coady
2006-10-06 22:47 ` Jesper Juhl
2006-10-07 2:33 ` Linus Torvalds
2006-10-07 13:16 ` James Bottomley
[not found] ` <20061007214620.GB8810@stusta.de>
2006-10-07 23:02 ` 2.6.19-rc1: known regressions (v2) Prakash Punnoor
2006-10-08 7:12 ` x60 backlight Re: [discuss] " Pavel Machek
2006-10-08 17:38 ` Adrian Bunk
2006-10-08 17:59 ` Michael S. Tsirkin
2006-10-08 19:30 ` Adrian Bunk
2006-10-16 19:39 ` Michael S. Tsirkin
2006-10-08 18:36 ` Pavel Machek
2006-10-08 19:29 ` Adrian Bunk
2006-10-08 23:44 ` Jeremy Fitzhardinge
2006-10-08 11:10 ` [GIT PULL] ieee1394 update (was 2.6.19-rc1: known regressions (v2)) Stefan Richter
2006-10-09 15:32 ` 2.6.19-rc1: known regressions (v2) - xfrm_register_mode Steve Fox
2006-10-09 15:51 ` Mel Gorman
2006-10-08 11:47 ` BUG when doing parallel NFS mounts (WAS: Re: Merge window closed: v2.6.19-rc1) Peter Osterlund
2006-10-08 15:19 ` Peter Osterlund
2006-10-08 18:35 ` Trond Myklebust
2006-10-08 18:54 ` Peter Osterlund
2006-10-08 19:21 ` Trond Myklebust
2006-10-09 0:31 ` 2.6.19-rc1: DVB frontend selection causes compile errors Adrian Bunk
2006-10-09 7:53 ` [v4l-dvb-maintainer] " Michael Krufky
2006-10-09 8:05 ` Adrian Bunk
2006-10-09 8:27 ` Michael Krufky
2006-10-14 5:23 ` Randy Dunlap
2006-10-14 13:32 ` Trent Piepho
[not found] ` <20061010051019.GB3650@stusta.de>
2006-10-10 5:16 ` 2.6.19-rc1: known regressions (v3) Benjamin Herrenschmidt
2006-10-10 8:41 ` Mel Gorman
[not found] ` <17708.9637.569670.824121@cargo.ozlabs.ibm.com>
2006-10-11 3:08 ` Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061005204918.GI352@slug \
--to=deweerdt@free.fr \
--cc=andrew.vasquez@qlogic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox