Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: bcm: Remove typedef for _U_MIBS_IP_ADDRESS and call directly.

This patch removes typedef for _U_MIBS_IP_ADDRESS, and
changes the name of the union to bcm_mibs_ip_addr.
In addition, any calls to typedef U_MIBS_IP_ADDRESS are
changed to call the union directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kevin McKinney and committed by
Greg Kroah-Hartman
0aaad65a 86758b75

+4 -4
+4 -4
drivers/staging/bcm/HostMIBSInterface.h
··· 20 20 #define MIBS_MAX_HIST_ENTRIES 12 21 21 #define MIBS_PKTSIZEHIST_RANGE 128 22 22 23 - typedef union _U_MIBS_IP_ADDRESS { 23 + union bcm_mibs_ip_addr { 24 24 struct { 25 25 /* Source Ip Address Range */ 26 26 unsigned long ulIpv4Addr[MIBS_MAX_IP_RANGE_LENGTH]; ··· 41 41 unsigned char ucIpv6Address[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IPV6_ADDRESS_SIZEINBYTES]; 42 42 unsigned char ucIpv6Mask[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IPV6_ADDRESS_SIZEINBYTES]; 43 43 }; 44 - } U_MIBS_IP_ADDRESS; 44 + }; 45 45 46 46 struct bcm_mibs_host_info { 47 47 u64 GoodTransmits; ··· 71 71 bool bUsed; 72 72 unsigned short usVCID_Value; 73 73 u8 u8ClassifierRulePriority; 74 - U_MIBS_IP_ADDRESS stSrcIpAddress; 74 + union bcm_mibs_ip_addr stSrcIpAddress; 75 75 /* IP Source Address Length */ 76 76 unsigned char ucIPSourceAddressLength; 77 - U_MIBS_IP_ADDRESS stDestIpAddress; 77 + union bcm_mibs_ip_addr stDestIpAddress; 78 78 /* IP Destination Address Length */ 79 79 unsigned char ucIPDestinationAddressLength; 80 80 unsigned char ucIPTypeOfServiceLength;