Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361094
b: refs/heads/master
c: e7dbeba
h: refs/heads/master
v: v3
  • Loading branch information
Jack Morgenstein authored and David S. Miller committed Mar 7, 2013
1 parent 611ade1 commit b9f8e66
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0081c8f3814a8344ca975c085d987ec6c90499ae
refs/heads/master: e7dbeba85600aa2c8daf99f8f53d9ad27e88b810
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/mellanox/mlx4/cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn)

static void mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn)
{
u64 in_param;
u64 in_param = 0;
int err;

if (mlx4_is_mfunc(dev)) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/mellanox/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx)

void mlx4_counter_free(struct mlx4_dev *dev, u32 idx)
{
u64 in_param;
u64 in_param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&in_param, idx);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/mellanox/mlx4/mlx4.h
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);

static inline void set_param_l(u64 *arg, u32 val)
{
*((u32 *)arg) = val;
*arg = (*arg & 0xffffffff00000000ULL) | (u64) val;
}

static inline void set_param_h(u64 *arg, u32 val)
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/net/ethernet/mellanox/mlx4/mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order)

static u32 mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order)
{
u64 in_param;
u64 in_param = 0;
u64 out_param;
int err;

Expand Down Expand Up @@ -240,7 +240,7 @@ void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order)

static void mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order)
{
u64 in_param;
u64 in_param = 0;
int err;

if (mlx4_is_mfunc(dev)) {
Expand Down Expand Up @@ -351,7 +351,7 @@ void __mlx4_mpt_release(struct mlx4_dev *dev, u32 index)

static void mlx4_mpt_release(struct mlx4_dev *dev, u32 index)
{
u64 in_param;
u64 in_param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&in_param, index);
Expand All @@ -374,7 +374,7 @@ int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index)

static int mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index)
{
u64 param;
u64 param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&param, index);
Expand All @@ -395,7 +395,7 @@ void __mlx4_mpt_free_icm(struct mlx4_dev *dev, u32 index)

static void mlx4_mpt_free_icm(struct mlx4_dev *dev, u32 index)
{
u64 in_param;
u64 in_param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&in_param, index);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/mellanox/mlx4/pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn)

void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn)
{
u64 in_param;
u64 in_param = 0;
int err;

if (mlx4_is_mfunc(dev)) {
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/ethernet/mellanox/mlx4/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ EXPORT_SYMBOL_GPL(__mlx4_register_mac);

int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac)
{
u64 out_param;
u64 out_param = 0;
int err;

if (mlx4_is_mfunc(dev)) {
Expand Down Expand Up @@ -222,7 +222,7 @@ EXPORT_SYMBOL_GPL(__mlx4_unregister_mac);

void mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac)
{
u64 out_param;
u64 out_param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&out_param, port);
Expand Down Expand Up @@ -361,7 +361,7 @@ static int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan,

int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index)
{
u64 out_param;
u64 out_param = 0;
int err;

if (mlx4_is_mfunc(dev)) {
Expand Down Expand Up @@ -406,7 +406,7 @@ static void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, int index)

void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, int index)
{
u64 in_param;
u64 in_param = 0;
int err;

if (mlx4_is_mfunc(dev)) {
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/ethernet/mellanox/mlx4/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align,

int mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, int *base)
{
u64 in_param;
u64 in_param = 0;
u64 out_param;
int err;

Expand Down Expand Up @@ -255,7 +255,7 @@ void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt)

void mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt)
{
u64 in_param;
u64 in_param = 0;
int err;

if (mlx4_is_mfunc(dev)) {
Expand Down Expand Up @@ -319,7 +319,7 @@ int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn)

static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn)
{
u64 param;
u64 param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&param, qpn);
Expand All @@ -344,7 +344,7 @@ void __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn)

static void mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn)
{
u64 in_param;
u64 in_param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&in_param, qpn);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/mellanox/mlx4/srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn)

static void mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn)
{
u64 in_param;
u64 in_param = 0;

if (mlx4_is_mfunc(dev)) {
set_param_l(&in_param, srqn);
Expand Down

0 comments on commit b9f8e66

Please sign in to comment.