-
Notifications
You must be signed in to change notification settings - Fork 183
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
make error #190
Comments
Is it still broken? |
I did a compile test and no error/warning appears. OS: Debian 11.10 build log (5.4.0-192-generic)
build log (5.4.281 downloaded from kernel.org)
|
make -C /lib/modules/5.4.0-150-generic/build M=/opt/rtw88 modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-150-generic'
CC [M] /opt/rtw88/rtw8703b.o
In file included from /opt/rtw88/rtw8703b.c:4:0:
./include/linux/of_net.h:17:42: warning: ‘struct device_node’ declared inside parameter list will not be visible outside of this definition or declaration
static inline int of_get_phy_mode(struct device_node *np)
^~~~~~~~~~~
./include/linux/of_net.h: In function ‘of_get_phy_mode’:
./include/linux/of_net.h:19:10: error: ‘ENODEV’ undeclared (first use in this function)
return -ENODEV;
^~~~~~
./include/linux/of_net.h:19:10: note: each undeclared identifier is reported only once for each function it appears in
./include/linux/of_net.h: At top level:
./include/linux/of_net.h:22:53: warning: ‘struct device_node’ declared inside parameter list will not be visible outside of this definition or declaration
static inline const void *of_get_mac_address(struct device_node *np)
^~~~~~~~~~~
./include/linux/of_net.h: In function ‘of_get_mac_address’:
./include/linux/of_net.h:24:9: error: implicit declaration of function ‘ERR_PTR’ [-Werror=implicit-function-declaration]
return ERR_PTR(-ENODEV);
^~~~~~~
./include/linux/of_net.h:24:18: error: ‘ENODEV’ undeclared (first use in this function)
return ERR_PTR(-ENODEV);
^~~~~~
./include/linux/of_net.h: At top level:
./include/linux/of_net.h:27:68: warning: ‘struct device_node’ declared inside parameter list will not be visible outside of this definition or declaration
static inline struct net_device *of_find_net_device_by_node(struct device_node *np)
^~~~~~~~~~~
./include/linux/of_net.h: In function ‘of_find_net_device_by_node’:
./include/linux/of_net.h:29:9: error: ‘NULL’ undeclared (first use in this function)
return NULL;
^~~~
In file included from ./arch/x86/include/asm/processor.h:32:0,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:39,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from ./include/linux/skbuff.h:15,
from ./include/linux/if_ether.h:19,
from ./include/net/mac80211.h:18,
from /opt/rtw88/main.h:12,
from /opt/rtw88/rtw8703b.c:5:
./include/linux/err.h: At top level:
./include/linux/err.h:24:35: error: conflicting types for ‘ERR_PTR’
static inline void * __must_check ERR_PTR(long error)
^~~~~~~
In file included from /opt/rtw88/rtw8703b.c:4:0:
./include/linux/of_net.h:24:9: note: previous implicit declaration of ‘ERR_PTR’ was here
return ERR_PTR(-ENODEV);
^~~~~~~
/opt/rtw88/rtw8703b.c: In function ‘try_mac_from_devicetree’:
/opt/rtw88/rtw8703b.c:554:28: error: passing argument 1 of ‘of_get_mac_address’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ret = of_get_mac_address(node);
^~~~
In file included from /opt/rtw88/rtw8703b.c:4:0:
./include/linux/of_net.h:22:27: note: expected ‘struct device_node *’ but argument is of type ‘struct device_node *’
static inline const void *of_get_mac_address(struct device_node *np)
^~~~~~~~~~~~~~~~~~
./include/linux/of_net.h: In function ‘of_get_mac_address’:
./include/linux/of_net.h:25:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:270: recipe for target '/opt/rtw88/rtw8703b.o' failed
make[2]: *** [/opt/rtw88/rtw8703b.o] Error 1
Makefile:1767: recipe for target '/opt/rtw88' failed
make[1]: *** [/opt/rtw88] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-150-generic'
Makefile:154: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: