[HTC One V] MameTozhio:
I've been trying to add ION to the primou board files but when compiling I get errors.. -

mame@pantheon:~$ export PATH=$(pwd)/arm-eabi-4.8/bin:$PATH

mame@pantheon:~$ export ARCH=arm

mame@pantheon:~$ export SUBARCH=arm

mame@pantheon:~$ export CROSS_COMPILE=arm-eabi-

mame@pantheon:~$ cd htc7x30-3.0-andromadus/

mame@pantheon:~/htc7x30-3.0-andromadus$ make karakuri_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

#

# configuration written to .config

#

mame@pantheon:~/htc7x30-3.0-andromadus$ make

scripts/kconfig/conf --silentoldconfig Kconfig

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

CC kernel/bounds.s

GEN include/generated/bounds.h

CC arch/arm/kernel/asm-offsets.s

GEN include/generated/asm-offsets.h

CALL scripts/checksyscalls.sh

CC scripts/mod/empty.o

HOSTCC scripts/mod/mk_elfconfig

MKELF scripts/mod/elfconfig.h

HOSTCC scripts/mod/file2alias.o

HOSTCC scripts/mod/modpost.o

HOSTCC scripts/mod/sumversion.o

HOSTLD scripts/mod/modpost

HOSTCC scripts/kallsyms

HOSTCC scripts/bin2c

CC init/main.o

CHK include/generated/compile.h

CC init/version.o

CC init/do_mounts.o

CC init/do_mounts_initrd.o

LD init/mounts.o

CC init/initramfs.o

CC init/calibrate.o

LD init/built-in.o

HOSTCC usr/gen_init_cpio

GEN usr/initramfs_data.cpio

AS usr/initramfs_data.o

LD usr/built-in.o

CC arch/arm/vfp/vfpmodule.o

AS arch/arm/vfp/entry.o

AS arch/arm/vfp/vfphw.o

CC arch/arm/vfp/vfpsingle.o

CC arch/arm/vfp/vfpdouble.o

LD arch/arm/vfp/vfp.o

LD arch/arm/vfp/built-in.o

CC arch/arm/kernel/elf.o

AS arch/arm/kernel/entry-armv.o

AS arch/arm/kernel/entry-common.o

CC arch/arm/kernel/irq.o

CC arch/arm/kernel/process.o

CC arch/arm/kernel/ptrace.o

CC arch/arm/kernel/return_address.o

CC arch/arm/kernel/setup.o

CC arch/arm/kernel/signal.o

CC arch/arm/kernel/sys_arm.o

CC arch/arm/kernel/stacktrace.o

CC arch/arm/kernel/time.o

CC arch/arm/kernel/traps.o

CC arch/arm/kernel/armksyms.o

CC arch/arm/kernel/module.o

AS arch/arm/kernel/sleep.o

CC arch/arm/kernel/sched_clock.o

CC arch/arm/kernel/thumbee.o

CC arch/arm/kernel/unwind.o

CC arch/arm/kernel/pmu.o

CC arch/arm/kernel/io.o

LD arch/arm/kernel/built-in.o

AS arch/arm/kernel/head.o

CC arch/arm/kernel/init_task.o

LDS arch/arm/kernel/vmlinux.lds

CC arch/arm/mm/dma-mapping.o

CC arch/arm/mm/extable.o

CC arch/arm/mm/fault.o

CC arch/arm/mm/init.o

CC arch/arm/mm/iomap.o

CC arch/arm/mm/fault-armv.o

CC arch/arm/mm/flush.o

CC arch/arm/mm/idmap.o

CC arch/arm/mm/ioremap.o

CC arch/arm/mm/mmap.o

CC arch/arm/mm/pgd.o

CC arch/arm/mm/mmu.o

CC arch/arm/mm/vmregion.o

CC arch/arm/mm/proc-syms.o

CC arch/arm/mm/alignment.o

CC arch/arm/mm/highmem.o

AS arch/arm/mm/abort-ev7.o

AS arch/arm/mm/pabort-v7.o

AS arch/arm/mm/cache-v7.o

CC arch/arm/mm/copypage-v6.o

CC arch/arm/mm/context.o

AS arch/arm/mm/tlb-v7.o

AS arch/arm/mm/proc-v7.o

LD arch/arm/mm/built-in.o

LD arch/arm/common/built-in.o

CC [M] arch/arm/common/cpaccess.o

CC arch/arm/mach-msm/io.o

CC arch/arm/mach-msm/dma.o

CC arch/arm/mach-msm/memory.o

CC arch/arm/mach-msm/timer.o

CC arch/arm/mach-msm/clock.o

CC arch/arm/mach-msm/clock-voter.o

CC arch/arm/mach-msm/clock-dummy.o

CC arch/arm/mach-msm/subsystem_map.o

CC arch/arm/mach-msm/cpufreq.o

CC arch/arm/mach-msm/nohlt.o

CC arch/arm/mach-msm/clock-debug.o

CC arch/arm/mach-msm/proc_comm.o

CC arch/arm/mach-msm/clock-pcom.o

CC arch/arm/mach-msm/vreg.o

CC arch/arm/mach-msm/mpp.o

CC arch/arm/mach-msm/footswitch-pcom.o

CC arch/arm/mach-msm/pmic_debugfs.o

CC arch/arm/mach-msm/acpuclock.o

CC arch/arm/mach-msm/drv_callback.o

CC arch/arm/mach-msm/radio_feedback.o

CC arch/arm/mach-msm/pmu.o

CC arch/arm/mach-msm/msm_fault_handlers.o

CC arch/arm/mach-msm/irq-vic.o

AS arch/arm/mach-msm/idle-v7.o

AS arch/arm/mach-msm/jtag-v7.o

CC arch/arm/mach-msm/htc_port_list.o

AS arch/arm/mach-msm/fiq_glue.o

CC arch/arm/mach-msm/remote_spinlock.o

CC arch/arm/mach-msm/socinfo.o

CC arch/arm/mach-msm/pmic.o

CC arch/arm/mach-msm/rpc_hsusb.o

CC arch/arm/mach-msm/rpc_fsusb.o

CC arch/arm/mach-msm/7x30-smd/modem_notifier.o

CC arch/arm/mach-msm/7x30-smd/smem_log.o

CC arch/arm/mach-msm/7x30-smd/smd.o

CC arch/arm/mach-msm/7x30-smd/smd_debug.o

CC arch/arm/mach-msm/7x30-smd/smd_tty.o

CC arch/arm/mach-msm/7x30-smd/smd_qmi.o

CC arch/arm/mach-msm/7x30-smd/rpc_pmapp.o

CC arch/arm/mach-msm/7x30-smd/smd_rpcrouter.o

CC arch/arm/mach-msm/7x30-smd/smd_rpcrouter_device.o

CC arch/arm/mach-msm/7x30-smd/smd_rpcrouter_servers.o

CC arch/arm/mach-msm/7x30-smd/smd_rpcrouter_clients.o

CC arch/arm/mach-msm/7x30-smd/smd_rpcrouter_xdr.o

CC arch/arm/mach-msm/7x30-smd/rpc_server_time_remote.o

CC arch/arm/mach-msm/7x30-smd/rpcrouter_smd_xprt.o

CC arch/arm/mach-msm/7x30-smd/smd_nmea.o

CC arch/arm/mach-msm/7x30-smd/smd_pkt.o

CC arch/arm/mach-msm/7x30-smd/smd_rpc_sym.o

LD arch/arm/mach-msm/7x30-smd/built-in.o

LD arch/arm/mach-msm/display/built-in.o

CC arch/arm/mach-msm/qdsp5v2_2x/afe.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_interct.o

CC arch/arm/mach-msm/qdsp5v2_2x/mi2s.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_dev_ctl.o

CC arch/arm/mach-msm/qdsp5v2_2x/voice.o

CC arch/arm/mach-msm/qdsp5v2_2x/snddev_data.o

CC arch/arm/mach-msm/qdsp5v2_2x/snddev_icodec.o

CC arch/arm/mach-msm/qdsp5v2_2x/lpa.o

CC arch/arm/mach-msm/qdsp5v2_2x/aux_pcm.o

CC arch/arm/mach-msm/qdsp5v2_2x/snddev_ecodec.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_out.o

CC arch/arm/mach-msm/qdsp5v2_2x/audpp.o

CC arch/arm/mach-msm/qdsp5v2_2x/snddev_mi2s.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_mp3.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_lpa.o

CC arch/arm/mach-msm/qdsp5v2_2x/mp3_funcs.o

CC arch/arm/mach-msm/qdsp5v2_2x/pcm_funcs.o

CC arch/arm/mach-msm/qdsp5v2_2x/audpreproc.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_pcm_in.o

CC arch/arm/mach-msm/qdsp5v2_2x/adsp.o

CC arch/arm/mach-msm/qdsp5v2_2x/adsp_driver.o

CC arch/arm/mach-msm/qdsp5v2_2x/adsp_info.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_acdb.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_aac.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_amrnb_in.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_evrc_in.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_qcelp_in.o

CC arch/arm/mach-msm/qdsp5v2_2x/audio_mvs.o

LD arch/arm/mach-msm/qdsp5v2_2x/built-in.o

CC arch/arm/mach-msm/dal.o

CC arch/arm/mach-msm/dal_axi.o

CC arch/arm/mach-msm/htc_drm.o

CC arch/arm/mach-msm/htc_sdservice.o

CC arch/arm/mach-msm/htc_acoustic_7x30.o

CC arch/arm/mach-msm/htc_acdb_7x30.o

CC arch/arm/mach-msm/pm2.o

AS arch/arm/mach-msm/arch-init-7x30.o

CC arch/arm/mach-msm/pm-boot.o

CC arch/arm/mach-msm/pwrtest.o

CC arch/arm/mach-msm/spm.o

CC arch/arm/mach-msm/keypad-surf-ffa.o

CC arch/arm/mach-msm/htc_battery.o

CC arch/arm/mach-msm/devices-msm7x30.o

CC arch/arm/mach-msm/memory_topology.o

CC arch/arm/mach-msm/devices_htc.o

CC arch/arm/mach-msm/emmc_partitions.o

CC arch/arm/mach-msm/msm_vibrator.o

CC arch/arm/mach-msm/clock-local.o

CC arch/arm/mach-msm/clock-7x30.o

CC arch/arm/mach-msm/acpuclock-7x30.o

CC arch/arm/mach-msm/htc_awb_cal.o

CC arch/arm/mach-msm/htc_wifi_nvs.o

CC arch/arm/mach-msm/board-primou.o

arch/arm/mach-msm/board-primou.c:177:1: error: expected declaration specifiers or '...' before string constant

static void config_gpio_table(uint32_t *table, int len)

^

arch/arm/mach-msm/board-primou.c:177:1: error: expected declaration specifiers or '...' before numeric constant

arch/arm/mach-msm/board-primou.c:1998:3: warning: initialization from incompatible pointer type [enabled by default]

.camera_gpio_on = config_camera_on_gpios,

^

arch/arm/mach-msm/board-primou.c:1998:3: warning: (near initialization for 'camera_device_data.camera_gpio_on') [enabled by default]

arch/arm/mach-msm/board-primou.c:4050:31: error: static declaration of 'qsd_device_spi' follows non-static declaration

static struct platform_device qsd_device_spi = {

^

In file included from arch/arm/mach-msm/board-primou.c:88:0:

arch/arm/mach-msm/devices.h:113:31: note: previous declaration of 'qsd_device_spi' was here

extern struct platform_device qsd_device_spi;

^

arch/arm/mach-msm/board-primou.c:4070:16: error: 'PRIMOU_GPIO_MCAM_SPI_CLK' undeclared here (not in a function)

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CLK, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:7: note: in definition of macro 'PCOM_GPIO_CFG'

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4071:16: error: 'PRIMOU_GPIO_MCAM_SPI_DO' undeclared here (not in a function)

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DO, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:7: note: in definition of macro 'PCOM_GPIO_CFG'

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4072:16: error: 'PRIMOU_GPIO_MCAM_SPI_DI' undeclared here (not in a function)

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DI, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:7: note: in definition of macro 'PCOM_GPIO_CFG'

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4073:16: error: 'PRIMOU_GPIO_MCAM_SPI_CS' undeclared here (not in a function)

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CS, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA)

^

arch/arm/mach-msm/board-primou.c:171:7: note: in definition of macro 'PCOM_GPIO_CFG'

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:171:13: error: invalid operands to binary & (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4077:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CLK, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:22: error: invalid operands to binary << (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4077:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CLK, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4077:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CLK, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:172:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((func) & 0xf) | \

^

arch/arm/mach-msm/board-primou.c:4077:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CLK, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:173:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((dir) & 0x1) << 14) | \

^

arch/arm/mach-msm/board-primou.c:4077:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CLK, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:174:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((pull) & 0x3) << 15) | \

^

arch/arm/mach-msm/board-primou.c:4077:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CLK, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:4077:2: error: initializer element is not constant

arch/arm/mach-msm/board-primou.c:4077:2: error: (near initialization for 'qsd_spi_gpio_off_table[0]')

arch/arm/mach-msm/board-primou.c:171:13: error: invalid operands to binary & (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4078:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DO, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:22: error: invalid operands to binary << (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4078:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DO, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4078:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DO, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:172:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((func) & 0xf) | \

^

arch/arm/mach-msm/board-primou.c:4078:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DO, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:173:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((dir) & 0x1) << 14) | \

^

arch/arm/mach-msm/board-primou.c:4078:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DO, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:174:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((pull) & 0x3) << 15) | \

^

arch/arm/mach-msm/board-primou.c:4078:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DO, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:4078:2: error: initializer element is not constant

arch/arm/mach-msm/board-primou.c:4078:2: error: (near initialization for 'qsd_spi_gpio_off_table[1]')

arch/arm/mach-msm/board-primou.c:171:13: error: invalid operands to binary & (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4079:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DI, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:22: error: invalid operands to binary << (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4079:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DI, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:171:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4079:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DI, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:172:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((func) & 0xf) | \

^

arch/arm/mach-msm/board-primou.c:4079:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DI, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:173:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((dir) & 0x1) << 14) | \

^

arch/arm/mach-msm/board-primou.c:4079:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DI, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:174:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((pull) & 0x3) << 15) | \

^

arch/arm/mach-msm/board-primou.c:4079:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_DI, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_CFG_4MA),

^

arch/arm/mach-msm/board-primou.c:4079:2: error: initializer element is not constant

arch/arm/mach-msm/board-primou.c:4079:2: error: (near initialization for 'qsd_spi_gpio_off_table[2]')

arch/arm/mach-msm/board-primou.c:171:13: error: invalid operands to binary & (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4080:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CS, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA)

^

arch/arm/mach-msm/board-primou.c:171:22: error: invalid operands to binary << (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4080:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CS, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA)

^

arch/arm/mach-msm/board-primou.c:171:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((((gpio) & 0x3FF) << 4) | \

^

arch/arm/mach-msm/board-primou.c:4080:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CS, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA)

^

arch/arm/mach-msm/board-primou.c:172:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

((func) & 0xf) | \

^

arch/arm/mach-msm/board-primou.c:4080:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CS, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA)

^

arch/arm/mach-msm/board-primou.c:173:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((dir) & 0x1) << 14) | \

^

arch/arm/mach-msm/board-primou.c:4080:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CS, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA)

^

arch/arm/mach-msm/board-primou.c:174:35: error: invalid operands to binary | (have 'uint32_t *' and 'int')

(((pull) & 0x3) << 15) | \

^

arch/arm/mach-msm/board-primou.c:4080:2: note: in expansion of macro 'PCOM_GPIO_CFG'

PCOM_GPIO_CFG(PRIMOU_GPIO_MCAM_SPI_CS, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_CFG_4MA)

^

arch/arm/mach-msm/board-primou.c:4081:1: error: initializer element is not constant

};

^

arch/arm/mach-msm/board-primou.c:4081:1: error: (near initialization for 'qsd_spi_gpio_off_table[3]')

arch/arm/mach-msm/board-primou.c:4353:24: error: static declaration of 'msm_fb_resources' follows non-static declaration

static struct resource msm_fb_resources[] = {

^

In file included from arch/arm/mach-msm/board-primou.c:88:0:

arch/arm/mach-msm/devices.h:209:24: note: previous declaration of 'msm_fb_resources' was here

extern struct resource msm_fb_resources[];

^

arch/arm/mach-msm/board-primou.c: In function 'reserve_pmem_memory':

arch/arm/mach-msm/board-primou.c:6811:53: error: 'PMEM_KERNEL_EBI0_SIZE' undeclared (first use in this function)

msm7x30_reserve_table[MEMTYPE_EBI0].size += PMEM_KERNEL_EBI0_SIZE;

^

arch/arm/mach-msm/board-primou.c:6811:53: note: each undeclared identifier is reported only once for each function it appears in

arch/arm/mach-msm/board-primou.c:6811:50: warning: assignment makes integer from pointer without a cast [enabled by default]

msm7x30_reserve_table[MEMTYPE_EBI0].size += PMEM_KERNEL_EBI0_SIZE;

^

arch/arm/mach-msm/board-primou.c: At top level:

arch/arm/mach-msm/board-primou.c:1871:12: warning: 'sensor_version' defined but not used [-Wunused-variable]

static int sensor_version = 999;

^

make[1]: *** [arch/arm/mach-msm/board-primou.o] Error 1

make: *** [arch/arm/mach-msm] Error 2

mame@pantheon:~/htc7x30-3.0-andromadus$