Unbable to add GOVERNOR. topic

SOCIALIZE IT ⇨


Today i tried to add ONDEMANDX GOVERNOR TO MY KERNEL I got this error.



Code:


vinay@vinay-Aspire-E1-531:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
  CHK    include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
  CHK    include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK    include/generated/compile.h
  CHK    kernel/config_data.h
  CC      arch/arm/mach-msm/acpuclock-cortex.o
  CC      arch/arm/mach-msm/msm_rq_stats.o
  CC      arch/arm/mach-msm/cpufreq.o
  CC      drivers/cpufreq/cpufreq.o
  CC      arch/arm/mach-msm/devfreq_cpubw.o
  LD      arch/arm/mach-msm/built-in.o
  CC      drivers/cpufreq/cpu-boost.o
  CC      drivers/cpufreq/cpufreq_stats.o
  CC      drivers/devfreq/devfreq.o
  CC      drivers/cpufreq/cpufreq_performance.o
  CC      drivers/cpufreq/cpufreq_powersave.o
  CC      drivers/cpufreq/cpufreq_userspace.o
  CC      drivers/cpufreq/cpufreq_ondemand.o
  CC      drivers/cpufreq/cpufreq_ondemandx.o
  CC      drivers/devfreq/governor_simpleondemand.o
drivers/cpufreq/cpufreq_ondemandx.c:132:9: error: unknown field ‘suspend’ specified in initializer
        .suspend = ondemandx_early_suspend,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:133:9: error: unknown field ‘resume’ specified in initializer
        .resume = ondemandx_late_resume,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘level’ specified in initializer
        .level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
        ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:166:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c:167:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    kstat_cpu(cpu).cpustat.system);
                  ^
drivers/cpufreq/cpufreq_ondemandx.c:169:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:170:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:382:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:498:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
                                        ^
drivers/cpufreq/cpufreq_ondemandx.c:507:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                            ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:689:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
      kstat_cpu(j).cpustat.nice;
                  ^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC      drivers/devfreq/governor_performance.o
  CC      drivers/devfreq/governor_powersave.o
make[1]: *** [drivers/cpufreq] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      drivers/devfreq/governor_userspace.o
  CC      drivers/devfreq/governor_msm_adreno_tz.o
  CC      drivers/devfreq/governor_msm_cpufreq.o
  LD      drivers/devfreq/built-in.o
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
vinay@vinay-Aspire-E1-531:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
  CHK    include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
  CHK    include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK    include/generated/compile.h
  CHK    kernel/config_data.h
  CC      drivers/cpufreq/cpufreq_ondemand.o
In file included from include/asm-generic/percpu.h:6:0,
                from arch/arm/include/generated/asm/percpu.h:1,
                from include/linux/percpu.h:10,
                from include/linux/topology.h:34,
                from include/linux/gfp.h:7,
                from include/linux/kmod.h:22,
                from include/linux/module.h:13,
                from drivers/cpufreq/cpufreq_ondemand.c:15:
include/linux/percpu-defs.h:80:2: error: expected ‘,’ or ‘;’ before ‘__typeof__’
  __typeof__(type) name
  ^
include/linux/percpu-defs.h:91:2: note: in expansion of macro ‘DEFINE_PER_CPU_SECTION’
  DEFINE_PER_CPU_SECTION(type, name, "")
  ^
drivers/cpufreq/cpufreq_ondemand.c:114:7: note: in expansion of macro ‘DEFINE_PER_CPU’
 tatic DEFINE_PER_CPU(unsigned int, cpu_load);
      ^
make[2]: *** [drivers/cpufreq/cpufreq_ondemand.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
vinay@vinay-Aspire-E1-531:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
  CHK    include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
  CHK    include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK    include/generated/compile.h
  CHK    kernel/config_data.h
  CC      drivers/cpufreq/cpufreq_ondemand.o
  CC      drivers/cpufreq/cpufreq_ondemandx.o
drivers/cpufreq/cpufreq_ondemandx.c:132:9: error: unknown field ‘suspend’ specified in initializer
        .suspend = ondemandx_early_suspend,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:133:9: error: unknown field ‘resume’ specified in initializer
        .resume = ondemandx_late_resume,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘level’ specified in initializer
        .level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
        ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:166:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c:167:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    kstat_cpu(cpu).cpustat.system);
                  ^
drivers/cpufreq/cpufreq_ondemandx.c:169:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:170:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:382:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:498:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
                                        ^
drivers/cpufreq/cpufreq_ondemandx.c:507:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                            ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:689:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
      kstat_cpu(j).cpustat.nice;
                  ^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
vinay@vinay-Aspire-E1-531:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
  CHK    include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
  CHK    include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK    include/generated/compile.h
  CHK    kernel/config_data.h
  CC      drivers/cpufreq/cpufreq_ondemand.o
  CC      drivers/cpufreq/cpufreq_ondemandx.o
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘suspend’ specified in initializer
        .suspend = ondemandx_early_suspend,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:135:9: error: unknown field ‘resume’ specified in initializer
        .resume = ondemandx_late_resume,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:136:9: error: unknown field ‘level’ specified in initializer
        .level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
        ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:168:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c:169:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    kstat_cpu(cpu).cpustat.system);
                  ^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:173:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:174:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:384:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:500:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
                                        ^
drivers/cpufreq/cpufreq_ondemandx.c:509:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                            ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:691:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
      kstat_cpu(j).cpustat.nice;
                  ^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
vinay@vinay-Aspire-E1-531:~/android/xperia/D2212-02/kernel$ clean
No command 'clean' found, did you mean:
 Command 'clear' from package 'ncurses-bin' (main)
 Command 'pclean' from package 'pbuilder-scripts' (universe)
 Command 'uclean' from package 'svn-buildpackage' (universe)
clean: command not found
vinay@vinay-Aspire-E1-531:~/android/xperia/D2212-02/kernel$ clear

vinay@vinay-Aspire-E1-531:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
  CHK    include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
  CHK    include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK    include/generated/compile.h
  CHK    kernel/config_data.h
  CC      drivers/cpufreq/cpufreq_ondemand.o
  CC      drivers/cpufreq/cpufreq_ondemandx.o
drivers/cpufreq/cpufreq_ondemandx.c:132:9: error: unknown field ‘suspend’ specified in initializer
        .suspend = ondemandx_early_suspend,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:133:9: error: unknown field ‘resume’ specified in initializer
        .resume = ondemandx_late_resume,
        ^
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘level’ specified in initializer
        .level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
        ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:166:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c:167:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    kstat_cpu(cpu).cpustat.system);
                  ^
drivers/cpufreq/cpufreq_ondemandx.c:169:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:170:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
  busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
                                                    ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:382:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                          ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:498:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
                                        ^
drivers/cpufreq/cpufreq_ondemandx.c:507:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
    j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
                                            ^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:689:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
      kstat_cpu(j).cpustat.nice;
                  ^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....



I am sure i have done everything correctly.

you can check my source code here => https://github.com/vinay94185vinay/Flamingo-kernel




xda-developers


  1. [Q] No IMEI and baseband anymore. So back to stock rom for repair! topic
  2. [Q] New to phone - on 24A rooted - where to go from here? topic
  3. Htc desire 816 official lollipop update video review topic
  4. [Q] Galaxy S6 Edge T-Mobile Unlock by SIM code topic
  5. How to roll back to KK topic
  6. What is this in Greenify settings topic
  7. [Q] How to update? topic
  8. Unbable to add GOVERNOR. topic
  9. Is root required to roll back to KitKat? topic
  10. [REQ] Multi DPI Stock Camera topic
  11. May be this is it for Xperia J topic

0 commentaires:

Enregistrer un commentaire