* [PATCH] ARM: OMAP: Fix warnings in plat-omap
@ 2006-10-27 16:09 Dirk Behme
0 siblings, 0 replies; only message in thread
From: Dirk Behme @ 2006-10-27 16:09 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 441 bytes --]
Fix warnings
arch/arm/plat-omap/dmtimer.c: In function
'omap_dm_timer_modify_idlect_mask':
arch/arm/plat-omap/dmtimer.c:317: warning: no return
statement in function returning non-void
arch/arm/plat-omap/mailbox.c: In function 'omap_mbox_init':
arch/arm/plat-omap/mailbox.c:231: warning: ignoring return
value of 'class_device_create_file', declared with attribute
warn_unused_result
Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
[-- Attachment #2: plat_omap_warning_patch.txt --]
[-- Type: text/plain, Size: 1023 bytes --]
Index: linux-osk/arch/arm/plat-omap/mailbox.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/mailbox.c
+++ linux-osk/arch/arm/plat-omap/mailbox.c
@@ -228,7 +228,12 @@ static int omap_mbox_init(struct omap_mb
if (unlikely(ret))
return ret;
- class_device_create_file(&mbox->class_dev, &class_device_attr_mbox);
+ ret = class_device_create_file(&mbox->class_dev, &class_device_attr_mbox);
+ if (unlikely(ret)) {
+ printk(KERN_ERR
+ "class_device_create_file failed: %d\n", ret);
+ goto fail1;
+ }
ret = request_irq(mbox->irq, mbox_interrupt, SA_INTERRUPT,
mbox->name, mbox);
Index: linux-osk/arch/arm/plat-omap/dmtimer.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/dmtimer.c
+++ linux-osk/arch/arm/plat-omap/dmtimer.c
@@ -314,6 +314,8 @@ struct clk *omap_dm_timer_get_fclk(struc
__u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask)
{
BUG();
+
+ return 0;
}
#endif
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-27 16:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27 16:09 [PATCH] ARM: OMAP: Fix warnings in plat-omap Dirk Behme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox