[Nexus 5 Original Android Development] RobbieL811:
[MENTION=3292224]franciscofranco[/MENTION]. I hope this does not bother you. I have posted in another thread and I haven't gotten a reply. I have a question. I am trying to learn a little in building my own kernel and I have selected yours to use as my base b/c it is awesome. I am trying to add a governor to your kernel just for the sake of learning and I am getting an error. I have added the proper lines to "/include/linux/cpufreq.h", "/drivers/cpufreq/Makefile", "/drivers/cpufreq/Kconfig". I also added the gov to franco_defconfig in /arch/arm/configs. Also, have placed the gov.c file in /drivers/cpufreq. When I try to compile it is kicking me back this error.

robbie@RobbieL811:~$ cd ~/kernels/hammerhead
robbie@RobbieL811:~/kernels/hammerhead$ export ARCH=arm
robbie@RobbieL811:~/kernels/hammerhead$ export CROSS_COMPILE=~/kernels/toolchains/linaro-4.9.1/bin/arm-eabi-
robbie@RobbieL811:~/kernels/hammerhead$ make defconfig franco_defconfig
*** Default configuration is based on 'versatile_defconfig'
#
# configuration written to .config
#
#
# configuration written to .config
#
robbie@RobbieL811:~/kernels/hammerhead$ ./build.sh
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/cpufreq/cpufreq_intellidemand.o
CC drivers/crypto/msm/qcedev.o
CC drivers/crypto/msm/qce50.o
CC drivers/cpufreq/freq_table.o
drivers/cpufreq/cpufreq_intellidemand.c:301:27: error: conflicting types for ‘get_cpu_idle_time’
static inline cputime64_t get_cpu_idle_time(unsigned int cpu, cputime64_t *wall)
^
In file included from drivers/cpufreq/cpufreq_intellidemand.c:18:0:
include/linux/cpufreq.h:320:5: note: previous declaration of ‘get_cpu_idle_time’ was here
u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy);
^
CC drivers/crypto/msm/qcrypto.o
make[2]: *** [drivers/cpufreq/cpufreq_intellidemand.o] Error 1
make[2]: *** Waiting for unfinished jobs....
LD drivers/firewire/built-in.o
GZIP kernel/config_data.gz
CHK kernel/config_data.h
LD drivers/firmware/built-in.o
make[1]: *** [drivers/cpufreq] Error 2
make[1]: *** Waiting for unfinished jobs....
CC drivers/gpio/gpiolib.o
CC drivers/gpio/devres.o
CC drivers/gpio/gpio-msm-common.o
CC drivers/gpio/gpio-msm-v3.o
CC drivers/gpio/qpnp-pin.o
LD drivers/gpio/built-in.o
LD drivers/crypto/msm/built-in.o
LD drivers/crypto/built-in.o
make: *** [drivers] Error 2
making ramdisk
making boot image
making zip file
adding: boot.img (deflated 23%)
adding: META-INF/ (stored 0%)
adding: META-INF/CERT.RSA (deflated 33%)
adding: META-INF/com/ (stored 0%)
adding: META-INF/com/google/ (stored 0%)
adding: META-INF/com/google/android/ (stored 0%)
adding: META-INF/com/google/android/update-binary (deflated 34%)
adding: META-INF/com/google/android/updater-script (deflated 36%)
adding: META-INF/CERT.SF (deflated 62%)
adding: META-INF/MANIFEST.MF (deflated 62%)
robbie@RobbieL811:~/kernels/hammerhead$ file:///home/robbie/kernels/hammerhead/boot.img

What am I missing? How do I fix this?