Re: Can't compile sg.c 2.6.8-rc1-mm1

From: Jeff Garzik
Date: Wed Jul 14 2004 - 11:45:01 EST


Adrian Bunk wrote:
On Wed, Jul 14, 2004 at 11:55:15AM -0400, Jeff Garzik wrote:

Genady Okrain wrote:

I am using gcc-3.4.1

CC [M] drivers/scsi/sg.o
drivers/scsi/sg.c: In function `sg_ioctl':
drivers/scsi/sg.c:209: sorry, unimplemented: inlining failed in call
to 'sg_jif_to_ms': function body not available
drivers/scsi/sg.c:930: sorry, unimplemented: called from here
make[2]: *** [drivers/scsi/sg.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2


Looks like a compiler bug.


No, it's an inline that is used before it's defined.

I'll send a fix soon.

Wrong. The prototype is at the top of the file, as it should be.

Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/