From: Karsten Keil <keil@b1-systems.de>
To: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: Matthias Urlichs <matthias@urlichs.de>,
isdn@linux-pingi.de, LKML <linux-kernel@vger.kernel.org>
Subject: Re: drivers/isdn/hardware/mISDN/hfcpci.c compiler warning seems like a BUG
Date: Thu, 16 Jul 2009 00:23:29 +0200 [thread overview]
Message-ID: <20090715222329.GA5292@nb-hp> (raw)
In-Reply-To: <1247639997.2437.21.camel@ht.satnam>
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/
prev parent reply other threads:[~2009-07-15 22:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090715222329.GA5292@nb-hp \
--to=keil@b1-systems.de \
--cc=isdn@linux-pingi.de \
--cc=jaswinder@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias@urlichs.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox