From patchwork Thu Oct 1 20:22:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 51018 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n91KKVcl030767 for ; Thu, 1 Oct 2009 20:20:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756508AbZJAUU0 (ORCPT ); Thu, 1 Oct 2009 16:20:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756540AbZJAUU0 (ORCPT ); Thu, 1 Oct 2009 16:20:26 -0400 Received: from ey-out-2122.google.com ([74.125.78.26]:2466 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756508AbZJAUUZ (ORCPT ); Thu, 1 Oct 2009 16:20:25 -0400 Received: by ey-out-2122.google.com with SMTP id 4so1144300eyf.5 for ; Thu, 01 Oct 2009 13:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=pclFpkz4qqUM3btG+d3fXA0tIDx1hbStqUPqIggi6EE=; b=osxdceUXgIXZw9qi5eyf/p1x4uDbeh10/RAx0njQ3GMO6nvjetwyqhfweNdptLSrpG Weqzwur60VX8+DzJLNr/uT4KexgFAn8u+/FrPqLq/2Dx66bX4QR9CWdb6uHtip+t7sPN AXBJjcsxvqrm4Qdu/yexjT+G9K5IPlZb+DbvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=phmbKpol1Rdod6jdYT8SZczpe/ZneY3H3G+msNdfoquA5qGKfpRqvNMvHR5yWoQjjZ har9/OEiJkLZVv8yC4RWowNry401A2lWBFfU9vLa49AQ+3X+VayhJw+ZfsPCVEVH9TKY OKCGrcC6eLSUd9OC4MLsHQbNtvtCumQTzcbj4= Received: by 10.210.156.7 with SMTP id d7mr3232001ebe.16.1254428427633; Thu, 01 Oct 2009 13:20:27 -0700 (PDT) Received: from me.localdomain (85.64.35.106.dynamic.barak-online.net [85.64.35.106]) by mx.google.com with ESMTPS id 28sm9717eyg.4.2009.10.01.13.20.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Oct 2009 13:20:26 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id 1330F429E0; Thu, 1 Oct 2009 22:22:15 +0200 (IST) Date: Thu, 1 Oct 2009 22:22:15 +0200 From: Sasha Khapyorsky To: "Smith, Stan" , linux-rdma Cc: "ofw@lists.openfabrics.org" , "Hefty, Sean" , Jason Gunthorpe Subject: [PATCH] opensm/osm_helper: remove meanless 'const' keywords Message-ID: <20091001202215.GZ17846@me> References: <3DE88517D38A4EB0B49A2E3AAF96D005@amr.corp.intel.com> <20091001183127.GX17846@me> <3F6F638B8D880340AB536D29CD4C1E1912C86E88D1@orsmsx501.amr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3F6F638B8D880340AB536D29CD4C1E1912C86E88D1@orsmsx501.amr.corp.intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/include/opensm/osm_helper.h b/opensm/include/opensm/osm_helper.h index d76af8d..ddca69b 100644 --- a/opensm/include/opensm/osm_helper.h +++ b/opensm/include/opensm/osm_helper.h @@ -209,12 +209,10 @@ static inline boolean_t ib_gid_is_notzero(IN const ib_gid_t * p_gid) * * SYNOPSIS */ -void osm_dump_port_info(IN osm_log_t * const p_log, - IN const ib_net64_t node_guid, - IN const ib_net64_t port_guid, - IN const uint8_t port_num, - IN const ib_port_info_t * const p_pi, - IN const osm_log_level_t log_level); +void osm_dump_port_info(IN osm_log_t * p_log, IN ib_net64_t node_guid, + IN ib_net64_t port_guid, IN uint8_t port_num, + IN const ib_port_info_t * p_pi, + IN osm_log_level_t log_level); /* * PARAMETERS * p_log @@ -243,89 +241,66 @@ void osm_dump_port_info(IN osm_log_t * const p_log, * SEE ALSO *********/ -void -osm_dump_path_record(IN osm_log_t * const p_log, - IN const ib_path_rec_t * const p_pr, - IN const osm_log_level_t log_level); - -void -osm_dump_multipath_record(IN osm_log_t * const p_log, - IN const ib_multipath_rec_t * const p_mpr, - IN const osm_log_level_t log_level); - -void -osm_dump_node_record(IN osm_log_t * const p_log, - IN const ib_node_record_t * const p_nr, - IN const osm_log_level_t log_level); - -void -osm_dump_mc_record(IN osm_log_t * const p_log, - IN const ib_member_rec_t * const p_mcmr, - IN const osm_log_level_t log_level); - -void -osm_dump_link_record(IN osm_log_t * const p_log, - IN const ib_link_record_t * const p_lr, - IN const osm_log_level_t log_level); - -void -osm_dump_service_record(IN osm_log_t * const p_log, - IN const ib_service_record_t * const p_sr, - IN const osm_log_level_t log_level); - -void -osm_dump_portinfo_record(IN osm_log_t * const p_log, - IN const ib_portinfo_record_t * const p_pir, - IN const osm_log_level_t log_level); - -void -osm_dump_guidinfo_record(IN osm_log_t * const p_log, - IN const ib_guidinfo_record_t * const p_gir, - IN const osm_log_level_t log_level); - -void -osm_dump_inform_info(IN osm_log_t * const p_log, - IN const ib_inform_info_t * const p_ii, - IN const osm_log_level_t log_level); - -void -osm_dump_inform_info_record(IN osm_log_t * const p_log, - IN const ib_inform_info_record_t * const p_iir, - IN const osm_log_level_t log_level); - -void -osm_dump_switch_info_record(IN osm_log_t * const p_log, - IN const ib_switch_info_record_t * const p_sir, - IN const osm_log_level_t log_level); - -void -osm_dump_sm_info_record(IN osm_log_t * const p_log, - IN const ib_sminfo_record_t * const p_smir, - IN const osm_log_level_t log_level); - -void -osm_dump_pkey_block(IN osm_log_t * const p_log, - IN uint64_t port_guid, - IN uint16_t block_num, - IN uint8_t port_num, - IN const ib_pkey_table_t * const p_pkey_tbl, - IN const osm_log_level_t log_level); - -void -osm_dump_slvl_map_table(IN osm_log_t * const p_log, - IN uint64_t port_guid, - IN uint8_t in_port_num, - IN uint8_t out_port_num, - IN const ib_slvl_table_t * const p_slvl_tbl, - IN const osm_log_level_t log_level); - -void -osm_dump_vl_arb_table(IN osm_log_t * const p_log, - IN uint64_t port_guid, - IN uint8_t block_num, - IN uint8_t port_num, - IN const ib_vl_arb_table_t * const p_vla_tbl, - IN const osm_log_level_t log_level); +void osm_dump_path_record(IN osm_log_t * p_log, IN const ib_path_rec_t * p_pr, + IN osm_log_level_t log_level); + +void osm_dump_multipath_record(IN osm_log_t * p_log, + IN const ib_multipath_rec_t * p_mpr, + IN osm_log_level_t log_level); + +void osm_dump_node_record(IN osm_log_t * p_log, + IN const ib_node_record_t * p_nr, + IN osm_log_level_t log_level); + +void osm_dump_mc_record(IN osm_log_t * p_log, IN const ib_member_rec_t * p_mcmr, + IN osm_log_level_t log_level); + +void osm_dump_link_record(IN osm_log_t * p_log, + IN const ib_link_record_t * p_lr, + IN osm_log_level_t log_level); + +void osm_dump_service_record(IN osm_log_t * p_log, + IN const ib_service_record_t * p_sr, + IN osm_log_level_t log_level); + +void osm_dump_portinfo_record(IN osm_log_t * p_log, + IN const ib_portinfo_record_t * p_pir, + IN osm_log_level_t log_level); + +void osm_dump_guidinfo_record(IN osm_log_t * p_log, + IN const ib_guidinfo_record_t * p_gir, + IN osm_log_level_t log_level); + +void osm_dump_inform_info(IN osm_log_t * p_log, + IN const ib_inform_info_t * p_ii, + IN osm_log_level_t log_level); + +void osm_dump_inform_info_record(IN osm_log_t * p_log, + IN const ib_inform_info_record_t * p_iir, + IN osm_log_level_t log_level); + +void osm_dump_switch_info_record(IN osm_log_t * p_log, + IN const ib_switch_info_record_t * p_sir, + IN osm_log_level_t log_level); + +void osm_dump_sm_info_record(IN osm_log_t * p_log, + IN const ib_sminfo_record_t * p_smir, + IN osm_log_level_t log_level); + +void osm_dump_pkey_block(IN osm_log_t * p_log, IN uint64_t port_guid, + IN uint16_t block_num, IN uint8_t port_num, + IN const ib_pkey_table_t * p_pkey_tbl, + IN osm_log_level_t log_level); + +void osm_dump_slvl_map_table(IN osm_log_t * p_log, IN uint64_t port_guid, + IN uint8_t in_port_num, IN uint8_t out_port_num, + IN const ib_slvl_table_t * p_slvl_tbl, + IN osm_log_level_t log_level); + +void osm_dump_vl_arb_table(IN osm_log_t * p_log, IN uint64_t port_guid, + IN uint8_t block_num, IN uint8_t port_num, + IN const ib_vl_arb_table_t * p_vla_tbl, + IN osm_log_level_t log_level); /****f* OpenSM: Helper/osm_dump_port_info * NAME @@ -336,9 +311,9 @@ osm_dump_vl_arb_table(IN osm_log_t * const p_log, * * SYNOPSIS */ -void osm_dump_node_info(IN osm_log_t * const p_log, - IN const ib_node_info_t * const p_ni, - IN const osm_log_level_t log_level); +void osm_dump_node_info(IN osm_log_t * p_log, + IN const ib_node_info_t * p_ni, + IN osm_log_level_t log_level); /* * PARAMETERS * p_log @@ -367,10 +342,8 @@ void osm_dump_node_info(IN osm_log_t * const p_log, * * SYNOPSIS */ -void -osm_dump_sm_info(IN osm_log_t * const p_log, - IN const ib_sm_info_t * const p_smi, - IN const osm_log_level_t log_level); +void osm_dump_sm_info(IN osm_log_t * p_log, IN const ib_sm_info_t * p_smi, + IN osm_log_level_t log_level); /* * PARAMETERS * p_log @@ -399,10 +372,9 @@ osm_dump_sm_info(IN osm_log_t * const p_log, * * SYNOPSIS */ -void -osm_dump_switch_info(IN osm_log_t * const p_log, - IN const ib_switch_info_t * const p_si, - IN const osm_log_level_t log_level); +void osm_dump_switch_info(IN osm_log_t * p_log, + IN const ib_switch_info_t * p_si, + IN osm_log_level_t log_level); /* * PARAMETERS * p_log @@ -431,10 +403,9 @@ osm_dump_switch_info(IN osm_log_t * const p_log, * * SYNOPSIS */ -void -osm_dump_notice(IN osm_log_t * const p_log, - IN const ib_mad_notice_attr_t * p_ntci, - IN const osm_log_level_t log_level); +void osm_dump_notice(IN osm_log_t * p_log, + IN const ib_mad_notice_attr_t * p_ntci, + IN osm_log_level_t log_level); /* * PARAMETERS * p_log @@ -477,21 +448,17 @@ const char *osm_get_disp_msg_str(IN cl_disp_msgid_t msg); * SEE ALSO *********/ -void osm_dump_dr_path(IN osm_log_t * const p_log, - IN const osm_dr_path_t * const p_path, - IN const osm_log_level_t level); +void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, + IN osm_log_level_t level); -void osm_dump_smp_dr_path(IN osm_log_t * const p_log, - IN const ib_smp_t * const p_smp, - IN const osm_log_level_t level); +void osm_dump_smp_dr_path(IN osm_log_t * p_log, IN const ib_smp_t * p_smp, + IN osm_log_level_t level); -void osm_dump_dr_smp(IN osm_log_t * const p_log, - IN const ib_smp_t * const p_smp, - IN const osm_log_level_t level); +void osm_dump_dr_smp(IN osm_log_t * p_log, IN const ib_smp_t * p_smp, + IN osm_log_level_t level); -void osm_dump_sa_mad(IN osm_log_t * const p_log, - IN const ib_sa_mad_t * const p_smp, - IN const osm_log_level_t level); +void osm_dump_sa_mad(IN osm_log_t * p_log, IN const ib_sa_mad_t * p_smp, + IN osm_log_level_t level); /****f* IBA Base: Types/osm_get_sm_signal_str * NAME @@ -520,17 +487,17 @@ const char *osm_get_port_state_str_fixed_width(IN uint8_t port_state); const char *osm_get_node_type_str_fixed_width(IN uint8_t node_type); -const char *osm_get_manufacturer_str(IN uint64_t const guid_ho); +const char *osm_get_manufacturer_str(IN uint64_t guid_ho); -const char *osm_get_mtu_str(IN uint8_t const mtu); +const char *osm_get_mtu_str(IN uint8_t mtu); -const char *osm_get_lwa_str(IN uint8_t const lwa); +const char *osm_get_lwa_str(IN uint8_t lwa); -const char *osm_get_mtu_str(IN uint8_t const mtu); +const char *osm_get_mtu_str(IN uint8_t mtu); -const char *osm_get_lwa_str(IN uint8_t const lwa); +const char *osm_get_lwa_str(IN uint8_t lwa); -const char *osm_get_lsa_str(IN uint8_t const lsa); +const char *osm_get_lsa_str(IN uint8_t lsa); /****f* IBA Base: Types/osm_get_sm_mgr_signal_str * NAME diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c index ea9e21f..2f45279 100644 --- a/opensm/opensm/osm_helper.c +++ b/opensm/opensm/osm_helper.c @@ -552,8 +552,7 @@ const ib_gid_t ib_zero_gid = { { 0 } }; /********************************************************************** **********************************************************************/ -static ib_api_status_t dbg_do_line(IN char **pp_local, - IN const uint32_t buf_size, +static ib_api_status_t dbg_do_line(IN char **pp_local, IN uint32_t buf_size, IN const char *p_prefix_str, IN const char *p_new_str, IN uint32_t * p_total_len) @@ -574,7 +573,7 @@ static ib_api_status_t dbg_do_line(IN char **pp_local, /********************************************************************** **********************************************************************/ -static void dbg_get_capabilities_str(IN char *p_buf, IN const uint32_t buf_size, +static void dbg_get_capabilities_str(IN char *p_buf, IN uint32_t buf_size, IN const char *p_prefix_str, IN const ib_port_info_t * p_pi) { @@ -780,11 +779,10 @@ static void dbg_get_capabilities_str(IN char *p_buf, IN const uint32_t buf_size, /********************************************************************** **********************************************************************/ -void osm_dump_port_info(IN osm_log_t * p_log, IN const ib_net64_t node_guid, - IN const ib_net64_t port_guid, - IN const uint8_t port_num, +void osm_dump_port_info(IN osm_log_t * p_log, IN ib_net64_t node_guid, + IN ib_net64_t port_guid, IN uint8_t port_num, IN const ib_port_info_t * p_pi, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf[BUF_SIZE]; @@ -872,7 +870,7 @@ void osm_dump_port_info(IN osm_log_t * p_log, IN const ib_net64_t node_guid, **********************************************************************/ void osm_dump_portinfo_record(IN osm_log_t * p_log, IN const ib_portinfo_record_t * p_pir, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf[BUF_SIZE]; @@ -958,7 +956,7 @@ void osm_dump_portinfo_record(IN osm_log_t * p_log, **********************************************************************/ void osm_dump_guidinfo_record(IN osm_log_t * p_log, IN const ib_guidinfo_record_t * p_gir, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { const ib_guid_info_t *p_gi = &p_gir->guid_info; @@ -996,7 +994,7 @@ void osm_dump_guidinfo_record(IN osm_log_t * p_log, /********************************************************************** **********************************************************************/ void osm_dump_node_info(IN osm_log_t * p_log, IN const ib_node_info_t * p_ni, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { osm_log(p_log, log_level, @@ -1032,7 +1030,7 @@ void osm_dump_node_info(IN osm_log_t * p_log, IN const ib_node_info_t * p_ni, **********************************************************************/ void osm_dump_node_record(IN osm_log_t * p_log, IN const ib_node_record_t * p_nr, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char desc[sizeof(p_nr->node_desc.description) + 1]; @@ -1081,7 +1079,7 @@ void osm_dump_node_record(IN osm_log_t * p_log, /********************************************************************** **********************************************************************/ void osm_dump_path_record(IN osm_log_t * p_log, IN const ib_path_rec_t * p_pr, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char gid_str[INET6_ADDRSTRLEN]; @@ -1131,7 +1129,7 @@ void osm_dump_path_record(IN osm_log_t * p_log, IN const ib_path_rec_t * p_pr, **********************************************************************/ void osm_dump_multipath_record(IN osm_log_t * p_log, IN const ib_multipath_rec_t * p_mpr, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char gid_str[INET6_ADDRSTRLEN]; @@ -1194,7 +1192,7 @@ void osm_dump_multipath_record(IN osm_log_t * p_log, /********************************************************************** **********************************************************************/ void osm_dump_mc_record(IN osm_log_t * p_log, IN const ib_member_rec_t * p_mcmr, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char gid_str[INET6_ADDRSTRLEN]; @@ -1233,7 +1231,7 @@ void osm_dump_mc_record(IN osm_log_t * p_log, IN const ib_member_rec_t * p_mcmr, **********************************************************************/ void osm_dump_service_record(IN osm_log_t * p_log, IN const ib_service_record_t * p_sr, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char gid_str[INET6_ADDRSTRLEN]; @@ -1334,7 +1332,7 @@ void osm_dump_service_record(IN osm_log_t * p_log, **********************************************************************/ void osm_dump_inform_info(IN osm_log_t * p_log, IN const ib_inform_info_t * p_ii, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { uint32_t qpn; @@ -1395,7 +1393,7 @@ void osm_dump_inform_info(IN osm_log_t * p_log, **********************************************************************/ void osm_dump_inform_info_record(IN osm_log_t * p_log, IN const ib_inform_info_record_t * p_iir, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char gid_str[INET6_ADDRSTRLEN]; @@ -1478,7 +1476,7 @@ void osm_dump_inform_info_record(IN osm_log_t * p_log, **********************************************************************/ void osm_dump_link_record(IN osm_log_t * p_log, IN const ib_link_record_t * p_lr, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { osm_log(p_log, log_level, @@ -1497,7 +1495,7 @@ void osm_dump_link_record(IN osm_log_t * p_log, **********************************************************************/ void osm_dump_switch_info(IN osm_log_t * p_log, IN const ib_switch_info_t * p_si, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { osm_log(p_log, OSM_LOG_VERBOSE, @@ -1532,7 +1530,7 @@ void osm_dump_switch_info(IN osm_log_t * p_log, **********************************************************************/ void osm_dump_switch_info_record(IN osm_log_t * p_log, IN const ib_switch_info_record_t * p_sir, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { osm_log(p_log, log_level, @@ -1571,7 +1569,7 @@ void osm_dump_switch_info_record(IN osm_log_t * p_log, void osm_dump_pkey_block(IN osm_log_t * p_log, IN uint64_t port_guid, IN uint16_t block_num, IN uint8_t port_num, IN const ib_pkey_table_t * p_pkey_tbl, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf_line[1024]; @@ -1595,7 +1593,7 @@ void osm_dump_pkey_block(IN osm_log_t * p_log, IN uint64_t port_guid, void osm_dump_slvl_map_table(IN osm_log_t * p_log, IN uint64_t port_guid, IN uint8_t in_port_num, IN uint8_t out_port_num, IN const ib_slvl_table_t * p_slvl_tbl, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf_line1[1024], buf_line2[1024]; @@ -1622,7 +1620,7 @@ void osm_dump_slvl_map_table(IN osm_log_t * p_log, IN uint64_t port_guid, void osm_dump_vl_arb_table(IN osm_log_t * p_log, IN uint64_t port_guid, IN uint8_t block_num, IN uint8_t port_num, IN const ib_vl_arb_table_t * p_vla_tbl, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf_line1[1024], buf_line2[1024]; @@ -1646,7 +1644,7 @@ void osm_dump_vl_arb_table(IN osm_log_t * p_log, IN uint64_t port_guid, /********************************************************************** **********************************************************************/ void osm_dump_sm_info(IN osm_log_t * p_log, IN const ib_sm_info_t * p_smi, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { osm_log(p_log, OSM_LOG_DEBUG, @@ -1668,7 +1666,7 @@ void osm_dump_sm_info(IN osm_log_t * p_log, IN const ib_sm_info_t * p_smi, **********************************************************************/ void osm_dump_sm_info_record(IN osm_log_t * p_log, IN const ib_sminfo_record_t * p_smir, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { osm_log(p_log, OSM_LOG_DEBUG, @@ -1696,7 +1694,7 @@ void osm_dump_sm_info_record(IN osm_log_t * p_log, **********************************************************************/ void osm_dump_notice(IN osm_log_t * p_log, IN const ib_mad_notice_attr_t * p_ntci, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (!osm_log_is_active(p_log, log_level)) return; @@ -1890,7 +1888,7 @@ void osm_dump_notice(IN osm_log_t * p_log, /********************************************************************** **********************************************************************/ void osm_dump_dr_smp(IN osm_log_t * p_log, IN const ib_smp_t * p_smp, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf[BUF_SIZE]; @@ -1997,7 +1995,7 @@ void osm_dump_dr_smp(IN osm_log_t * p_log, IN const ib_smp_t * p_smp, /********************************************************************** **********************************************************************/ void osm_dump_sa_mad(IN osm_log_t * p_log, IN const ib_sa_mad_t * p_mad, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf[BUF_SIZE]; @@ -2060,7 +2058,7 @@ void osm_dump_sa_mad(IN osm_log_t * p_log, IN const ib_sa_mad_t * p_mad, /********************************************************************** **********************************************************************/ void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf[BUF_SIZE]; @@ -2078,7 +2076,7 @@ void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, /********************************************************************** **********************************************************************/ void osm_dump_smp_dr_path(IN osm_log_t * p_log, IN const ib_smp_t * p_smp, - IN const osm_log_level_t log_level) + IN osm_log_level_t log_level) { if (osm_log_is_active(p_log, log_level)) { char buf[BUF_SIZE]; @@ -2200,7 +2198,7 @@ const char *osm_get_node_type_str_fixed_width(IN uint8_t node_type) /********************************************************************** **********************************************************************/ -const char *osm_get_manufacturer_str(IN uint64_t const guid_ho) +const char *osm_get_manufacturer_str(IN uint64_t guid_ho) { /* note that the max vendor string length is 11 */ static const char *intel_str = "Intel"; @@ -2300,7 +2298,7 @@ static const char *mtu_str_fixed_width[] = { /********************************************************************** **********************************************************************/ -const char *osm_get_mtu_str(IN uint8_t const mtu) +const char *osm_get_mtu_str(IN uint8_t mtu) { if (mtu > IB_MTU_LEN_4096) return (mtu_str_fixed_width[0]); @@ -2322,7 +2320,7 @@ static const char *lwa_str_fixed_width[] = { /********************************************************************** **********************************************************************/ -const char *osm_get_lwa_str(IN uint8_t const lwa) +const char *osm_get_lwa_str(IN uint8_t lwa) { if (lwa > 8) return (lwa_str_fixed_width[0]); @@ -2340,7 +2338,7 @@ static const char *lsa_str_fixed_width[] = { "10 " }; -const char *osm_get_lsa_str(IN uint8_t const lsa) +const char *osm_get_lsa_str(IN uint8_t lsa) { if (lsa > 4) return (lsa_str_fixed_width[0]);