Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatible pointer type 'struct sockaddr_storage *' #9148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Blarse
Copy link

@Blarse Blarse commented Dec 5, 2024

With GCC 14 series the following error exists:

drivers/common/inet_drv.c: In function 'sctp_parse_async_event': drivers/common/inet_drv.c:3498:54: error: passing argument 4 of 'load_inet_get_address' from incompatible pointer type [-Wincompatible-pointer-types]
3498 | i = load_inet_get_address(spec, i, desc, &sptr->spc_aaddr);
| ^~~~~~~~~~~~~~~~
| |
| struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage '
1941 | struct sockaddr_storage
addr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/common/inet_drv.c: In function 'load_paddrinfo':
drivers/common/inet_drv.c:9546:46: error: passing argument 4 of
'load_inet_get_address' from incompatible pointer type
[-Wincompatible-pointer-types]
9546 | i = load_inet_get_address(spec, i, desc, &pai->spinfo_address);
| ^~~~~~~~~~~~~~~~~~~~
| |
| struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage '
1941 | struct sockaddr_storage
addr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/common/inet_drv.c: In function 'sctp_fill_opts':
drivers/common/inet_drv.c:10162:54: error: passing argument 4 of
'load_inet_get_address' from incompatible pointer type
[-Wincompatible-pointer-types]
10162 | i = load_inet_get_address(spec, i, desc, &sp.sspp_addr);
| ^~~~~~~~~~~~~
| |
| struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage '
1941 | struct sockaddr_storage
addr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/common/inet_drv.c:10224:54: error: passing argument 4 of
'load_inet_get_address' from incompatible pointer type
[-Wincompatible-pointer-types]
10224 | i = load_inet_get_address(spec, i, desc, &ap.spp_address);
| ^~~~~~~~~~~~~~~
| |
| struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage '
1941 | struct sockaddr_storage
addr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

With GCC 14 series the following error exists:

drivers/common/inet_drv.c: In function 'sctp_parse_async_event':
drivers/common/inet_drv.c:3498:54: error: passing argument 4 of
'load_inet_get_address' from incompatible pointer type
[-Wincompatible-pointer-types]
 3498 |             i = load_inet_get_address(spec, i, desc, &sptr->spc_aaddr);
      |                                                      ^~~~~~~~~~~~~~~~
      |                                                      |
      |                                                      struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage *'
 1941 |             struct sockaddr_storage* addr)
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/common/inet_drv.c: In function 'load_paddrinfo':
drivers/common/inet_drv.c:9546:46: error: passing argument 4 of
'load_inet_get_address' from incompatible pointer type
[-Wincompatible-pointer-types]
 9546 |     i = load_inet_get_address(spec, i, desc, &pai->spinfo_address);
      |                                              ^~~~~~~~~~~~~~~~~~~~
      |                                              |
      |                                              struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage *'
 1941 |             struct sockaddr_storage* addr)
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/common/inet_drv.c: In function 'sctp_fill_opts':
drivers/common/inet_drv.c:10162:54: error: passing argument 4 of
'load_inet_get_address' from incompatible pointer type
[-Wincompatible-pointer-types]
10162 |             i = load_inet_get_address(spec, i, desc, &sp.sspp_addr);
      |                                                      ^~~~~~~~~~~~~
      |                                                      |
      |                                                      struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage *'
 1941 |             struct sockaddr_storage* addr)
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/common/inet_drv.c:10224:54: error: passing argument 4 of
'load_inet_get_address' from incompatible pointer type
[-Wincompatible-pointer-types]
10224 |             i = load_inet_get_address(spec, i, desc, &ap.spp_address);
      |                                                      ^~~~~~~~~~~~~~~
      |                                                      |
      |                                                      struct __kernel_sockaddr_storage *
drivers/common/inet_drv.c:1941:38: note: expected 'struct sockaddr_storage *'
but argument is of type 'struct __kernel_sockaddr_storage *'
 1941 |             struct sockaddr_storage* addr)
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
@CLAassistant
Copy link

CLAassistant commented Dec 5, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

github-actions bot commented Dec 5, 2024

CT Test Results

Tests are running... https://github.com/erlang/otp/actions/runs/12179124654

Results for commit d35cb2b

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

  • No CT logs found
  • No HTML docs found
  • No Windows Installer found

// Erlang/OTP Github Action Bot

@rickard-green rickard-green added the team:PS Assigned to OTP team PS label Dec 9, 2024
@bmk bmk added the testing currently being tested, tag is used by OTP internal CI label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants