Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b8d095d782fa1e97d5dc05c08ba32c8eb28b85e4
Commit:     b8d095d782fa1e97d5dc05c08ba32c8eb28b85e4
Parent:     e84df485c8e059bc9d8d0691ae6a3deafa1f9350
Author:     Ralf Baechle <[EMAIL PROTECTED]>
AuthorDate: Tue Mar 6 20:35:37 2007 +0000
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Fri Mar 9 11:47:19 2007 -0500

    netxen: fix warnings
    
      CC [M]  drivers/net/netxen/netxen_nic_hw.o
    drivers/net/netxen/netxen_nic_hw.c: In function 'netxen_nic_hw_resources':
    drivers/net/netxen/netxen_nic_hw.c:231: warning: format '%llx' expects type 
'long long unsigned int', but argument 2 has type 'dma_addr_t'
    drivers/net/netxen/netxen_nic_hw.c:250: warning: format '%llx' expects type 
'long long unsigned int', but argument 2 has type 'dma_addr_t'
    
    u64 is unsigned long so the cast to u64 will result in a warning on the
    printf arguments for 64-bit builds.  So cast to unsigned long long instead.
    
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/netxen/netxen_nic_hw.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/netxen/netxen_nic_hw.c 
b/drivers/net/netxen/netxen_nic_hw.c
index a2877f3..1be5570 100644
--- a/drivers/net/netxen/netxen_nic_hw.c
+++ b/drivers/net/netxen/netxen_nic_hw.c
@@ -228,7 +228,7 @@ int netxen_nic_hw_resources(struct netxen_adapter *adapter)
                            &adapter->ctx_desc_pdev);
 
        printk("ctx_desc_phys_addr: 0x%llx\n",
-              (u64) adapter->ctx_desc_phys_addr);
+              (unsigned long long) adapter->ctx_desc_phys_addr);
        if (addr == NULL) {
                DPRINTK(ERR, "bad return from pci_alloc_consistent\n");
                err = -ENOMEM;
@@ -247,7 +247,8 @@ int netxen_nic_hw_resources(struct netxen_adapter *adapter)
                            adapter->max_tx_desc_count,
                            (dma_addr_t *) & hw->cmd_desc_phys_addr,
                            &adapter->ahw.cmd_desc_pdev);
-       printk("cmd_desc_phys_addr: 0x%llx\n", (u64) hw->cmd_desc_phys_addr);
+       printk("cmd_desc_phys_addr: 0x%llx\n",
+              (unsigned long long) hw->cmd_desc_phys_addr);
 
        if (addr == NULL) {
                DPRINTK(ERR, "bad return from pci_alloc_consistent\n");
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to