From: Bruno Martins Date: Fri, 20 Oct 2023 22:55:45 +0000 (+0100) Subject: bcmdhd: Add void argument to old-style zero prototype functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95987a5c06d98d2cc729cccc2384609346b4c0a5;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git bcmdhd: Add void argument to old-style zero prototype functions Make clang-17 happy just by adding the `void` argument. Change-Id: I15619a55c479d392adf7da344bb3d09a1db0e8ec --- diff --git a/bcmdhd-usb.1.201.88.27.x/dhd_linux_platdev.c b/bcmdhd-usb.1.201.88.27.x/dhd_linux_platdev.c index 8117cdb..ee97f39 100755 --- a/bcmdhd-usb.1.201.88.27.x/dhd_linux_platdev.c +++ b/bcmdhd-usb.1.201.88.27.x/dhd_linux_platdev.c @@ -737,7 +737,7 @@ static int dhd_wifi_platform_load_usb(void) } #endif /* BCMDBUS */ -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd-usb.1.201.88.27.x/wl_cfg_btcoex.c b/bcmdhd-usb.1.201.88.27.x/wl_cfg_btcoex.c index 63ddc9c..32244fa 100644 --- a/bcmdhd-usb.1.201.88.27.x/wl_cfg_btcoex.c +++ b/bcmdhd-usb.1.201.88.27.x/wl_cfg_btcoex.c @@ -400,7 +400,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return; diff --git a/bcmdhd-usb.1.363.110.17.x/dhd_linux_platdev.c b/bcmdhd-usb.1.363.110.17.x/dhd_linux_platdev.c index 2543825..2c0d3a2 100644 --- a/bcmdhd-usb.1.363.110.17.x/dhd_linux_platdev.c +++ b/bcmdhd-usb.1.363.110.17.x/dhd_linux_platdev.c @@ -748,7 +748,7 @@ static int dhd_wifi_platform_load_usb(void) } #endif /* BCMDBUS */ -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd-usb.1.363.110.17.x/wl_cfg_btcoex.c b/bcmdhd-usb.1.363.110.17.x/wl_cfg_btcoex.c index 38d0ae2..a66b07f 100644 --- a/bcmdhd-usb.1.363.110.17.x/wl_cfg_btcoex.c +++ b/bcmdhd-usb.1.363.110.17.x/wl_cfg_btcoex.c @@ -403,7 +403,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return; diff --git a/bcmdhd.1.363.59.144.x.cn/dhd_linux_platdev.c b/bcmdhd.1.363.59.144.x.cn/dhd_linux_platdev.c index a154cb3..9c33349 100644 --- a/bcmdhd.1.363.59.144.x.cn/dhd_linux_platdev.c +++ b/bcmdhd.1.363.59.144.x.cn/dhd_linux_platdev.c @@ -844,7 +844,7 @@ static int dhd_wifi_platform_load_usb(void) return 0; } -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd.1.363.59.144.x.cn/wl_cfg_btcoex.c b/bcmdhd.1.363.59.144.x.cn/wl_cfg_btcoex.c index 81e42ab..050bb27 100644 --- a/bcmdhd.1.363.59.144.x.cn/wl_cfg_btcoex.c +++ b/bcmdhd.1.363.59.144.x.cn/wl_cfg_btcoex.c @@ -402,7 +402,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return; diff --git a/bcmdhd.1.579.77.41.1.cn/dhd_linux_platdev.c b/bcmdhd.1.579.77.41.1.cn/dhd_linux_platdev.c index 9fd7260..98e48b2 100644 --- a/bcmdhd.1.579.77.41.1.cn/dhd_linux_platdev.c +++ b/bcmdhd.1.579.77.41.1.cn/dhd_linux_platdev.c @@ -976,7 +976,7 @@ static int dhd_wifi_platform_load_usb(void) } #endif /* BCMDBUS */ -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd.1.579.77.41.1.cn/wl_cfg_btcoex.c b/bcmdhd.1.579.77.41.1.cn/wl_cfg_btcoex.c index 6d62b3a..b74c75a 100644 --- a/bcmdhd.1.579.77.41.1.cn/wl_cfg_btcoex.c +++ b/bcmdhd.1.579.77.41.1.cn/wl_cfg_btcoex.c @@ -419,7 +419,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return; diff --git a/bcmdhd.100.10.545.x/dhd_linux.c b/bcmdhd.100.10.545.x/dhd_linux.c index 54fa3ca..8eae191 100644 --- a/bcmdhd.100.10.545.x/dhd_linux.c +++ b/bcmdhd.100.10.545.x/dhd_linux.c @@ -17642,7 +17642,7 @@ dhd_nla_put_sssr_dump_len(void *ndev, uint32 *arr_len) #endif /* DHD_SSSR_DUMP */ uint32 -dhd_get_time_str_len() +dhd_get_time_str_len(void) { char *ts = NULL, time_str[128]; diff --git a/bcmdhd.100.10.545.x/dhd_linux_platdev.c b/bcmdhd.100.10.545.x/dhd_linux_platdev.c index 7ceaa40..0d5b23d 100644 --- a/bcmdhd.100.10.545.x/dhd_linux_platdev.c +++ b/bcmdhd.100.10.545.x/dhd_linux_platdev.c @@ -1012,7 +1012,7 @@ static int dhd_wifi_platform_load_usb(void) } #endif /* BCMDBUS */ -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd.100.10.545.x/wl_cfg_btcoex.c b/bcmdhd.100.10.545.x/wl_cfg_btcoex.c index 735abe0..b1e2c3b 100644 --- a/bcmdhd.100.10.545.x/wl_cfg_btcoex.c +++ b/bcmdhd.100.10.545.x/wl_cfg_btcoex.c @@ -406,7 +406,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return; diff --git a/bcmdhd.101.10.240.x/dhd_linux.c b/bcmdhd.101.10.240.x/dhd_linux.c index 0f0e403..b27c232 100644 --- a/bcmdhd.101.10.240.x/dhd_linux.c +++ b/bcmdhd.101.10.240.x/dhd_linux.c @@ -20058,7 +20058,7 @@ dhd_nla_put_sssr_dump_len(void *ndev, uint32 *arr_len) #endif /* DHD_SSSR_DUMP */ uint32 -dhd_get_time_str_len() +dhd_get_time_str_len(void) { char *ts = NULL, time_str[128]; diff --git a/bcmdhd.101.10.240.x/dhd_linux_platdev.c b/bcmdhd.101.10.240.x/dhd_linux_platdev.c index 18046a4..2b79393 100644 --- a/bcmdhd.101.10.240.x/dhd_linux_platdev.c +++ b/bcmdhd.101.10.240.x/dhd_linux_platdev.c @@ -1019,7 +1019,7 @@ static int dhd_wifi_platform_load_usb(void) } #endif /* BCMDBUS */ -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd.101.10.240.x/wl_cfg_btcoex.c b/bcmdhd.101.10.240.x/wl_cfg_btcoex.c index e5ef7a8..501a9d1 100644 --- a/bcmdhd.101.10.240.x/wl_cfg_btcoex.c +++ b/bcmdhd.101.10.240.x/wl_cfg_btcoex.c @@ -405,7 +405,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return; diff --git a/bcmdhd.101.10.361.x/dhd_linux.c b/bcmdhd.101.10.361.x/dhd_linux.c index f2ab283..a4289c0 100755 --- a/bcmdhd.101.10.361.x/dhd_linux.c +++ b/bcmdhd.101.10.361.x/dhd_linux.c @@ -23383,7 +23383,7 @@ dhd_nla_put_sssr_dump_len(void *ndev, uint32 *arr_len) #endif /* DHD_SSSR_DUMP */ uint32 -dhd_get_time_str_len() +dhd_get_time_str_len(void) { char *ts = NULL, time_str[128]; diff --git a/bcmdhd.101.10.361.x/dhd_linux_platdev.c b/bcmdhd.101.10.361.x/dhd_linux_platdev.c index 8410748..adf6b2d 100755 --- a/bcmdhd.101.10.361.x/dhd_linux_platdev.c +++ b/bcmdhd.101.10.361.x/dhd_linux_platdev.c @@ -1078,7 +1078,7 @@ static int dhd_wifi_platform_load_usb(void) } #endif /* BCMDBUS */ -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd.101.10.361.x/wl_cfg_btcoex.c b/bcmdhd.101.10.361.x/wl_cfg_btcoex.c index 934c20e..3f33474 100755 --- a/bcmdhd.101.10.361.x/wl_cfg_btcoex.c +++ b/bcmdhd.101.10.361.x/wl_cfg_btcoex.c @@ -406,7 +406,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return; diff --git a/bcmdhd_1_201_59_x/dhd_linux_platdev.c b/bcmdhd_1_201_59_x/dhd_linux_platdev.c index 463191c..b4fd33f 100644 --- a/bcmdhd_1_201_59_x/dhd_linux_platdev.c +++ b/bcmdhd_1_201_59_x/dhd_linux_platdev.c @@ -809,7 +809,7 @@ static int dhd_wifi_platform_load_usb(void) return 0; } -static int dhd_wifi_platform_load() +static int dhd_wifi_platform_load(void) { int err = 0; printf("%s: Enter\n", __FUNCTION__); diff --git a/bcmdhd_1_201_59_x/wl_cfg_btcoex.c b/bcmdhd_1_201_59_x/wl_cfg_btcoex.c index c8a16ce..c03f211 100644 --- a/bcmdhd_1_201_59_x/wl_cfg_btcoex.c +++ b/bcmdhd_1_201_59_x/wl_cfg_btcoex.c @@ -381,7 +381,7 @@ void* wl_cfg80211_btcoex_init(struct net_device *ndev) return btco_inf; } -void wl_cfg80211_btcoex_deinit() +void wl_cfg80211_btcoex_deinit(void) { if (!btcoex_info_loc) return;