* More build errors and warnings
@ 2012-02-20 7:53 Russell King - ARM Linux
2012-02-20 17:55 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2012-02-20 7:53 UTC (permalink / raw)
To: linux-omap
Errors:
arch/arm/mach-omap2/built-in.o: In function `n8x0_mmc_callback': twl-common.c:(.text+0x108a0): undefined reference to `omap_mmc_notify_cover_event'</pre><h2>Warnings
Warnings:
drivers/iommu/omap-iommu-debug.c:271: warning: passing argument 1 of 'omap_find_iovm_area' from incompatible pointer type
drivers/iommu/omap-iommu-debug.c:308: warning: passing argument 1 of 'omap_find_iovm_area' from incompatible pointer type
These two are a serious problem, which needs fixing for -rc:
omap-iommu-debug.c:
struct omap_iommu *obj = file->private_data;
area = omap_find_iovm_area(obj, (u32)ppos);
arch/arm/plat-omap/include/plat/iovmm.h:extern struct iovm_struct *omap_find_iovm_area(struct device *dev, u32 da);
Config file (for the next 7 days):
http://www.arm.linux.org.uk/developer/build/file.php?type=config&idx=170
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: More build errors and warnings
2012-02-20 7:53 More build errors and warnings Russell King - ARM Linux
@ 2012-02-20 17:55 ` Tony Lindgren
2012-02-20 18:01 ` Ohad Ben-Cohen
2012-02-20 18:06 ` [PATCH] ARM: OMAP: Fix build error when mmc_omap is built as module Tony Lindgren
0 siblings, 2 replies; 4+ messages in thread
From: Tony Lindgren @ 2012-02-20 17:55 UTC (permalink / raw)
To: Russell King - ARM Linux, Ohad Ben-Cohen; +Cc: linux-omap
Hi Russell & Ohad,
* Russell King - ARM Linux <linux@arm.linux.org.uk> [120219 23:22]:
> Errors:
>
> arch/arm/mach-omap2/built-in.o: In function `n8x0_mmc_callback': twl-common.c:(.text+0x108a0): undefined reference to `omap_mmc_notify_cover_event'</pre><h2>Warnings
I'll post a fix to do a warning here if the cover events
are unavailable. The long term fix is to let the MMC driver
register the callback with the PMIC to do this.
> Warnings:
>
> drivers/iommu/omap-iommu-debug.c:271: warning: passing argument 1 of 'omap_find_iovm_area' from incompatible pointer type
> drivers/iommu/omap-iommu-debug.c:308: warning: passing argument 1 of 'omap_find_iovm_area' from incompatible pointer type
>
> These two are a serious problem, which needs fixing for -rc:
>
> omap-iommu-debug.c:
> struct omap_iommu *obj = file->private_data;
>
> area = omap_find_iovm_area(obj, (u32)ppos);
>
> arch/arm/plat-omap/include/plat/iovmm.h:extern struct iovm_struct *omap_find_iovm_area(struct device *dev, u32 da);
>
> Config file (for the next 7 days):
> http://www.arm.linux.org.uk/developer/build/file.php?type=config&idx=170
Ohad, care to look into fixing these for the -rc series?
Regards,
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: More build errors and warnings
2012-02-20 17:55 ` Tony Lindgren
@ 2012-02-20 18:01 ` Ohad Ben-Cohen
2012-02-20 18:06 ` [PATCH] ARM: OMAP: Fix build error when mmc_omap is built as module Tony Lindgren
1 sibling, 0 replies; 4+ messages in thread
From: Ohad Ben-Cohen @ 2012-02-20 18:01 UTC (permalink / raw)
To: Tony Lindgren; +Cc: Russell King - ARM Linux, linux-omap
On Mon, Feb 20, 2012 at 7:55 PM, Tony Lindgren <tony@atomide.com> wrote:
> Ohad, care to look into fixing these for the -rc series?
Sure thing, will do.
Ohad.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: OMAP: Fix build error when mmc_omap is built as module
2012-02-20 17:55 ` Tony Lindgren
2012-02-20 18:01 ` Ohad Ben-Cohen
@ 2012-02-20 18:06 ` Tony Lindgren
1 sibling, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2012-02-20 18:06 UTC (permalink / raw)
To: Russell King - ARM Linux, Ohad Ben-Cohen; +Cc: linux-omap
Otherwise we get the following error:
arch/arm/mach-omap2/built-in.o: In function `n8x0_mmc_callback':
twl-common.c:(.text+0x108a0): undefined reference to
`omap_mmc_notify_cover_event'
Fix this by warning about unusable MMC cover events.
The long term fix needs to change the MMC drivers to
register board specific callbacks directly with PMIC.
Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
--- a/arch/arm/mach-omap2/board-n8x0.c
+++ b/arch/arm/mach-omap2/board-n8x0.c
@@ -371,7 +371,11 @@ static void n8x0_mmc_callback(void *data, u8 card_mask)
else
*openp = 0;
+#ifdef CONFIG_MMC_OMAP
omap_mmc_notify_cover_event(mmc_device, index, *openp);
+#else
+ pr_warn("MMC: notify cover event not available\n");
+#endif
}
static int n8x0_mmc_late_init(struct device *dev)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-20 18:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 7:53 More build errors and warnings Russell King - ARM Linux
2012-02-20 17:55 ` Tony Lindgren
2012-02-20 18:01 ` Ohad Ben-Cohen
2012-02-20 18:06 ` [PATCH] ARM: OMAP: Fix build error when mmc_omap is built as module Tony Lindgren
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.