From: Sven Eckelmann Date: Sun, 23 Nov 2025 16:03:03 +0000 (+0100) Subject: realtek: Use short name for "unsigned long int" X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=6eb46033eb21cfda4c13a02d7de5ab3d38f759f1;p=openwrt%2Fstaging%2Fstintel.git 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 Link: https://github.com/openwrt/openwrt/pull/20906 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h index 52d66fcdda..035272317d 100644 --- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h +++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h @@ -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]; diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c index 1e331cb874..4b4896b50d 100644 --- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c +++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c @@ -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 */