[Desire Android Development] croniccorey:
Last kmesg / Current build errors

Currently not compiling:

yaffs2_vfs
pm
memory

Errors compiling memory.c:

CC arch/arm/mach-msm/memory.o
In file included from arch/arm/mach-msm/include/mach/msm_memtypes.h:36:0,
from arch/arm/mach-msm/memory.c:29:
arch/arm/mach-msm/include/mach/memory.h:21:0: warning: "PHYS_OFFSET" redefined [enabled by default]
#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
^
In file included from /home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/page.h:170:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/mm.h:8,
from arch/arm/mach-msm/memory.c:17:
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/memory.h:161:0: note: this is the location of the previous definition
#define PHYS_OFFSET __pv_phys_offset
^
In file included from arch/arm/mach-msm/memory.c:39:0:
arch/arm/include/generated/../../mm/mm.h: In function 'set_top_pte':
arch/arm/include/generated/../../mm/mm.h:23:2: error: implicit declaration of function 'local_flush_tlb_kernel_page' [-Werror=implicit-function-declaration]
local_flush_tlb_kernel_page(va);
^
In file included from include/linux/mm.h:44:0,
from arch/arm/mach-msm/memory.c:17:
arch/arm/include/generated/../../mm/mm.h: In function 'pmd_off_k':
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: error: 'init_mm' undeclared (first use in this function)
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: note: each undeclared identifier is reported only once for each function it appears in
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
arch/arm/mach-msm/memory.c: In function 'arch_io_remap_pfn_range':
arch/arm/mach-msm/memory.c:46:3: error: implicit declaration of function 'pgprot_device' [-Werror=implicit-function-declaration]
prot = pgprot_device(prot);
^
arch/arm/mach-msm/memory.c:47:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'pgprot_t' [-Wformat=]
pr_debug("remapping device %lx\n", prot);
^
arch/arm/mach-msm/memory.c: In function 'calculate_reserve_limits':
arch/arm/mach-msm/memory.c:240:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' [-Wformat=]
pr_warning("unknown memory type for bank at %lx\n",
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/memory.o] Error 1

Errors compiling pm.c:

CC arch/arm/mach-msm/pm.o
arch/arm/mach-msm/pm.c: In function 'msm_sleep':
arch/arm/mach-msm/pm.c:357:2: error: implicit declaration of function 'clk_enter_sleep' [-Werror=implicit-function-declaration]
clk_enter_sleep(from_idle);
^
arch/arm/mach-msm/pm.c:437:7: error: implicit declaration of function 'vfp_flush_context' [-Werror=implicit-function-declaration]
vfp_flush_context();
^
arch/arm/mach-msm/pm.c:450:9: error: implicit declaration of function 'vfp_reinit' [-Werror=implicit-function-declaration]
vfp_reinit();
^
arch/arm/mach-msm/pm.c:524:2: error: implicit declaration of function 'clk_exit_sleep' [-Werror=implicit-function-declaration]
clk_exit_sleep();
^
arch/arm/mach-msm/pm.c: In function 'arch_idle':
arch/arm/mach-msm/pm.c:554:3: error: implicit declaration of function 'has_wake_lock' [-Werror=implicit-function-declaration]
!has_wake_lock(WAKE_LOCK_IDLE) &&
^
arch/arm/mach-msm/pm.c: In function 'msm_pm_init':
arch/arm/mach-msm/pm.c:864:17: warning: assignment from incompatible pointer type [enabled by default]
arm_pm_restart = msm_pm_restart;
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/pm.o] Error 1

Current errors at end of compile:

LD vmlinux
arch/arm/mach-msm/built-in.o:smd.c:function handle_modem_crash: error: undefined reference to 'msm_pm_flush_console'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_get_edge: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_enable_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_disable_fast_timer'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_close.isra.5: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function q6venc_release: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_q6_callback: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_add_pmem_to_list: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_create_files.constprop.9: error: undefined reference to 'sysdev_create_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_class_register'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_register'
arch/arm/mach-msm/built-in.o:nand_partitions.c:function parse_tag_msm_partition: error: undefined reference to 'msm_nand_data'
arch/arm/mach-msm/built-in.o:dsp_debug.c:function bravo_init_panel: error: undefined reference to 'msm_device_mdp'
arch/arm/mach-msm/built-in.o:board-bravo.c:function bravo_init: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function msm_uart_dm1_pdata: error: undefined reference to 'bcm_bt_lpm_exit_lpm_locked'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_nand'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_i2c'
drivers/built-in.o:ds2784_battery.c:function ds2784_program_alarm: error: undefined reference to 'alarm_start_range'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_probe: error: undefined reference to 'alarm_get_elapsed_realtime'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_work: error: undefined reference to 'alarm_get_elapsed_realtime'
net/built-in.o:activity_stats.c:function wiphy_rfkill_start_polling: error: undefined reference to 'rfkill_resume_polling'
make: *** [vmlinux] Error 1