wifi: fix m805 kernel4.9 compile error
authorRongjun Chen <rongjun.chen@amlogic.com>
Thu, 27 Apr 2017 06:18:21 +0000 (14:18 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Thu, 27 Apr 2017 06:18:21 +0000 (14:18 +0800)
Change-Id: Id6ebfb2dcbbda905151b031e696c3a9ffd560a77

bcmdhd.1.363.59.144.x.cn/bcmsdh_sdmmc.c

index cf831572b64332ce1726df4eda88b5576126e4c8..5e798de9db15d56e299186536a4062a315c6d69d 100644 (file)
@@ -919,8 +919,8 @@ sdioh_request_byte(sdioh_info_t *sd, uint rw, uint func, uint regaddr, uint8 *by
 
        if (sd_msglevel & SDH_COST_VAL)
                getnstimeofday(&now);
-       sd_cost(("%s: rw=%d len=1 cost=%lds %luus\n", __FUNCTION__,
-               rw, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000));
+//     sd_cost(("%s: rw=%d len=1 cost=%lds %luus\n", __FUNCTION__,
+//             rw, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000));
 
        return ((err_ret == 0) ? SDIOH_API_RC_SUCCESS : SDIOH_API_RC_FAIL);
 }
@@ -1395,8 +1395,8 @@ sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint add
 
        if (sd_msglevel & SDH_COST_VAL)
                getnstimeofday(&now);
-       sd_cost(("%s: rw=%d, len=%d cost=%lds %luus\n", __FUNCTION__,
-               rw, nbytes, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000));
+//     sd_cost(("%s: rw=%d, len=%d cost=%lds %luus\n", __FUNCTION__,
+//             rw, nbytes, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000));
 
        return (((err_ret == 0)&&(err_ret2 == 0)) ? SDIOH_API_RC_SUCCESS : SDIOH_API_RC_FAIL);
 }
@@ -1473,7 +1473,7 @@ sdioh_request_packet_chain(sdioh_info_t *sd, uint fix_inc, uint write, uint func
                         * a restriction on max tx/glom count (based on host->max_segs).
                         */
                        if (sg_count >= ARRAYSIZE(sd->sg_list)) {
-                               sd_err(("%s: sg list entries exceed limit, sg_count=%d(%lu)\n", __FUNCTION__, sg_count, ARRAYSIZE(sd->sg_list)));
+//                             sd_err(("%s: sg list entries exceed limit, sg_count=%d(%lu)\n", __FUNCTION__, sg_count, ARRAYSIZE(sd->sg_list)));
                                return (SDIOH_API_RC_FAIL);
                        }
                        pdata += pkt_offset;
@@ -1611,8 +1611,8 @@ txglomfail:
 
        if (sd_msglevel & SDH_COST_VAL)
                getnstimeofday(&now);
-       sd_cost(("%s: rw=%d, cost=%lds %luus\n", __FUNCTION__,
-               write, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000));
+//     sd_cost(("%s: rw=%d, cost=%lds %luus\n", __FUNCTION__,
+//             write, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000));
 
        sd_trace(("%s: Exit\n", __FUNCTION__));
        return SDIOH_API_RC_SUCCESS;
@@ -1665,8 +1665,8 @@ sdioh_buffer_tofrom_bus(sdioh_info_t *sd, uint fix_inc, uint write, uint func,
 
        if (sd_msglevel & SDH_COST_VAL)
                getnstimeofday(&now);
-       sd_cost(("%s: rw=%d, len=%d cost=%lds %luus\n", __FUNCTION__,
-               write, len, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000));
+//     sd_cost(("%s: rw=%d, len=%d cost=%lds %luus\n", __FUNCTION__,
+//             write, len, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000));
        return ((err_ret == 0) ? SDIOH_API_RC_SUCCESS : SDIOH_API_RC_FAIL);
 }
 
@@ -1740,8 +1740,8 @@ sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write, u
 
        if (sd_msglevel & SDH_COST_VAL)
                getnstimeofday(&now);
-       sd_cost(("%s: len=%d cost=%lds %luus\n", __FUNCTION__,
-               buf_len, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000));
+//     sd_cost(("%s: len=%d cost=%lds %luus\n", __FUNCTION__,
+//             buf_len, now.tv_sec-before.tv_sec, now.tv_nsec/1000 - before.tv_nsec/1000));
 
        return status;
 }