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

Warnings reported by Sparse #69

Open
jserv opened this issue Jun 3, 2024 · 0 comments
Open

Warnings reported by Sparse #69

jserv opened this issue Jun 3, 2024 · 0 comments
Assignees

Comments

@jserv
Copy link
Contributor

jserv commented Jun 3, 2024

Sparse is a semantic checker for C programs; it can be used to find a number of potential problems with kernel code. While building with make C=1, Kbuild complained:

vwifi.c:1234:42: warning: incorrect type in assignment (different base types)
vwifi.c:1234:42:    expected unsigned short [usertype] beacon_interval
vwifi.c:1234:42:    got restricted __le16 [usertype]
./include/linux/spinlock.h:393:9: warning: context imbalance in 'vwifi_start_ap' - unexpected unlock
vwifi.c:1582:9: warning: context imbalance in 'vwifi_stop_ap' - unexpected unlock

Later, we may consider to introduce the Sparse into CI pipeline as LKMPG does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants