Build fixes related to undefined struct scatterlist
Subsystems (4)
cover Build fixes related to undefined struct scatterlist
Hi,
The following two patches fix build issues caused by undefined struct scatterlist.
Thanks,
Rafael
PATCH 1/2 MMC / TMIO: Fix build issue related to struct scatterlist
From: Rafael J. Wysocki <[email protected]>
Fix build issue caused by undefined struct scatterlist in drivers/mmc/host/tmio_mmc.c.
--- drivers/mmc/host/tmio_mmc.h | 1 + drivers/usb/renesas_usbhs/fifo.c | 1 + 2 files changed, 2 insertions(+)
drivers/mmc/host/tmio_mmc.h +1 -0
@@ -21,6 +21,7 @@#include <linux/mutex.h> #include <linux/pagemap.h> #include <linux/spinlock.h> +#include <linux/scatterlist.h> /* Definitions for values the CTRL_SDIO_STATUS register can take. */ #define TMIO_SDIO_STAT_IOIRQ 0x0001
Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist
(added MMC maintainer to CC:)
Quoted 6 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Fix build issue caused by undefined struct scatterlist in
drivers/mmc/host/tmio_mmc.c.Signed-off-by Rafael J. Wysocki <[email protected]>
A nitpick, if I may: sCatterlist comes before sPinlock in my versions of most popular alphabets;-) Please, fix (or maybe Chris can fix it himself), after which:
Thanks
Guennadi
Quoted 19 lines
--- drivers/mmc/host/tmio_mmc.h | 1 + drivers/usb/renesas_usbhs/fifo.c | 1 + 2 files changed, 2 insertions(+)Index:
linux-2.6/drivers/mmc/host/tmio_mmc.h
===================================================================drivers/mmc/host/tmio_mmc.h +1
-1@@ -21,6 +21,7 @@#include <linux/mutex.h> #include <linux/pagemap.h> #include <linux/spinlock.h> +#include <linux/scatterlist.h> /* Definitions for values the CTRL_SDIO_STATUS register can take. */ #define TMIO_SDIO_STAT_IOIRQ 0x0001 --
Quoted 4 lines
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist
Quoted 6 lines · Guennadi Liakhovetski
(added MMC maintainer to CC:)
Quoted 2 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Quoted 7 lines
Quoted 4 lines
Fix build issue caused by undefined struct scatterlist in
drivers/mmc/host/tmio_mmc.c.Signed-off-by Rafael J. Wysocki <[email protected]>A nitpick, if I may: sCatterlist comes before sPinlock in my versions of most popular alphabets;-) Please, fix (or maybe Chris can fix it himself),
I'm not sure what you mean exactly (perhaps it's too late).
Rafael
Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Guennadi Liakhovetski
(added MMC maintainer to CC:)
Quoted 5 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Fix build issue caused by undefined struct scatterlist in
drivers/mmc/host/tmio_mmc.c.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Rafael J. Wysocki <[email protected]>A nitpick, if I may: sCatterlist comes before sPinlock in my versions of most popular alphabets;-) Please, fix (or maybe Chris can fix it himself),
I'm not sure what you mean exactly (perhaps it's too late).
I mean, that the headers are atm sorted alphabetically and should remain so, therefore you should add the new header one line higher. As for compile failure or not: I haven't seen any compile failures myself, but the patch is academically correct, because structs, declared in tmio_mmc.h embed struct scatterlist, therefore the header has to be included in that header too.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist
Quoted 14 lines · Guennadi Liakhovetski
Quoted 12 lines · Rafael J. Wysocki
Quoted 11 lines · Guennadi Liakhovetski
(added MMC maintainer to CC:)
Quoted 6 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Fix build issue caused by undefined struct scatterlist in
drivers/mmc/host/tmio_mmc.c.Signed-off-by Rafael J. Wysocki <[email protected]>
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
A nitpick, if I may: sCatterlist comes before sPinlock in my versions of most popular alphabets;-) Please, fix (or maybe Chris can fix it himself),
I'm not sure what you mean exactly (perhaps it's too late).
I mean, that the headers are atm sorted alphabetically and should remain so, therefore you should add the new header one line higher.
Ah. Well, as I said the patch had been merged already, so obviously Linus didn't care. :-)
Quoted 4 lines
As for compile failure or not: I haven't seen any compile failures myself, but the patch is academically correct, because structs, declared in
tmio_mmc.hembed struct scatterlist, therefore the header has to be included in that header too.
Exactly. I've seen a real failure, though.
Thanks,
Rafael
Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist
In reply to Rafael J. WysockiHi Rafael,
Quoted 16 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Fix build issue caused by undefined struct scatterlist in
drivers/mmc/host/tmio_mmc.c.Signed-off-by Rafael J. Wysocki <[email protected]>--- drivers/mmc/host/tmio_mmc.h | 1 + drivers/usb/renesas_usbhs/fifo.c | 1 + 2 files changed, 2 insertions(+)Index:
linux-2.6/drivers/mmc/host/tmio_mmc.h
===================================================================
drivers/mmc/host/tmio_mmc.h line 27
Quoted 7 lines
drivers/mmc/host/tmio_mmc.h +1
-0@@ -21,6 +21,7 @@#include <linux/mutex.h> #include <linux/pagemap.h> #include <linux/spinlock.h> +#include <linux/scatterlist.h> /* Definitions for values the CTRL_SDIO_STATUS register can take. */ #define TMIO_SDIO_STAT_IOIRQ 0x0001
I'm not able to reproduce the build failure here.
drivers/mmc/host/tmio_mmc.c already performs "#include <linux/scatterlist.h>" itself (and always has done), so I'm confused about why this is necessary. Do you have a copy of your build log with the error?
Thanks,
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child
Re: [PATCH 1/2] MMC / TMIO: Fix build issue related to struct scatterlist
Quoted 24 lines · Chris Ball
Hi Rafael,
Quoted 21 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Fix build issue caused by undefined struct scatterlist in
drivers/mmc/host/tmio_mmc.c.Signed-off-by Rafael J. Wysocki <[email protected]>--- drivers/mmc/host/tmio_mmc.h | 1 + drivers/usb/renesas_usbhs/fifo.c | 1 + 2 files changed, 2 insertions(+)Index:
linux-2.6/drivers/mmc/host/tmio_mmc.h
===================================================================drivers/mmc/host/tmio_mmc.h +1
-0@@ -21,6 +21,7 @@#include <linux/mutex.h> #include <linux/pagemap.h> #include <linux/spinlock.h> +#include <linux/scatterlist.h>
Quoted 8 lines
drivers/mmc/host/tmio_mmc.h line 27
Quoted 2 lines
drivers/mmc/host/tmio_mmc.h +0
-0/* Definitions for values the CTRL_SDIO_STATUS register can take. */ #define TMIO_SDIO_STAT_IOIRQ 0x0001I'm not able to reproduce the build failure here.
drivers/mmc/host/tmio_mmc.calready performs "#include <linux/scatterlist.h>" itself (and always has done), so I'm confused about why this is necessary. Do you have a copy of your build log with the error?
tmio_mmc.h is included by sh_mobile_sdhi.c too and that one doesn't include scatterlist.h, which causes a build failure to happen, becuase of the bounce_sg member of struct tmio_mmc_host.
The patch has been merged already anyway.
Thanks,
Rafael
PATCH 2/2 USB / Renesas: Fix build issue related to struct scatterlist
In reply to Rafael J. WysockiFrom: Rafael J. Wysocki <[email protected]>
Fix build issue caused by undefined struct scatterlist in drivers/usb/renesas_usbhs/fifo.c.
--- drivers/usb/renesas_usbhs/fifo.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/renesas_usbhs/fifo.c +1 -0
@@ -16,6 +16,7 @@*/ #include <linux/delay.h> #include <linux/io.h> +#include <linux/scatterlist.h> #include "./common.h" #include "./pipe.h"