netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: davem@davemloft.net, Anjali Singhai <anjali.singhai@intel.com>,
	netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
	jogreene@redhat.com,
	Jesse Brandeburg <jesse.brandeburg@intel.com>
Subject: Re: [net-next 11/14] i40e: Ioremap changes
Date: Thu, 05 Mar 2015 17:55:43 -0800	[thread overview]
Message-ID: <1425606943.2556.149.camel@jtkirshe-mobl> (raw)
In-Reply-To: <1425600978.8804.6.camel@decadent.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

On Fri, 2015-03-06 at 00:16 +0000, Ben Hutchings wrote:
> On Thu, 2015-03-05 at 08:46 -0800, Jeff Kirsher wrote:
> [...]
> > --- a/drivers/net/ethernet/intel/i40e/i40e_main.c
> > +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
> > @@ -9459,6 +9459,7 @@ static int i40e_probe(struct pci_dev *pdev,
> const struct pci_device_id *ent)
> >       struct i40e_pf *pf;
> >       struct i40e_hw *hw;
> >       static u16 pfs_found;
> > +     u32 ioremap_len;
> >       u16 link_status;
> >       int err = 0;
> >       u32 len;
> > @@ -9507,8 +9508,11 @@ static int i40e_probe(struct pci_dev *pdev,
> const struct pci_device_id *ent)
> >  
> >       hw = &pf->hw;
> >       hw->back = pf;
> > -     hw->hw_addr = ioremap(pci_resource_start(pdev, 0),
> > -                           pci_resource_len(pdev, 0));
> > +
> > +     ioremap_len = min_t(int, pci_resource_len(pdev, 0),
> > +                         I40E_MAX_CSR_SPACE);
> 
> What type do you really want ioremap_len to be, u32 or int?  (I think
> the correct answer is unsigned long as that's the ioremap() parameter
> type.)

Yeah, I agree.  Once Dave updates his net-next tree with the patches he
has accepted, I will send out a fix.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-03-06  1:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 16:46 [net-next 00/14][pull request] Intel Wired LAN Driver Updates 2015-03-05 Jeff Kirsher
2015-03-05 16:46 ` [net-next 01/14] i40e: Fix NPAR Tx Scheduler init Jeff Kirsher
2015-03-05 16:46 ` [net-next 02/14] i40e: during LED interaction ignore activity LED src modes Jeff Kirsher
2015-03-05 16:46 ` [net-next 03/14] i40e: Don't check operational or sync bit for App TLV Jeff Kirsher
2015-03-05 16:46 ` [net-next 04/14] i40e/i40evf: grab NVM devstarter version not image version Jeff Kirsher
2015-03-05 16:46 ` [net-next 05/14] i40e: use more portable sign extension Jeff Kirsher
2015-03-05 16:46 ` [net-next 06/14] i40e: fix XPS mask when resetting Jeff Kirsher
2015-03-05 16:46 ` [net-next 07/14] i40e: Reassign incorrect PHY type to fix a FW bug Jeff Kirsher
2015-03-05 16:46 ` [net-next 08/14] i40e: Fix ethtool offline test Jeff Kirsher
2015-03-05 16:46 ` [net-next 09/14] i40e: Add AOC PHY types to case statements Jeff Kirsher
2015-03-05 16:46 ` [net-next 10/14] i40e/i40evf: Clean up some formatting and other things Jeff Kirsher
2015-03-05 16:46 ` [net-next 11/14] i40e: Ioremap changes Jeff Kirsher
2015-03-06  0:16   ` Ben Hutchings
2015-03-06  1:55     ` Jeff Kirsher [this message]
2015-03-06  2:15       ` David Miller
2015-03-06  2:36         ` Jeff Kirsher
2015-03-05 16:46 ` [net-next 12/14] i40e: move IRQ tracking setup into MSIX setup Jeff Kirsher
2015-03-05 16:46 ` [net-next 13/14] i40e: don't spam the system log Jeff Kirsher
2015-03-05 16:46 ` [net-next 14/14] i40e/i40evf: Version bump Jeff Kirsher
2015-03-05 20:54 ` [net-next 00/14][pull request] Intel Wired LAN Driver Updates 2015-03-05 David Miller

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=1425606943.2556.149.camel@jtkirshe-mobl \
    --to=jeffrey.t.kirsher@intel.com \
    --cc=anjali.singhai@intel.com \
    --cc=ben@decadent.org.uk \
    --cc=davem@davemloft.net \
    --cc=jesse.brandeburg@intel.com \
    --cc=jogreene@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@redhat.com \
    --cc=sassmann@redhat.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;
as well as URLs for NNTP newsgroup(s).