mt7621 编译报错:expected 'struct sockaddr *' but argument is of type 'struct sockaddr_unsized *'
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- c
- Domain
- networking
Research direction
The build error points to drivers/net/ethernet/mt7621-vendor/mtk_hnat/hnat_mcast.c:244, in hnat_mcast_netlink_open, after commit 3e55a98. Read that call and the bind function's expected argument type, then compare the relevant socket address declarations. Done when the Xiaomi AC2100 MT7621 build passes this compilation step without the incompatible pointer type error.
Written by the indexing model from the issue text.
Description
详细叙述
在 3e55a98 后出现该错误
重复 issue
- 没有类似的 issue
具体型号
小米AC2100
详细日志
drivers/net/ethernet/mt7621-vendor/mtk_hnat/hnat_mcast.c: In function 'hnat_mcast_netlink_open':
drivers/net/ethernet/mt7621-vendor/mtk_hnat/hnat_mcast.c:244:37: error: passing argument 2 of 'sock->ops->bind' from incompatible pointer type [-Werror=incompatible-pointer-types]
244 | ret = sock->ops->bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct sockaddr_unsized *
drivers/net/ethernet/mt7621-vendor/mtk_hnat/hnat_mcast.c:244:37: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr_unsized *'
cc1: all warnings being treated as errors
make[12]: *** [scripts/Makefile.build:287: drivers/net/ethernet/mt7621-vendor/mtk_hnat/hnat_mcast.o] Error 1
make[11]: *** [scripts/Makefile.build:544: drivers/net/ethernet/mt7621-vendor/mtk_hnat] Error 2
make[10]: *** [scripts/Makefile.build:544: drivers/net/ethernet/mt7621-vendor] Error 2
make[9]: *** [scripts/Makefile.build:544: drivers/net/ethernet] Error 2
make[8]: *** [scripts/Makefile.build:544: drivers/net] Error 2
make[7]: *** [scripts/Makefile.build:544: drivers] Error 2
- Dominant language
- C
- Stars
- 31.6k
- Forks
- 19k
- Avg merge
- 1d 16m
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coolsnowwolf/lede
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
coolsnowwolf/lede#14282 · 2 comments ·
Maintainers usually reply within 1 day
All issues in coolsnowwolf/lede
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
ChupathingyCE/chupathingyce#1020 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
enhancement good first issue
Difficulty 1/5 Under an hour Newbie friendliness 91/100
-
C:dataplane
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
yanet-platform/yanet2#3395 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
openvehicles/Open-Vehicle-Monitoring-System-3#1575 ·
Maintainers usually reply within 4 days