mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Joe Perches <joe@perches.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Gregory Haskins <ghaskins@novell.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch] Re: Zillions of warnings in -next
Date: Wed, 28 Oct 2009 01:08:40 +0100	[thread overview]
Message-ID: <4AE78B88.5000105@s5r6.in-berlin.de> (raw)
In-Reply-To: <1256685917.29938.79.camel@Joe-Laptop.home>

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/

  reply	other threads:[~2009-10-28  0:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27 15:25 Alan Cox
2009-10-27 15:57 ` Gregory Haskins
2009-10-27 20:53 ` Gregory Haskins
2009-10-27 22:21   ` Alan Cox
2009-10-27 22:36     ` [patch] " Randy Dunlap
2009-10-27 23:25       ` Joe Perches
2009-10-28  0:08         ` Stefan Richter [this message]
2009-10-28 13:35       ` Gregory Haskins

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=4AE78B88.5000105@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=ghaskins@novell.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    /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

all inboxes | Powered by JetHome®