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] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AE78B88.5000105@s5r6.in-berlin.de>
Date:	Wed, 28 Oct 2009 01:08:40 +0100
From:	Stefan Richter <stefanr@...6.in-berlin.de>
To:	Joe Perches <joe@...ches.com>
CC:	Randy Dunlap <randy.dunlap@...cle.com>,
	Alan Cox <alan@...rguk.ukuu.org.uk>,
	Gregory Haskins <ghaskins@...ell.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [patch] Re: Zillions of warnings in -next

Joe Perches wrote:
> On Tue, 2009-10-27 at 15:36 -0700, Randy Dunlap wrote:
[...]
>> @@ -643,7 +644,7 @@ eventq_wakeup(struct ioq_notifier *notif
>>  		struct ioq_ring_desc *desc  = iter.desc;
>>  		struct vbus_pci_event *event;
>>  
>> -		event = (struct vbus_pci_event *)desc->cookie;
>> +		event = (struct vbus_pci_event *)(unsigned long)desc->cookie;
>>  
>>  		switch (event->eventid) {
>>  		case VBUS_PCI_EVENT_DEVADD:
> 
> #define cast_cookie(type, cookie) ((type)(unsigned long)(cookie))
> #define assign_cookie(var, cookie) (var) = ((typeof(var))(unsigned
> long)(cookie))

C is usually preferred over cpp. :-)
-- 
Stefan Richter
-=====-==--= =-=- ===--
http://arcgraph.de/sr/
--
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