* [PATCH] Fix sata_sil compilation error with libata debug enabled (2.6.29-rcX)
@ 2009-02-02 19:47 Pasi Kärkkäinen
2009-02-02 21:12 ` Jeff Garzik
2009-02-03 3:38 ` Jeff Garzik
0 siblings, 2 replies; 4+ messages in thread
From: Pasi Kärkkäinen @ 2009-02-02 19:47 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 835 bytes --]
Hello!
I tried compiling 2.6.29-rc1 and 2.6.29-rc3 with libata debugging enabled
and got the following error:
CC [M] drivers/ata/sata_sil.o
drivers/ata/sata_sil.c: In function 'sil_fill_sg':
drivers/ata/sata_sil.c:327: error: 'pi' undeclared (first use in this function)
drivers/ata/sata_sil.c:327: error: (Each undeclared identifier is reported only once
drivers/ata/sata_sil.c:327: error: for each function it appears in.)
make[2]: *** [drivers/ata/sata_sil.o] Error 1
make[1]: *** [drivers/ata] Error 2
make: *** [drivers] Error 2
include/linux/libata.h has the following enabled:
#define ATA_DEBUG
#define ATA_VERBOSE_DEBUG
#define ATA_IRQ_TRAP
The attached patch fixes the compilation.. I'm not sure if it's the correct
fix, but looking at the code it seems correct.. or at least makes the
code compile for me :)
-- Pasi
[-- Attachment #2: sata_sil-libata-debug-compilation-error.patch --]
[-- Type: text/x-diff, Size: 375 bytes --]
--- drivers/ata/sata_sil.c.orig 2009-02-02 16:59:26.000000000 +0200
+++ drivers/ata/sata_sil.c 2009-02-02 21:37:12.000000000 +0200
@@ -324,7 +324,7 @@
prd->addr = cpu_to_le32(addr);
prd->flags_len = cpu_to_le32(sg_len);
- VPRINTK("PRD[%u] = (0x%X, 0x%X)\n", pi, addr, sg_len);
+ VPRINTK("PRD[%u] = (0x%X, 0x%X)\n", si, addr, sg_len);
last_prd = prd;
prd++;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix sata_sil compilation error with libata debug enabled (2.6.29-rcX)
2009-02-02 19:47 [PATCH] Fix sata_sil compilation error with libata debug enabled (2.6.29-rcX) Pasi Kärkkäinen
@ 2009-02-02 21:12 ` Jeff Garzik
2009-02-03 3:38 ` Jeff Garzik
1 sibling, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2009-02-02 21:12 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: linux-kernel
Pasi Kärkkäinen wrote:
> Hello!
>
> I tried compiling 2.6.29-rc1 and 2.6.29-rc3 with libata debugging enabled
> and got the following error:
>
> CC [M] drivers/ata/sata_sil.o
> drivers/ata/sata_sil.c: In function 'sil_fill_sg':
> drivers/ata/sata_sil.c:327: error: 'pi' undeclared (first use in this function)
> drivers/ata/sata_sil.c:327: error: (Each undeclared identifier is reported only once
> drivers/ata/sata_sil.c:327: error: for each function it appears in.)
> make[2]: *** [drivers/ata/sata_sil.o] Error 1
> make[1]: *** [drivers/ata] Error 2
> make: *** [drivers] Error 2
>
> include/linux/libata.h has the following enabled:
>
> #define ATA_DEBUG
> #define ATA_VERBOSE_DEBUG
> #define ATA_IRQ_TRAP
>
> The attached patch fixes the compilation.. I'm not sure if it's the correct
> fix, but looking at the code it seems correct.. or at least makes the
> code compile for me :)
Thanks! Queued...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix sata_sil compilation error with libata debug enabled (2.6.29-rcX)
2009-02-02 19:47 [PATCH] Fix sata_sil compilation error with libata debug enabled (2.6.29-rcX) Pasi Kärkkäinen
2009-02-02 21:12 ` Jeff Garzik
@ 2009-02-03 3:38 ` Jeff Garzik
2009-02-03 12:01 ` Pasi Kärkkäinen
1 sibling, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2009-02-03 3:38 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: linux-kernel, Linux IDE mailing list
Pasi Kärkkäinen wrote:
> Hello!
>
> I tried compiling 2.6.29-rc1 and 2.6.29-rc3 with libata debugging enabled
> and got the following error:
>
> CC [M] drivers/ata/sata_sil.o
> drivers/ata/sata_sil.c: In function 'sil_fill_sg':
> drivers/ata/sata_sil.c:327: error: 'pi' undeclared (first use in this function)
> drivers/ata/sata_sil.c:327: error: (Each undeclared identifier is reported only once
> drivers/ata/sata_sil.c:327: error: for each function it appears in.)
> make[2]: *** [drivers/ata/sata_sil.o] Error 1
> make[1]: *** [drivers/ata] Error 2
> make: *** [drivers] Error 2
>
> include/linux/libata.h has the following enabled:
>
> #define ATA_DEBUG
> #define ATA_VERBOSE_DEBUG
> #define ATA_IRQ_TRAP
>
> The attached patch fixes the compilation.. I'm not sure if it's the correct
> fix, but looking at the code it seems correct.. or at least makes the
> code compile for me :)
applied
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix sata_sil compilation error with libata debug enabled (2.6.29-rcX)
2009-02-03 3:38 ` Jeff Garzik
@ 2009-02-03 12:01 ` Pasi Kärkkäinen
0 siblings, 0 replies; 4+ messages in thread
From: Pasi Kärkkäinen @ 2009-02-03 12:01 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel, Linux IDE mailing list
On Mon, Feb 02, 2009 at 10:38:43PM -0500, Jeff Garzik wrote:
> Pasi Kärkkäinen wrote:
> >Hello!
> >
> >I tried compiling 2.6.29-rc1 and 2.6.29-rc3 with libata debugging enabled
> >and got the following error:
> >
> > CC [M] drivers/ata/sata_sil.o
> >drivers/ata/sata_sil.c: In function 'sil_fill_sg':
> >drivers/ata/sata_sil.c:327: error: 'pi' undeclared (first use in this
> >function)
> >drivers/ata/sata_sil.c:327: error: (Each undeclared identifier is reported
> >only once
> >drivers/ata/sata_sil.c:327: error: for each function it appears in.)
> >make[2]: *** [drivers/ata/sata_sil.o] Error 1
> >make[1]: *** [drivers/ata] Error 2
> >make: *** [drivers] Error 2
> >
> >include/linux/libata.h has the following enabled:
> >
> >#define ATA_DEBUG
> >#define ATA_VERBOSE_DEBUG
> >#define ATA_IRQ_TRAP
> >
> >The attached patch fixes the compilation.. I'm not sure if it's the correct
> >fix, but looking at the code it seems correct.. or at least makes the
> >code compile for me :)
>
> applied
>
Great, thanks!
-- Pasi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-03 12:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 19:47 [PATCH] Fix sata_sil compilation error with libata debug enabled (2.6.29-rcX) Pasi Kärkkäinen
2009-02-02 21:12 ` Jeff Garzik
2009-02-03 3:38 ` Jeff Garzik
2009-02-03 12:01 ` Pasi Kärkkäinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox