Skip to contentSkip to conversation

dpt_i2o: Add PROC_IA64 define

PATCH NAK Jeff Mahoney 2 participants 4 messages Jun 12, 2008 – Jun 13, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dpt_i2o: Add PROC_IA64 define

This fixes the following compile failure in 2.6.26-rc5-git5:
drivers/scsi/dpt_i2o.c:83: error: 'PROC_IA64' undeclared here (not in a function)

I'm not sure if these values are magic and defined somewhere, but the kernel wouldn't build on IA64 without it.

I changed the value in dpt_i2o.c because the comments indicated that PROC_INTEL refered to the 80x86 family, which doesn't include ia64.

---
 drivers/scsi/dpt/dptsig.h |    1 +
 drivers/scsi/dpt_i2o.c    |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/dpt/dptsig.h +1 -0
@@ -92,6 +92,7 @@ typedef unsigned int sigINT;
 #define PROC_POWERPC    0x04    /* IBM Power PC */
 #define PROC_i960       0x05    /* Intel i960 */
 #define PROC_ULTRASPARC 0x06    /* SPARC processor */
+#define PROC_IA64	 0x07	 /* IA64 processor */
 
 /* Specific Minimim Processor - sigBYTE dsProcessor;    FLAG BITS */
 /* ------------------------------------------------------------------ */
drivers/scsi/dpt_i2o.c +1 -1
@@ -80,7 +80,7 @@ static dpt_sig_S DPTI_sig = {
 #ifdef __i386__
 	PROC_INTEL, PROC_386 | PROC_486 | PROC_PENTIUM | PROC_SEXIUM,
 #elif defined(__ia64__)
-	PROC_INTEL, PROC_IA64,
+	PROC_IA64, PROC_IA64,
 #elif defined(__sparc__)
 	PROC_ULTRASPARC, PROC_ULTRASPARC,
 #elif defined(__alpha__)
Signature · 2 lines
Jeff Mahoney
SUSE Labs
#1 lore raw

NAK, the management tools need to see the processor as manufactured by Intel.

Leave PROC_INTAL, PROC_IA64 in the second fragment.

Sincerely -- Mark Salyzyn

Quoted 45 lines · Jeff Mahoney

This fixes the following compile failure in 2.6.26-rc5-git5:
drivers/scsi/dpt_i2o.c:83: error: 'PROC_IA64' undeclared here (not in a function)

I'm not sure if these values are magic and defined somewhere, but the kernel wouldn't build on IA64 without it.

I changed the value in dpt_i2o.c because the comments indicated that PROC_INTEL refered to the 80x86 family, which doesn't include ia64.

---

drivers/scsi/dpt/dptsig.h |    1 +
drivers/scsi/dpt_i2o.c    |    2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/dpt/dptsig.h +1 -1
@@ -92,6 +92,7 @@ typedef unsigned int sigINT;
 #define PROC_POWERPC    0x04    /* IBM Power PC */
 #define PROC_i960       0x05    /* Intel i960 */
 #define PROC_ULTRASPARC 0x06    /* SPARC processor */
+#define PROC_IA64       0x07    /* IA64 processor */
 
 /* Specific Minimim Processor - sigBYTE dsProcessor;    FLAG BITS */
 /*  
------------------------------------------------------------------ */
drivers/scsi/dpt_i2o.c +1 -2
@@ -80,7 +80,7 @@ static dpt_sig_S DPTI_sig = {
 #ifdef __i386__
       PROC_INTEL, PROC_386 | PROC_486 | PROC_PENTIUM | PROC_SEXIUM,
 #elif defined(__ia64__)
-       PROC_INTEL, PROC_IA64,
+       PROC_IA64, PROC_IA64,
 #elif defined(__sparc__)
       PROC_ULTRASPARC, PROC_ULTRASPARC,
 #elif defined(__alpha__)
 
--

Jeff Mahoney
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Thanks for the feedback, Mark. Round two:

This fixes the following compile failure:
drivers/scsi/dpt_i2o.c:83: error: 'PROC_IA64' undeclared here (not in a function)

Mark Salyzyn <[email protected]> indicated that IA64 must report itself as PROC_INTEL, so I've changed the comment for PROC_INTEL.

---

 drivers/scsi/dpt/dptsig.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/dpt/dptsig.h +2 -1
@@ -85,7 +85,7 @@ typedef unsigned int sigINT;
 /* ------------------------------------------------------------------ */
 /* What type of processor the file is meant to run on. */
 /* This will let us know whether to read sigWORDs as high/low or low/high. */
-#define PROC_INTEL      0x00    /* Intel 80x86 */
+#define PROC_INTEL      0x00    /* Intel 80x86/ia64 */
 #define PROC_MOTOROLA   0x01    /* Motorola 68K */
 #define PROC_MIPS4000   0x02    /* MIPS RISC 4000 */
 #define PROC_ALPHA      0x03    /* DEC Alpha */
@@ -104,6 +104,7 @@ typedef unsigned int sigINT;
 #define PROC_486        0x08    /* Intel 80486 */
 #define PROC_PENTIUM    0x10    /* Intel 586 aka P5 aka Pentium */
 #define PROC_SEXIUM	0x20	/* Intel 686 aka P6 aka Pentium Pro or MMX */
+#define PROC_IA64	0x40	/* Intel IA64 processor */
 
 /* PROC_i960: */
 #define PROC_960RX      0x01    /* Intel 80960RC/RD */
Signature · 2 lines
Jeff Mahoney
SUSE Labs
#3 lore raw

ACK!!!

Sincerely -- Mark Salyzyn

Quoted 38 lines · Jeff Mahoney

Thanks for the feedback, Mark. Round two:

This fixes the following compile failure:
drivers/scsi/dpt_i2o.c:83: error: 'PROC_IA64' undeclared here (not in a function)

Mark Salyzyn <[email protected]> indicated that IA64 must report itself as PROC_INTEL, so I've changed the comment for PROC_INTEL.

---

drivers/scsi/dpt/dptsig.h | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/dpt/dptsig.h +1 -2
@@ -85,7 +85,7 @@ typedef unsigned int sigINT;
 /*  
------------------------------------------------------------------ */
 /* What type of processor the file is meant to run on. */
 /* This will let us know whether to read sigWORDs as high/low or low/high. */
-#define PROC_INTEL      0x00    /* Intel 80x86 */
+#define PROC_INTEL      0x00    /* Intel 80x86/ia64 */
 #define PROC_MOTOROLA   0x01    /* Motorola 68K */
 #define PROC_MIPS4000   0x02    /* MIPS RISC 4000 */

#define PROC_ALPHA 0x03 /* DEC Alpha */

drivers/scsi/dpt/dptsig.h +1 -1
@@ -104,6 +104,7 @@ typedef unsigned int sigINT;
 #define PROC_486        0x08    /* Intel 80486 */
 #define PROC_PENTIUM    0x10    /* Intel 586 aka P5 aka Pentium */
 #define PROC_SEXIUM    0x20    /* Intel 686 aka P6 aka Pentium Pro or MMX */
+#define PROC_IA64      0x40    /* Intel IA64 processor */
 
 /* PROC_i960: */
 #define PROC_960RX      0x01    /* Intel 80960RC/RD */
 
--

Jeff Mahoney
SUSE Labs