drivers/modem sim7080 & ublox-sara: Fix link error
Fix link error when both modems' drivers are enabled as they both define the same structure but did not make it static. This fixes the CI build failure of tests/drivers/build_all/modem/drivers.modem.simcom_sim7080.build on particle_boron Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
fba4370a47
commit
0cd7fa31d3
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ NET_BUF_POOL_DEFINE(mdm_recv_pool, MDM_RECV_MAX_BUF, MDM_RECV_BUF_SIZE, 0, NULL)
|
|||
static const struct gpio_dt_spec power_gpio = GPIO_DT_SPEC_INST_GET(0, mdm_power_gpios);
|
||||
|
||||
static void socket_close(struct modem_socket *sock);
|
||||
const struct socket_dns_offload offload_dns_ops;
|
||||
static const struct socket_dns_offload offload_dns_ops;
|
||||
|
||||
static inline uint32_t hash32(char *str, int len)
|
||||
{
|
||||
|
@ -756,7 +756,7 @@ static void offload_freeaddrinfo(struct zsock_addrinfo *res)
|
|||
/*
|
||||
* DNS vtable.
|
||||
*/
|
||||
const struct socket_dns_offload offload_dns_ops = {
|
||||
static const struct socket_dns_offload offload_dns_ops = {
|
||||
.getaddrinfo = offload_getaddrinfo,
|
||||
.freeaddrinfo = offload_freeaddrinfo,
|
||||
};
|
||||
|
|
|
@ -2034,7 +2034,7 @@ static void offload_freeaddrinfo(struct zsock_addrinfo *res)
|
|||
res = NULL;
|
||||
}
|
||||
|
||||
const struct socket_dns_offload offload_dns_ops = {
|
||||
static const struct socket_dns_offload offload_dns_ops = {
|
||||
.getaddrinfo = offload_getaddrinfo,
|
||||
.freeaddrinfo = offload_freeaddrinfo,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue