diff options
author | Sean Hefty <sean.hefty@intel.com> | 2005-08-14 00:05:57 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-08-26 23:37:35 -0400 |
commit | 97f52eb438be7caebe026421545619d8a0c1398a (patch) | |
tree | 1085acb833b691e9cc7ef607e4b4ac8cbd81e03f /drivers/infiniband/hw/mthca/mthca_memfree.c | |
parent | 92a6b34bf4d0d11c54b2a6bdd6240f98cb326200 (diff) |
[PATCH] IB: sparse endianness cleanup
Fix sparse warnings. Use __be* where appropriate.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_memfree.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_memfree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_memfree.c b/drivers/infiniband/hw/mthca/mthca_memfree.c index 9efb0322c761..fba0a53ba6ea 100644 --- a/drivers/infiniband/hw/mthca/mthca_memfree.c +++ b/drivers/infiniband/hw/mthca/mthca_memfree.c | |||
@@ -482,7 +482,7 @@ void mthca_cleanup_user_db_tab(struct mthca_dev *dev, struct mthca_uar *uar, | |||
482 | } | 482 | } |
483 | } | 483 | } |
484 | 484 | ||
485 | int mthca_alloc_db(struct mthca_dev *dev, int type, u32 qn, u32 **db) | 485 | int mthca_alloc_db(struct mthca_dev *dev, int type, u32 qn, __be32 **db) |
486 | { | 486 | { |
487 | int group; | 487 | int group; |
488 | int start, end, dir; | 488 | int start, end, dir; |
@@ -565,7 +565,7 @@ found: | |||
565 | 565 | ||
566 | page->db_rec[j] = cpu_to_be64((qn << 8) | (type << 5)); | 566 | page->db_rec[j] = cpu_to_be64((qn << 8) | (type << 5)); |
567 | 567 | ||
568 | *db = (u32 *) &page->db_rec[j]; | 568 | *db = (__be32 *) &page->db_rec[j]; |
569 | 569 | ||
570 | out: | 570 | out: |
571 | up(&dev->db_tab->mutex); | 571 | up(&dev->db_tab->mutex); |