[ofw] [PATCH] Cleanup XXX_PTR64 macros from vstat
Leonid Keller
leonid at mellanox.co.il
Sun Jun 29 09:15:19 PDT 2008
Applied in 1305. Thank you.
> -----Original Message-----
> From: ofw-bounces at lists.openfabrics.org
> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Fab Tillier
> Sent: Friday, June 27, 2008 9:52 AM
> To: ofw at lists.openfabrics.org
> Subject: [ofw] [PATCH] Cleanup XXX_PTR64 macros from vstat
>
> This patch removes XXX_PTR64 and TO_ULONG_PTR macro use from vstat.
>
> Signed-off-by: Fab Tillier <ftillier at microsoft.com>
>
> Index: tools/vstat/user/vstat_main.c
> ===================================================================
> --- tools/vstat/user/vstat_main.c (revision 1300)
> +++ tools/vstat/user/vstat_main.c (working copy)
> @@ -1,6 +1,7 @@
> /*
> * Copyright (c) 2005 Mellanox Technologies. All rights reserved.
> * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
> + * Portions Copyright (c) 2008 Microsoft Corporation. All
> rights reserved.
> *
> * This software is available to you under the OpenIB.org BSD license
> * below:
> @@ -333,9 +334,9 @@
> printf("\thw_ver=0x%x\n", ca_attr->revision); //TODO: ???
> if(ca_attr->vend_id == VEND_ID_MELLNOX ||
> ca_attr->vend_id == VEND_ID_VOLTAIRE) {
> printf("\tfw_ver=%d.%.2d.%.4d\n",
> - (uint16_t )(ca_attr->fw_ver>>32),
> + (uint16_t)(ca_attr->fw_ver>>32),
> (uint16_t)(ca_attr->fw_ver>>16),
> - (uint16_t )(ca_attr->fw_ver));
> + (uint16_t)(ca_attr->fw_ver));
> printf("\tPSID=%s\n",mthca_get_board_id(ca_attr));
> }else{
> printf("\tfw_ver=0x%I64x\n",ca_attr->fw_ver);
> @@ -392,7 +393,7 @@
> }
> /* Internal Functions */
>
> -void vstat_get_counters(ib_ca_handle_t VOID_PTR64
> h_ca,uint8_t port_num)
> +void vstat_get_counters(ib_ca_handle_t h_ca,uint8_t port_num)
> {
> ib_mad_t *mad_in = NULL;
> ib_mad_t *mad_out = NULL;
> @@ -445,7 +446,7 @@
> }
>
>
> -void vstat_get_port_info(ib_ca_handle_t VOID_PTR64
> h_ca,uint8_t port_num, ib_port_info_t* vstat_port_info)
> +void vstat_get_port_info(ib_ca_handle_t h_ca,uint8_t port_num,
> +ib_port_info_t* vstat_port_info)
> {
> ib_mad_t *mad_in = NULL;
> ib_mad_t *mad_out = NULL;
> @@ -487,7 +488,7 @@
> BOOLEAN getCounters
> )
> {
> - ib_al_handle_t VOID_PTR64 h_al = NULL;
> + ib_al_handle_t h_al = NULL;
> ib_api_status_t ib_status = IB_SUCCESS;
> ib_api_status_t ret_status = IB_SUCCESS;
> size_t guid_count;
> @@ -495,7 +496,7 @@
> ib_ca_attr_t *vstat_ca_attr;
> ib_port_info_t vstat_port_info[2];
> size_t i;
> - ib_ca_handle_t VOID_PTR64 h_ca = NULL;
> + ib_ca_handle_t h_ca = NULL;
> uint32_t bsize;
> ib_port_attr_mod_t port_attr_mod;
> uint8_t port_idx;
>
More information about the ofw
mailing list