[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8B1F619C9F5F454E81D90D3C161698D7017DD5644B@EXCH-MBX-3.vmware.com>
Date: Thu, 15 Oct 2009 15:53:33 -0700
From: Bhavesh Davda <bhavesh@...are.com>
To: Dmitry Torokhov <dtor@...are.com>,
"pv-drivers@...are.com" <pv-drivers@...are.com>
CC: Randy Dunlap <randy.dunlap@...cle.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
netdev <netdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
"linux-next@...r.kernel.org" <linux-next@...r.kernel.org>,
David Miller <davem@...emloft.net>
Subject: RE: [Pv-drivers] [PATCH -next] vmxnet3: use dev_dbg, fix build for
CONFIG_BLOCK=n
> From: Dmitry Torokhov [mailto:dtor@...are.com]
> Sent: Thursday, October 15, 2009 3:48 PM
> To: pv-drivers@...are.com
> Cc: Randy Dunlap; Bhavesh Davda; Stephen Rothwell; netdev; LKML; linux-
> next@...r.kernel.org; David Miller
> Subject: Re: [Pv-drivers] [PATCH -next] vmxnet3: use dev_dbg, fix build
> for CONFIG_BLOCK=n
>
> Hi Randy,
>
> On Thursday 15 October 2009 03:42:49 pm Randy Dunlap wrote:
> > Bhavesh Davda wrote:
> > > Who ever compiles with CONFIG_BLOCK=n? Just kidding...
> >
> > or why does networking need CONFIG_BLOCK at all? ;)
> >
> > > Thanks again for making this change! Ship it!
> >
> > So could I have used adapter->netdev->dev or adapter->pdev->dev ?
> > either of them? are they the same?
> >
>
> They are the same.
Right:
vmxnet3_probe_device(struct pci_dev *pdev,...)
struct net_device *netdev;
...
netdev = alloc_etherdev(sizeof(struct vmxnet3_adapter));
...
pci_set_drvdata(pdev, netdev);
adapter = netdev_priv(netdev);
adapter->netdev = netdev;
adapter->pdev = pdev;
- Bhavesh
--
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