qcacld-3.0: Fix -Wmissing-prototypes in parser_api.c

We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code in parser_api.c that is generating warnings.

To address these warnings:
1) remove unused/obsolete function swap_bit_field32.
2) make all local functions static.

Change-Id: I80fecfdef2465e6006eb00cc77a22fce81398deb
CRs-Fixed: 1095740
This commit is contained in:
Jeff Johnson 2016-11-30 11:08:48 -08:00 • committed by qcabuildsw
commit ec8ebff1bd

View file

@ -91,45 +91,6 @@ void swap_bit_field16(uint16_t in, uint16_t *out)
#endif /* ANI_LITTLE_BIT_ENDIAN */
}
void swap_bit_field32(uint32_t in, uint32_t *out)
{
#ifdef ANI_LITTLE_BIT_ENDIAN
*out = in;
#else /* Big-Endian... */
*out = ((in & 0x80000000) >> 31) |
((in & 0x40000000) >> 29) |
((in & 0x20000000) >> 27) |
((in & 0x10000000) >> 25) |
((in & 0x08000000) >> 23) |
((in & 0x04000000) >> 21) |
((in & 0x02000000) >> 19) |
((in & 0x01000000) >> 17) |
((in & 0x00800000) >> 15) |
((in & 0x00400000) >> 13) |
((in & 0x00200000) >> 11) |
((in & 0x00100000) >> 9) |
((in & 0x00080000) >> 7) |
((in & 0x00040000) >> 5) |
((in & 0x00020000) >> 3) |
((in & 0x00010000) >> 1) |
((in & 0x00008000) << 1) |
((in & 0x00004000) << 3) |
((in & 0x00002000) << 5) |
((in & 0x00001000) << 7) |
((in & 0x00000800) << 9) |
((in & 0x00000400) << 11) |
((in & 0x00000200) << 13) |
((in & 0x00000100) << 15) |
((in & 0x00000080) << 17) |
((in & 0x00000040) << 19) |
((in & 0x00000020) << 21) |
((in & 0x00000010) << 23) |
((in & 0x00000008) << 25) |
((in & 0x00000004) << 27) |
((in & 0x00000002) << 29) | ((in & 0x00000001) << 31);
#endif /* ANI_LITTLE_BIT_ENDIAN */
}
static inline void __print_wmm_params(tpAniSirGlobal pMac,
tDot11fIEWMMParams *pWmm)
{
@ -897,7 +858,8 @@ void lim_log_vht_cap(tpAniSirGlobal pMac, tDot11fIEVHTCaps *pDot11f)
#endif /* DUMP_MGMT_CNTNTS */
}
void lim_log_vht_operation(tpAniSirGlobal pMac, tDot11fIEVHTOperation *pDot11f)
static void lim_log_vht_operation(tpAniSirGlobal pMac,
tDot11fIEVHTOperation *pDot11f)
{
#ifdef DUMP_MGMT_CNTNTS
lim_log(pMac, LOG1, FL("chanWidth : %d"), pDot11f->chanWidth);
@ -909,7 +871,8 @@ void lim_log_vht_operation(tpAniSirGlobal pMac, tDot11fIEVHTOperation *pDot11f)
#endif /* DUMP_MGMT_CNTNTS */
}
void lim_log_vht_ext_bss_load(tpAniSirGlobal pMac, tDot11fIEVHTExtBssLoad *pDot11f)
static void lim_log_vht_ext_bss_load(tpAniSirGlobal pMac,
tDot11fIEVHTExtBssLoad *pDot11f)
{
#ifdef DUMP_MGMT_CNTNTS
lim_log(pMac, LOG1, FL("muMIMOCapStaCount : %d"),
@ -922,7 +885,8 @@ void lim_log_vht_ext_bss_load(tpAniSirGlobal pMac, tDot11fIEVHTExtBssLoad *pDot1
#endif /* DUMP_MGMT_CNTNTS */
}
void lim_log_operating_mode(tpAniSirGlobal pMac, tDot11fIEOperatingMode *pDot11f)
static void lim_log_operating_mode(tpAniSirGlobal pMac,
tDot11fIEOperatingMode *pDot11f)
{
#ifdef DUMP_MGMT_CNTNTS
lim_log(pMac, LOG1, FL("ChanWidth : %d"), pDot11f->chanWidth);
@ -932,7 +896,7 @@ void lim_log_operating_mode(tpAniSirGlobal pMac, tDot11fIEOperatingMode *pDot11f
#endif /* DUMP_MGMT_CNTNTS */
}
void lim_log_qos_map_set(tpAniSirGlobal pMac, tSirQosMapSet *pQosMapSet)
static void lim_log_qos_map_set(tpAniSirGlobal pMac, tSirQosMapSet *pQosMapSet)
{
uint8_t i;
if (pQosMapSet->num_dscp_exceptions > QOS_MAP_MAX_EX)