Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,606 Members 47,823 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
diskie
Old
(Last edited by diskie; 2nd May 2014 at 11:27 AM.)
#1  
Junior Member - OP
Thanks Meter 1
Posts: 26
Join Date: Sep 2012
Default First time compiling kernel with a governor and I got errors.

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.
 
dummie999
Old
#2  
Senior Member
Thanks Meter 246
Posts: 413
Join Date: Mar 2014
Quote:
Originally Posted by diskie View Post
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
HTC Desire 500 One sim
Dropbox: https://db.tt/yxozELzF Signing up will give me some extra space
 
xpirt
Old
#3  
xpirt's Avatar
Recognized Contributor
Thanks Meter 2489
Posts: 2,422
Join Date: Feb 2013
Location: 69 6e 20 6d 79 20 68 6f 75 73 65

 
DONATE TO ME
@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: [ Click to Expand ]
 
dummie999
Old
#4  
Senior Member
Thanks Meter 246
Posts: 413
Join Date: Mar 2014
Quote:
Originally Posted by xpirt View Post
@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
HTC Desire 500 One sim
Dropbox: https://db.tt/yxozELzF Signing up will give me some extra space
Tags
compile, kernel, problem, s7582
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes