Skip to content

Commit f6f3879

Browse files
jerome-pouillerdanieldegrasse
authored andcommitted
drivers: wifi: siwx91x: Fix siwx91x_wifi_socket.h syntax
Functions in siwx91x_wifi_socket.h are not declared static. So it create duplicated symbols if the file is included twice. Signed-off-by: Jérôme Pouiller <[email protected]>
1 parent 2f8a8f7 commit f6f3879

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/wifi/siwx91x/siwx91x_wifi_socket.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ void siwx91x_sock_init(struct net_if *iface);
2121

2222
#else /* CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD */
2323

24-
enum offloaded_net_if_types siwx91x_get_type(void)
24+
static inline enum offloaded_net_if_types siwx91x_get_type(void)
2525
{
2626
assert(0);
2727
}
2828

29-
void siwx91x_on_join_ipv4(struct siwx91x_dev *sidev)
29+
static inline void siwx91x_on_join_ipv4(struct siwx91x_dev *sidev)
3030
{
3131
}
3232

33-
void siwx91x_on_join_ipv6(struct siwx91x_dev *sidev)
33+
static inline void siwx91x_on_join_ipv6(struct siwx91x_dev *sidev)
3434
{
3535
}
3636

37-
void siwx91x_sock_init(struct net_if *iface)
37+
static inline void siwx91x_sock_init(struct net_if *iface)
3838
{
3939
}
4040

0 commit comments

Comments
 (0)