mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-08 21:52:09 -05:00
realtek: Use short name for "unsigned long int"
It is preferred in the Linux kernel to use the short type name "unsigned long" instead of "unsigned long int". The same is true for short and the signed version of the types. Signed-off-by: Sven Eckelmann <sven@narfation.org> Link: https://github.com/openwrt/openwrt/pull/20906 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
20fd6c9d10
commit
6eb46033eb
@ -1290,16 +1290,16 @@ struct rtl838x_switch_priv {
|
||||
struct notifier_block ne_nb;
|
||||
struct notifier_block fib_nb;
|
||||
bool eee_enabled;
|
||||
unsigned long int mc_group_bm[MAX_MC_GROUPS >> 5];
|
||||
unsigned long mc_group_bm[MAX_MC_GROUPS >> 5];
|
||||
int n_pie_blocks;
|
||||
struct rhashtable tc_ht;
|
||||
unsigned long int pie_use_bm[MAX_PIE_ENTRIES >> 5];
|
||||
unsigned long pie_use_bm[MAX_PIE_ENTRIES >> 5];
|
||||
int n_counters;
|
||||
unsigned long int octet_cntr_use_bm[MAX_COUNTERS >> 5];
|
||||
unsigned long int packet_cntr_use_bm[MAX_COUNTERS >> 4];
|
||||
unsigned long octet_cntr_use_bm[MAX_COUNTERS >> 5];
|
||||
unsigned long packet_cntr_use_bm[MAX_COUNTERS >> 4];
|
||||
struct rhltable routes;
|
||||
unsigned long int route_use_bm[MAX_ROUTES >> 5];
|
||||
unsigned long int host_route_use_bm[MAX_HOST_ROUTES >> 5];
|
||||
unsigned long route_use_bm[MAX_ROUTES >> 5];
|
||||
unsigned long host_route_use_bm[MAX_HOST_ROUTES >> 5];
|
||||
struct rtl838x_l3_intf *interfaces[MAX_INTERFACES];
|
||||
u16 intf_mtus[MAX_INTF_MTUS];
|
||||
int intf_mtu_count[MAX_INTF_MTUS];
|
||||
|
||||
@ -1099,7 +1099,7 @@ static void rtl930x_route_read(int idx, struct rtl83xx_route *rt)
|
||||
rt->prefix_len = host_route ? 128 : 0;
|
||||
rt->prefix_len = (rt->prefix_len < 0 && default_route) ? 0 : -1;
|
||||
if (rt->prefix_len < 0)
|
||||
rt->prefix_len = find_last_bit((unsigned long int *)&ip6_m.s6_addr32,
|
||||
rt->prefix_len = find_last_bit((unsigned long *)&ip6_m.s6_addr32,
|
||||
128);
|
||||
break;
|
||||
case 1: /* IPv4 Multicast route */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user