lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090715222329.GA5292@nb-hp>
Date:	Thu, 16 Jul 2009 00:23:29 +0200
From:	Karsten Keil <keil@...systems.de>
To:	Jaswinder Singh Rajput <jaswinder@...nel.org>
Cc:	Matthias Urlichs <matthias@...ichs.de>, isdn@...ux-pingi.de,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: drivers/isdn/hardware/mISDN/hfcpci.c compiler warning seems
	like a BUG

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@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ