Skip to content

Commit

Permalink
enic: Fix build warnings
Browse files Browse the repository at this point in the history
Fix data type of argument passed to pci_alloc_consistent and pci_free_consistent routines.

Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: David Wang <dwang2@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vasanthy Kolluri authored and David S. Miller committed Nov 15, 2010
1 parent ce5a121 commit 1f4f067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/enic/enic.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#define DRV_NAME "enic"
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
#define DRV_VERSION "1.4.1.6"
#define DRV_VERSION "1.4.1.7"
#define DRV_COPYRIGHT "Copyright 2008-2010 Cisco Systems, Inc"

#define ENIC_BARS_MAX 6
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,7 @@ static int enic_dev_hang_reset(struct enic *enic)

static int enic_set_rsskey(struct enic *enic)
{
u64 rss_key_buf_pa;
dma_addr_t rss_key_buf_pa;
union vnic_rss_key *rss_key_buf_va = NULL;
union vnic_rss_key rss_key = {
.key[0].b = {85, 67, 83, 97, 119, 101, 115, 111, 109, 101},
Expand Down Expand Up @@ -2073,7 +2073,7 @@ static int enic_set_rsskey(struct enic *enic)

static int enic_set_rsscpu(struct enic *enic, u8 rss_hash_bits)
{
u64 rss_cpu_buf_pa;
dma_addr_t rss_cpu_buf_pa;
union vnic_rss_cpu *rss_cpu_buf_va = NULL;
unsigned int i;
int err;
Expand Down

0 comments on commit 1f4f067

Please sign in to comment.