Post Reply

First time compiling kernel with a governor and I got errors.

OP diskie

2nd May 2014, 11:23 AM   |  #1  
OP Junior Member
Thanks Meter: 1
 
26 posts
Join Date:Joined: Sep 2012
I am trying to compile a kernel for my device(kyleprods or GT-S7582 or Galaxy S duos 2) because I havent found any custom kernel out here. Im compiling from source. I tried compiling WITHOUT any tweaks or such, just plain compile after downloading the source, and it compiled successfully. I tried adding smartassv2 but I got these errors after running "make -j1" twice. Can anybody help/guide me? It is really my first time doing these things, because I'm very interested.


CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
Creating rdb link for Hawaii
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/cpufreq/cpufreq_smartass2.o
drivers/cpufreq/cpufreq_smartass2.c:175:10: error: ‘THIS_MODULE’ undeclared here (not in a function)
.owner = THIS_MODULE,
^
drivers/cpufreq/cpufreq_smartass2.c: In function ‘cpufreq_smartass_timer’:
drivers/cpufreq/cpufreq_smartass2.c:295:1: error: implicit declaration of function ‘cputime64_sub’ [-Werror=implicit-function-declaration]
delta_idle = cputime64_sub(now_idle, this_smartass->time_in_idle);
^
drivers/cpufreq/cpufreq_smartass2.c: At top level:
drivers/cpufreq/cpufreq_smartass2.c:869:16: error: expected declaration specifiers or ‘...’ before string constant
MODULE_AUTHOR ("Erasmux");
^
drivers/cpufreq/cpufreq_smartass2.c:870:21: error: expected declaration specifiers or ‘...’ before string constant
MODULE_DESCRIPTION ("'cpufreq_smartass2' - A smart cpufreq governor");
^
drivers/cpufreq/cpufreq_smartass2.c:871:17: error: expected declaration specifiers or ‘...’ before string constant
MODULE_LICENSE ("GPL");
^
cc1: some warnings being treated as errors
make[2]: *** [drivers/cpufreq/cpufreq_smartass2.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2

SORRY I DONT KNOW WHERE TO POST.
Last edited by diskie; 2nd May 2014 at 11:27 AM.
15th May 2014, 03:16 PM   |  #2  
Senior Member
Thanks Meter: 320
 
613 posts
Join Date:Joined: Mar 2014
More
Quote:
Originally Posted by diskie

I am trying to compile a kernel for my device(kyleprods or GT-S7582 or Galaxy S duos 2) because I havent found any custom kernel out here. Im compiling from source. I tried compiling WITHOUT any tweaks or such, just plain compile after downloading the source, and it compiled successfully. I tried adding smartassv2 but I got these errors after running "make -j1" twice. Can anybody help/guide me? It is really my first time doing these things, because I'm very interested.
-snip-

Part of the errors can be fixed by adding:
#include <linux/module.h>
at the top. I don't know about the rest, but @xpirt or @InfinityShooter once fixed this problem for the desire x, perhaps he can help? I want to know it myself as well
15th May 2014, 03:24 PM   |  #3  
Recognized Contributor
Thanks Meter: 2,630
 
2,521 posts
Join Date:Joined: Feb 2013
Donate to Me
More
@diskie

https://github.com/ProtoU/neXusKERNE...a5ded40007876a

Look in drivers/cpufreq/cpufreq_ondemand.c and include/linux/cpufreq.h for fix

xpirt
The Following 2 Users Say Thank You to xpirt For This Useful Post: [ View ]
15th May 2014, 04:27 PM   |  #4  
Senior Member
Thanks Meter: 320
 
613 posts
Join Date:Joined: Mar 2014
More
Quote:
Originally Posted by xpirt

@diskie

https://github.com/ProtoU/neXusKERNE...a5ded40007876a

Look in drivers/cpufreq/cpufreq_ondemand.c and include/linux/cpufreq.h for fix

xpirt

Thanks a lot
Post Reply Subscribe to Thread

Tags
compile, kernel, problem, s7582
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank