public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.44 compile problem: MegaRAID driver
@ 2002-10-21 20:31 Cliff White
  2002-10-21 21:28 ` Mike Anderson
  0 siblings, 1 reply; 8+ messages in thread
From: Cliff White @ 2002-10-21 20:31 UTC (permalink / raw)
  To: linux-kernel


 gcc -Wp,-MD,drivers/scsi/.megaraid.o.d -D__KERNEL__ -Iinclude -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
-march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include    
-DKBUILD_BASENAME=megaraid   -c -o drivers/scsi/megaraid.o 
drivers/scsi/megaraid.c
drivers/scsi/megaraid.c: In function `mega_cmd_done':
drivers/scsi/megaraid.c:1115: warning: passing arg 2 of `__constant_memcpy' 
makes pointer from integer without a cast
drivers/scsi/megaraid.c:1115: warning: passing arg 2 of `__memcpy' makes 
pointer from integer without a cast
drivers/scsi/megaraid.c: In function `mega_reorder_hosts':
drivers/scsi/megaraid.c:3514: `scsi_hostlist' undeclared (first use in this 
function)
drivers/scsi/megaraid.c:3514: (Each undeclared identifier is reported only once
drivers/scsi/megaraid.c:3514: for each function it appears in.)
drivers/scsi/megaraid.c:3514: structure has no member named `next'
drivers/scsi/megaraid.c:3488: warning: `shpnt' might be used uninitialized in 
this function
drivers/scsi/megaraid.c: In function `mega_swap_hosts':
drivers/scsi/megaraid.c:3558: structure has no member named `next'
drivers/scsi/megaraid.c:3560: `scsi_hostlist' undeclared (first use in this 
function)
drivers/scsi/megaraid.c:3560: structure has no member named `next'
.......repeated bunches
drivers/scsi/megaraid.c:3647: structure has no member named `next'
drivers/scsi/megaraid.c:3648: structure has no member named `next'
drivers/scsi/megaraid.c: In function `megadev_ioctl':
drivers/scsi/megaraid.c:4687: `scsi_hostlist' undeclared (first use in this 
function)
drivers/scsi/megaraid.c:4687: structure has no member named `next'
drivers/scsi/megaraid.c:4807: structure has no member named `next'
drivers/scsi/megaraid.c:4546: warning: `shpnt' might be used uninitialized in 
this function
make[2]: *** [drivers/scsi/megaraid.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

cliffw


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: 2.5.44 compile problem: MegaRAID driver
@ 2002-10-21 22:10 Matt_Domsch
  2002-10-21 22:31 ` Alan Cox
  0 siblings, 1 reply; 8+ messages in thread
From: Matt_Domsch @ 2002-10-21 22:10 UTC (permalink / raw)
  To: andmike, cliffw; +Cc: linux-kernel, linux-megaraid-devel

> The scsi host interface change in 2.5.44. The megaraid driver wanted
> direct access to this list to reorder it. This cannot be done 
> anymore as we try get list coherence under control.
> The patch below removes the reorder as I could not see why reorder the
> list. It also replaces some other traverse loops with a 
> direct access to the host pointer copy.

The host reordering is to solve the same problem that EDD helps us solve now
- it makes sure that in systems with megaraid adapters that also have BIOS
enabled (thus have the bootable logical drive on that card) that it shows up
first (/dev/sda) on the host list instead of later.   Fortunately, newer
megaraid cards support EDD properly, some older ones don't :-(    All that
code is a figment of the need to know where the boot disk is, and to project
it first in the order.

For now, yes, the right thing is to delete those routines and get the
megaraid driver functional again sans adapter reordering.  In megaraid2 for
2.5.x we'll need to figure out a better way to handle this - maybe we won't
have to if EDD works as advertised. :-)

> The maintainer of the driver will need to ok and comment on any side
> effects. I will look at the driver some more to see if I 
> understand the reorder.

linux-megaraid-devel@dell.com has the right people subscribed (subscribe at
http://lists.us.dell.com) - it's really LSI's driver and I want them to be
the folks maintaining it.  I've just helped out now and again...  LSI hasn't
had time to look at 2.5.x at all.

Thanks,
Matt

--
Matt Domsch
Sr. Software Engineer, Lead Engineer, Architect
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-10-21 22:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-21 20:31 2.5.44 compile problem: MegaRAID driver Cliff White
2002-10-21 21:28 ` Mike Anderson
2002-10-21 22:32   ` Cliff White
  -- strict thread matches above, loose matches on Subject: below --
2002-10-21 22:10 Matt_Domsch
2002-10-21 22:31 ` Alan Cox
2002-10-21 22:25   ` Doug Ledford
2002-10-21 22:29     ` Matt Domsch
2002-10-21 22:33     ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox