public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/isdn/hardware/mISDN/hfcpci.c compiler warning seems like a BUG
@ 2009-07-15  6:39 Jaswinder Singh Rajput
  2009-07-15 22:23 ` Karsten Keil
  0 siblings, 1 reply; 2+ messages in thread
From: Jaswinder Singh Rajput @ 2009-07-15  6:39 UTC (permalink / raw)
  To: Matthias Urlichs, Karsten Keil, isdn, LKML

I am getting this compiler warning in linus tree :

  CC [M]  drivers/isdn/hardware/mISDN/hfcpci.o
drivers/isdn/hardware/mISDN/hfcpci.c: In function ‘hfcpci_softirq’:
drivers/isdn/hardware/mISDN/hfcpci.c:2333: warning: ignoring return value of ‘driver_for_each_device’, declared with attribute warn_unused_result

static void
hfcpci_softirq(void *arg)
{
        (void) driver_for_each_device(&hfc_driver.driver, NULL, arg,
                                        _hfcpci_softirq);

        /* if next event would be in the past ... */
        if ((s32)(hfc_jiffies + tics - jiffies) <= 0)
                hfc_jiffies = jiffies + 1;
        else
                hfc_jiffies += tics;
        hfc_tl.expires = hfc_jiffies;
        add_timer(&hfc_tl);
}

It seems to me it should return is driver_for_each_device fails :
        if (driver_for_each_device(&hfc_driver.driver, NULL, arg,
                                   _hfcpci_softirq))
		return;

or if possible can we return this error code for hfcpci_softirq()

Thanks,
--
JSR



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: drivers/isdn/hardware/mISDN/hfcpci.c compiler warning seems like a BUG
  2009-07-15  6:39 drivers/isdn/hardware/mISDN/hfcpci.c compiler warning seems like a BUG Jaswinder Singh Rajput
@ 2009-07-15 22:23 ` Karsten Keil
  0 siblings, 0 replies; 2+ messages in thread
From: Karsten Keil @ 2009-07-15 22:23 UTC (permalink / raw)
  To: Jaswinder Singh Rajput; +Cc: Matthias Urlichs, isdn, LKML

On Wed, Jul 15, 2009 at 12:09:57PM +0530, Jaswinder Singh Rajput wrote:
> I am getting this compiler warning in linus tree :
> 
>   CC [M]  drivers/isdn/hardware/mISDN/hfcpci.o
> drivers/isdn/hardware/mISDN/hfcpci.c: In function ‘hfcpci_softirq’:
> drivers/isdn/hardware/mISDN/hfcpci.c:2333: warning: ignoring return value of ‘driver_for_each_device’, declared with attribute warn_unused_result
> 
> static void
> hfcpci_softirq(void *arg)
> {
>         (void) driver_for_each_device(&hfc_driver.driver, NULL, arg,
>                                         _hfcpci_softirq);
> 
>         /* if next event would be in the past ... */
>         if ((s32)(hfc_jiffies + tics - jiffies) <= 0)
>                 hfc_jiffies = jiffies + 1;
>         else
>                 hfc_jiffies += tics;
>         hfc_tl.expires = hfc_jiffies;
>         add_timer(&hfc_tl);
> }
> 
> It seems to me it should return is driver_for_each_device fails :
>         if (driver_for_each_device(&hfc_driver.driver, NULL, arg,
>                                    _hfcpci_softirq))
> 		return;

Without looking deeper into it (I'm on a trip with limited net access), this sounds 
resonable for me, I will have a closer look next week.

> 
> or if possible can we return this error code for hfcpci_softirq()
> 
> Thanks,
> --
> JSR
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-15 22:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15  6:39 drivers/isdn/hardware/mISDN/hfcpci.c compiler warning seems like a BUG Jaswinder Singh Rajput
2009-07-15 22:23 ` Karsten Keil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox