[Sony Xperia P, U, Sola, Go] cesanaboia:
[MENTION=4318865]DevSwift1[/MENTION] [MENTION=5338729]Gava97[/MENTION]

I tryed to hack db8500-prcmu.c line cocafe but compiling kernel I have these errors:

riccardo@riccardo-H55M-USB3:~/Scrivania/kernel$ make -j 1 (to view better errors)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/linux/mali_osk_mali.o
LD drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/mali.o
LD drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/built-in.o
LD drivers/gpu/mali/built-in.o
LD drivers/gpu/built-in.o
CC drivers/mfd/db8500-prcmu.o
drivers/mfd/db8500-prcmu.c:701:1: warning: "/*" within comment [-Wcomment]
/*
^
drivers/mfd/db8500-prcmu.c:708:2: warning: "/*" within comment [-Wcomment]
/* Dump AB8500 registers */
^
drivers/mfd/db8500-prcmu.c:709:1: error: expected identifier or ‘(’ before ‘{’ token
{
^
drivers/mfd/db8500-prcmu.c: In function ‘db8500_prcmu_set_arm_lopp’:
drivers/mfd/db8500-prcmu.c:1281:3: error: implicit declaration of function ‘log_this’ [-Werror=implicit-function-declaration]
log_this(120, "OPP", opp, NULL, 0);
^
drivers/mfd/db8500-prcmu.c:1291:3: error: implicit declaration of function ‘liveopp_update_arm’ [-Werror=implicit-function-declaration]
liveopp_update_arm(liveopp_arm[idx]);
^
drivers/mfd/db8500-prcmu.c:1291:22: error: ‘liveopp_arm’ undeclared (first use in this function)
liveopp_update_arm(liveopp_arm[idx]);
^
drivers/mfd/db8500-prcmu.c:1291:22: note: each undeclared identifier is reported only once for each function it appears in
drivers/mfd/db8500-prcmu.c:1292:3: error: implicit declaration of function ‘compute_armss_rate’ [-Werror=implicit-function-declaration]
compute_armss_rate();
^
In file included from include/linux/stddef.h:4:0,
from include/linux/posix_types.h:4,
from include/linux/types.h:17,
from include/linux/list.h:4,
from include/linux/module.h:9,
from drivers/mfd/db8500-prcmu.c:14:
drivers/mfd/db8500-prcmu.c: In function ‘arm_get_rate’:
drivers/mfd/db8500-prcmu.c:1345:12: error: ‘freq_table’ undeclared (first use in this function)
BUG_ON(!freq_table);
^
include/linux/compiler.h:147:42: note: in definition of macro ‘unlikely’
# define unlikely(x) __builtin_expect(!!(x), 0)
^
drivers/mfd/db8500-prcmu.c:1345:4: note: in expansion of macro ‘BUG_ON’
BUG_ON(!freq_table);
^
drivers/mfd/db8500-prcmu.c: In function ‘set_epod’:
drivers/mfd/db8500-prcmu.c:1697:3: error: implicit declaration of function ‘db8500_prcmu_debug_dump’ [-Werror=implicit-function-declaration]
db8500_prcmu_debug_dump(__func__, true, true);
^
drivers/mfd/db8500-prcmu.c: At top level:
drivers/mfd/db8500-prcmu.c:1262:12: warning: ‘db8500_prcmu_set_arm_lopp’ defined but not used [-Wunused-function]
static int db8500_prcmu_set_arm_lopp(u8 opp, int idx)
^
drivers/mfd/db8500-prcmu.c:1329:22: warning: ‘arm_get_rate’ defined but not used [-Wunused-function]
static unsigned long arm_get_rate(void)
^
cc1: some warnings being treated as errors
make[2]: *** [drivers/mfd/db8500-prcmu.o] Errore 1
make[1]: *** [drivers/mfd] Errore 2
make: *** [drivers] Errore 2

Can anyone help me?