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

Unused function error compiling, with fix #1186

Open
jephthai opened this issue Aug 28, 2024 · 0 comments
Open

Unused function error compiling, with fix #1186

jephthai opened this issue Aug 28, 2024 · 0 comments

Comments

@jephthai
Copy link

I was compiling the driver on an ODroid M1S, and encountered a DKMS build error. The log file indicated an error compiling rtw_ap.c, complaining about an unused function (specifically, issue_aka_chk_frame). I guess this is because the call to it on line 690 is blocked because of the configuration of CONFIG_ACTIVE_KEEP_ALIVE_CHECK?

Anyway, I uncommented line 7 in the Makefile, as shown below, and was able to compile the module just fine:

diff --git a/Makefile b/Makefile
index 6f95ff1..e1d50e8 100755
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ EXTRA_CFLAGS += -Wno-unused-variable
 EXTRA_CFLAGS += -Wno-unused-value
 EXTRA_CFLAGS += -Wno-unused-label
 EXTRA_CFLAGS += -Wno-unused-parameter
-#EXTRA_CFLAGS += -Wno-unused-function
+EXTRA_CFLAGS += -Wno-unused-function
 #EXTRA_CFLAGS += -Wno-implicit-fallthrough
 EXTRA_CFLAGS += -Wno-cast-function-type
 EXTRA_CFLAGS += -Wno-missing-declarations
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

1 participant